From a4507c090437d0f3ddec51323adde16393e8482b Mon Sep 17 00:00:00 2001 From: Elton Chou Date: Sat, 1 Oct 2022 13:53:10 +0800 Subject: [PATCH 01/11] Add overload for endpoint --- .../main/resources/python/endpoint.handlebars | 24 ++++ .../resources/python/endpoint_args.handlebars | 2 + .../python/endpoint_args_overload.handlebars | 52 +++++++++ .../paths/another_fake_dummy/patch.py | 84 +++++++++++++- .../paths/another_fake_dummy/patch.pyi | 84 +++++++++++++- .../python/petstore_api/paths/fake/delete.py | 75 ++++++++++++ .../python/petstore_api/paths/fake/delete.pyi | 75 ++++++++++++ .../python/petstore_api/paths/fake/get.py | 93 +++++++++++++++ .../python/petstore_api/paths/fake/get.pyi | 93 +++++++++++++++ .../python/petstore_api/paths/fake/patch.py | 84 +++++++++++++- .../python/petstore_api/paths/fake/patch.pyi | 84 +++++++++++++- .../python/petstore_api/paths/fake/post.py | 81 +++++++++++++ .../python/petstore_api/paths/fake/post.pyi | 81 +++++++++++++ .../get.py | 84 +++++++++++++- .../get.pyi | 84 +++++++++++++- .../paths/fake_body_with_file_schema/put.py | 78 ++++++++++++- .../paths/fake_body_with_file_schema/put.pyi | 78 ++++++++++++- .../paths/fake_body_with_query_params/put.py | 84 +++++++++++++- .../paths/fake_body_with_query_params/put.pyi | 84 +++++++++++++- .../paths/fake_case_sensitive_params/put.py | 72 +++++++++++- .../paths/fake_case_sensitive_params/put.pyi | 72 +++++++++++- .../paths/fake_classname_test/patch.py | 84 +++++++++++++- .../paths/fake_classname_test/patch.pyi | 84 +++++++++++++- .../paths/fake_delete_coffee_id/delete.py | 75 +++++++++++- .../paths/fake_delete_coffee_id/delete.pyi | 75 +++++++++++- .../petstore_api/paths/fake_health/get.py | 72 +++++++++++- .../petstore_api/paths/fake_health/get.pyi | 72 +++++++++++- .../fake_inline_additional_properties/post.py | 78 ++++++++++++- .../post.pyi | 78 ++++++++++++- .../paths/fake_inline_composition_/post.py | 90 ++++++++++++++- .../paths/fake_inline_composition_/post.pyi | 90 ++++++++++++++- .../paths/fake_json_form_data/get.py | 78 ++++++++++++- .../paths/fake_json_form_data/get.pyi | 78 ++++++++++++- .../paths/fake_json_patch/patch.py | 78 ++++++++++++- .../paths/fake_json_patch/patch.pyi | 78 ++++++++++++- .../paths/fake_json_with_charset/post.py | 84 +++++++++++++- .../paths/fake_json_with_charset/post.pyi | 84 +++++++++++++- .../paths/fake_obj_in_query/get.py | 72 +++++++++++- .../paths/fake_obj_in_query/get.pyi | 72 +++++++++++- .../post.py | 108 +++++++++++++++++- .../post.pyi | 108 +++++++++++++++++- .../post.py | 90 ++++++++++++++- .../post.pyi | 90 ++++++++++++++- .../paths/fake_ref_obj_in_query/get.py | 72 +++++++++++- .../paths/fake_ref_obj_in_query/get.pyi | 72 +++++++++++- .../paths/fake_refs_array_of_enums/post.py | 84 +++++++++++++- .../paths/fake_refs_array_of_enums/post.pyi | 84 +++++++++++++- .../paths/fake_refs_arraymodel/post.py | 84 +++++++++++++- .../paths/fake_refs_arraymodel/post.pyi | 84 +++++++++++++- .../paths/fake_refs_boolean/post.py | 84 +++++++++++++- .../paths/fake_refs_boolean/post.pyi | 84 +++++++++++++- .../post.py | 84 +++++++++++++- .../post.pyi | 84 +++++++++++++- .../petstore_api/paths/fake_refs_enum/post.py | 84 +++++++++++++- .../paths/fake_refs_enum/post.pyi | 84 +++++++++++++- .../paths/fake_refs_mammal/post.py | 84 +++++++++++++- .../paths/fake_refs_mammal/post.pyi | 84 +++++++++++++- .../paths/fake_refs_number/post.py | 84 +++++++++++++- .../paths/fake_refs_number/post.pyi | 84 +++++++++++++- .../post.py | 84 +++++++++++++- .../post.pyi | 84 +++++++++++++- .../paths/fake_refs_string/post.py | 84 +++++++++++++- .../paths/fake_refs_string/post.pyi | 84 +++++++++++++- .../paths/fake_response_without_schema/get.py | 72 +++++++++++- .../fake_response_without_schema/get.pyi | 72 +++++++++++- .../paths/fake_test_query_paramters/put.py | 72 +++++++++++- .../paths/fake_test_query_paramters/put.pyi | 72 +++++++++++- .../paths/fake_upload_download_file/post.py | 84 +++++++++++++- .../paths/fake_upload_download_file/post.pyi | 84 +++++++++++++- .../paths/fake_upload_file/post.py | 84 +++++++++++++- .../paths/fake_upload_file/post.pyi | 84 +++++++++++++- .../paths/fake_upload_files/post.py | 84 +++++++++++++- .../paths/fake_upload_files/post.pyi | 84 +++++++++++++- .../python/petstore_api/paths/foo/get.py | 66 +++++++++++ .../python/petstore_api/paths/foo/get.pyi | 66 +++++++++++ .../python/petstore_api/paths/pet/post.py | 90 ++++++++++++++- .../python/petstore_api/paths/pet/post.pyi | 90 ++++++++++++++- .../python/petstore_api/paths/pet/put.py | 93 +++++++++++++++ .../python/petstore_api/paths/pet/put.pyi | 93 +++++++++++++++ .../paths/pet_find_by_status/get.py | 84 +++++++++++++- .../paths/pet_find_by_status/get.pyi | 84 +++++++++++++- .../paths/pet_find_by_tags/get.py | 84 +++++++++++++- .../paths/pet_find_by_tags/get.pyi | 84 +++++++++++++- .../petstore_api/paths/pet_pet_id/delete.py | 75 ++++++++++++ .../petstore_api/paths/pet_pet_id/delete.pyi | 75 ++++++++++++ .../petstore_api/paths/pet_pet_id/get.py | 90 ++++++++++++++- .../petstore_api/paths/pet_pet_id/get.pyi | 90 ++++++++++++++- .../petstore_api/paths/pet_pet_id/post.py | 81 +++++++++++++ .../petstore_api/paths/pet_pet_id/post.pyi | 81 +++++++++++++ .../paths/pet_pet_id_upload_image/post.py | 90 ++++++++++++++- .../paths/pet_pet_id_upload_image/post.pyi | 90 ++++++++++++++- .../petstore_api/paths/store_inventory/get.py | 72 +++++++++++- .../paths/store_inventory/get.pyi | 72 +++++++++++- .../petstore_api/paths/store_order/post.py | 90 ++++++++++++++- .../petstore_api/paths/store_order/post.pyi | 90 ++++++++++++++- .../paths/store_order_order_id/delete.py | 75 ++++++++++++ .../paths/store_order_order_id/delete.pyi | 75 ++++++++++++ .../paths/store_order_order_id/get.py | 90 ++++++++++++++- .../paths/store_order_order_id/get.pyi | 90 ++++++++++++++- .../python/petstore_api/paths/user/post.py | 72 ++++++++++++ .../python/petstore_api/paths/user/post.pyi | 72 ++++++++++++ .../paths/user_create_with_array/post.py | 72 ++++++++++++ .../paths/user_create_with_array/post.pyi | 72 ++++++++++++ .../paths/user_create_with_list/post.py | 72 ++++++++++++ .../paths/user_create_with_list/post.pyi | 72 ++++++++++++ .../petstore_api/paths/user_login/get.py | 84 +++++++++++++- .../petstore_api/paths/user_login/get.pyi | 84 +++++++++++++- .../petstore_api/paths/user_logout/get.py | 60 ++++++++++ .../petstore_api/paths/user_logout/get.pyi | 60 ++++++++++ .../paths/user_username/delete.py | 75 ++++++++++++ .../paths/user_username/delete.pyi | 75 ++++++++++++ .../petstore_api/paths/user_username/get.py | 90 ++++++++++++++- .../petstore_api/paths/user_username/get.pyi | 90 ++++++++++++++- .../petstore_api/paths/user_username/put.py | 87 ++++++++++++++ .../petstore_api/paths/user_username/put.pyi | 87 ++++++++++++++ 115 files changed, 8946 insertions(+), 252 deletions(-) create mode 100644 modules/openapi-json-schema-generator/src/main/resources/python/endpoint_args_overload.handlebars diff --git a/modules/openapi-json-schema-generator/src/main/resources/python/endpoint.handlebars b/modules/openapi-json-schema-generator/src/main/resources/python/endpoint.handlebars index c7c81d8acdb..0717bfe923a 100644 --- a/modules/openapi-json-schema-generator/src/main/resources/python/endpoint.handlebars +++ b/modules/openapi-json-schema-generator/src/main/resources/python/endpoint.handlebars @@ -386,6 +386,14 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _{{operationId}}_oapg( + {{> endpoint_args_overload selfType="api_client.Api" isSkip=false}} + + @typing.overload + def _{{operationId}}_oapg( + {{> endpoint_args_overload selfType="api_client.Api" isSkip=true}} + def _{{operationId}}_oapg( {{> endpoint_args selfType="api_client.Api" }} """ @@ -533,6 +541,14 @@ class BaseApi(api_client.Api): class {{operationIdCamelCase}}(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def {{operationId}}( + {{> endpoint_args_overload selfType="api_client.Api" isSkip=false}} + + @typing.overload + def {{operationId}}( + {{> endpoint_args_overload selfType="api_client.Api" isSkip=true}} + def {{operationId}}( {{> endpoint_args selfType="BaseApi" }} return self._{{operationId}}_oapg( @@ -543,6 +559,14 @@ class {{operationIdCamelCase}}(BaseApi): class ApiFor{{httpMethod}}(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def {{httpMethod}}( + {{> endpoint_args_overload selfType="api_client.Api" isSkip=false}} + + @typing.overload + def {{httpMethod}}( + {{> endpoint_args_overload selfType="api_client.Api" isSkip=true}} + def {{httpMethod}}( {{> endpoint_args selfType="BaseApi" }} return self._{{operationId}}_oapg( diff --git a/modules/openapi-json-schema-generator/src/main/resources/python/endpoint_args.handlebars b/modules/openapi-json-schema-generator/src/main/resources/python/endpoint_args.handlebars index 01aa9ddbce7..98e25c8bf14 100644 --- a/modules/openapi-json-schema-generator/src/main/resources/python/endpoint_args.handlebars +++ b/modules/openapi-json-schema-generator/src/main/resources/python/endpoint_args.handlebars @@ -40,6 +40,8 @@ {{#if is2xx}} ApiResponseFor{{code}}, {{/if}} + {{else}} + api_client.ApiResponse, {{/if}} {{/each}} api_client.ApiResponseWithoutDeserialization diff --git a/modules/openapi-json-schema-generator/src/main/resources/python/endpoint_args_overload.handlebars b/modules/openapi-json-schema-generator/src/main/resources/python/endpoint_args_overload.handlebars new file mode 100644 index 00000000000..7df611e7633 --- /dev/null +++ b/modules/openapi-json-schema-generator/src/main/resources/python/endpoint_args_overload.handlebars @@ -0,0 +1,52 @@ + self: {{selfType}}, +{{#if bodyParam}} +{{#with bodyParam}} + body: typing.Union[{{#each content}}{{#with this.schema}}{{baseName}}, {{> model_templates/schema_python_types }}{{/with}}{{/each}}{{#unless required}}schemas.Unset] = schemas.unset{{else}}]{{/unless}}, +{{/with}} +{{/if}} +{{#if queryParams}} + query_params: RequestQueryParams = frozendict.frozendict(), +{{/if}} +{{#if headerParams}} + header_params: RequestHeaderParams = frozendict.frozendict(), +{{/if}} +{{#if pathParams}} + path_params: RequestPathParams = frozendict.frozendict(), +{{/if}} +{{#if cookieParams}} + cookie_params: RequestCookieParams = frozendict.frozendict(), +{{/if}} +{{#with bodyParam}} +{{#each content}} +{{#if @first}} + content_type: str = '{{{@key}}}', +{{/if}} +{{/each}} +{{/with}} +{{#if produces}} + accept_content_types: typing.Tuple[str] = _all_accept_content_types, +{{/if}} +{{#if servers}} + host_index: typing.Optional[int] = None, +{{/if}} + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[{{#if isSkip}}True{{else}}False{{/if}}] = {{#if isSkip}}True{{else}}False{{/if}}, +{{#if isSkip}} +) -> api_client.ApiResponseWithoutDeserialization: +{{else}} +) -> typing.Union[ +{{#each responses}} + {{#if isDefault}} + ApiResponseForDefault, + {{else}} + {{#if is2xx}} + ApiResponseFor{{code}}, + {{/if}} + {{else}} + api_client.ApiResponse, + {{/if}} +{{/each}} +]: +{{/if}} + ... diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/another_fake_dummy/patch.py b/samples/openapi3/client/petstore/python/petstore_api/paths/another_fake_dummy/patch.py index 800c45e3ca9..77495de6b88 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/another_fake_dummy/patch.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/another_fake_dummy/patch.py @@ -69,6 +69,32 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _call_123_test_special_tags_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _call_123_test_special_tags_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def _call_123_test_special_tags_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -78,7 +104,7 @@ def _call_123_test_special_tags_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -134,6 +160,32 @@ class instances class Call123TestSpecialTags(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def call_123_test_special_tags( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def call_123_test_special_tags( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def call_123_test_special_tags( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -143,7 +195,7 @@ def call_123_test_special_tags( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._call_123_test_special_tags_oapg( @@ -159,6 +211,32 @@ def call_123_test_special_tags( class ApiForpatch(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def patch( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def patch( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def patch( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -168,7 +246,7 @@ def patch( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._call_123_test_special_tags_oapg( diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/another_fake_dummy/patch.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/another_fake_dummy/patch.pyi index dc0216a43f1..1182b2259a9 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/another_fake_dummy/patch.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/another_fake_dummy/patch.pyi @@ -37,6 +37,32 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _call_123_test_special_tags_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _call_123_test_special_tags_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def _call_123_test_special_tags_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -46,7 +72,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -102,6 +128,32 @@ class BaseApi(api_client.Api): class Call123TestSpecialTags(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def call_123_test_special_tags( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def call_123_test_special_tags( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def call_123_test_special_tags( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -111,7 +163,7 @@ class Call123TestSpecialTags(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._call_123_test_special_tags_oapg( @@ -127,6 +179,32 @@ class Call123TestSpecialTags(BaseApi): class ApiForpatch(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def patch( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def patch( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def patch( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -136,7 +214,7 @@ class ApiForpatch(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._call_123_test_special_tags_oapg( diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake/delete.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake/delete.py index 1d7550bf636..aa191072c60 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake/delete.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake/delete.py @@ -134,6 +134,30 @@ class ApiResponseFor400(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _group_parameters_oapg( + self: api_client.Api, + query_params: RequestQueryParams = frozendict.frozendict(), + header_params: RequestHeaderParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _group_parameters_oapg( + self: api_client.Api, + query_params: RequestQueryParams = frozendict.frozendict(), + header_params: RequestHeaderParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def _group_parameters_oapg( self: api_client.Api, query_params: RequestQueryParams = frozendict.frozendict(), @@ -142,6 +166,7 @@ def _group_parameters_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -209,6 +234,30 @@ class instances class GroupParameters(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def group_parameters( + self: api_client.Api, + query_params: RequestQueryParams = frozendict.frozendict(), + header_params: RequestHeaderParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def group_parameters( + self: api_client.Api, + query_params: RequestQueryParams = frozendict.frozendict(), + header_params: RequestHeaderParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def group_parameters( self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), @@ -217,6 +266,7 @@ def group_parameters( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._group_parameters_oapg( @@ -231,6 +281,30 @@ def group_parameters( class ApiFordelete(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def delete( + self: api_client.Api, + query_params: RequestQueryParams = frozendict.frozendict(), + header_params: RequestHeaderParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def delete( + self: api_client.Api, + query_params: RequestQueryParams = frozendict.frozendict(), + header_params: RequestHeaderParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def delete( self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), @@ -239,6 +313,7 @@ def delete( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._group_parameters_oapg( diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake/delete.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake/delete.pyi index 7c79e3509df..83dda1c4368 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake/delete.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake/delete.pyi @@ -37,6 +37,30 @@ BooleanGroupSchema = schemas.BoolSchema class BaseApi(api_client.Api): + @typing.overload + def _group_parameters_oapg( + self: api_client.Api, + query_params: RequestQueryParams = frozendict.frozendict(), + header_params: RequestHeaderParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _group_parameters_oapg( + self: api_client.Api, + query_params: RequestQueryParams = frozendict.frozendict(), + header_params: RequestHeaderParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def _group_parameters_oapg( self: api_client.Api, query_params: RequestQueryParams = frozendict.frozendict(), @@ -45,6 +69,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -112,6 +137,30 @@ class BaseApi(api_client.Api): class GroupParameters(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def group_parameters( + self: api_client.Api, + query_params: RequestQueryParams = frozendict.frozendict(), + header_params: RequestHeaderParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def group_parameters( + self: api_client.Api, + query_params: RequestQueryParams = frozendict.frozendict(), + header_params: RequestHeaderParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def group_parameters( self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), @@ -120,6 +169,7 @@ class GroupParameters(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._group_parameters_oapg( @@ -134,6 +184,30 @@ class GroupParameters(BaseApi): class ApiFordelete(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def delete( + self: api_client.Api, + query_params: RequestQueryParams = frozendict.frozendict(), + header_params: RequestHeaderParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def delete( + self: api_client.Api, + query_params: RequestQueryParams = frozendict.frozendict(), + header_params: RequestHeaderParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def delete( self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), @@ -142,6 +216,7 @@ class ApiFordelete(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._group_parameters_oapg( diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake/get.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake/get.py index d69fbec4c6b..5add34bf9a1 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake/get.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake/get.py @@ -453,6 +453,35 @@ class ApiResponseFor404(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _enum_parameters_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + query_params: RequestQueryParams = frozendict.frozendict(), + header_params: RequestHeaderParams = frozendict.frozendict(), + content_type: str = 'application/x-www-form-urlencoded', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _enum_parameters_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + query_params: RequestQueryParams = frozendict.frozendict(), + header_params: RequestHeaderParams = frozendict.frozendict(), + content_type: str = 'application/x-www-form-urlencoded', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def _enum_parameters_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, @@ -463,6 +492,8 @@ def _enum_parameters_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -540,6 +571,35 @@ class instances class EnumParameters(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def enum_parameters( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + query_params: RequestQueryParams = frozendict.frozendict(), + header_params: RequestHeaderParams = frozendict.frozendict(), + content_type: str = 'application/x-www-form-urlencoded', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + ]: + ... + + @typing.overload + def enum_parameters( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + query_params: RequestQueryParams = frozendict.frozendict(), + header_params: RequestHeaderParams = frozendict.frozendict(), + content_type: str = 'application/x-www-form-urlencoded', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def enum_parameters( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, @@ -550,6 +610,8 @@ def enum_parameters( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._enum_parameters_oapg( @@ -566,6 +628,35 @@ def enum_parameters( class ApiForget(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def get( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + query_params: RequestQueryParams = frozendict.frozendict(), + header_params: RequestHeaderParams = frozendict.frozendict(), + content_type: str = 'application/x-www-form-urlencoded', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + ]: + ... + + @typing.overload + def get( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + query_params: RequestQueryParams = frozendict.frozendict(), + header_params: RequestHeaderParams = frozendict.frozendict(), + content_type: str = 'application/x-www-form-urlencoded', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def get( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, @@ -576,6 +667,8 @@ def get( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._enum_parameters_oapg( diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake/get.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake/get.pyi index 7db64856798..df685c39da0 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake/get.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake/get.pyi @@ -280,6 +280,35 @@ class SchemaForRequestBodyApplicationXWwwFormUrlencoded( class BaseApi(api_client.Api): + @typing.overload + def _enum_parameters_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + query_params: RequestQueryParams = frozendict.frozendict(), + header_params: RequestHeaderParams = frozendict.frozendict(), + content_type: str = 'application/x-www-form-urlencoded', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _enum_parameters_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + query_params: RequestQueryParams = frozendict.frozendict(), + header_params: RequestHeaderParams = frozendict.frozendict(), + content_type: str = 'application/x-www-form-urlencoded', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def _enum_parameters_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, @@ -290,6 +319,8 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -367,6 +398,35 @@ class BaseApi(api_client.Api): class EnumParameters(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def enum_parameters( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + query_params: RequestQueryParams = frozendict.frozendict(), + header_params: RequestHeaderParams = frozendict.frozendict(), + content_type: str = 'application/x-www-form-urlencoded', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + ]: + ... + + @typing.overload + def enum_parameters( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + query_params: RequestQueryParams = frozendict.frozendict(), + header_params: RequestHeaderParams = frozendict.frozendict(), + content_type: str = 'application/x-www-form-urlencoded', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def enum_parameters( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, @@ -377,6 +437,8 @@ class EnumParameters(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._enum_parameters_oapg( @@ -393,6 +455,35 @@ class EnumParameters(BaseApi): class ApiForget(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def get( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + query_params: RequestQueryParams = frozendict.frozendict(), + header_params: RequestHeaderParams = frozendict.frozendict(), + content_type: str = 'application/x-www-form-urlencoded', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + ]: + ... + + @typing.overload + def get( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + query_params: RequestQueryParams = frozendict.frozendict(), + header_params: RequestHeaderParams = frozendict.frozendict(), + content_type: str = 'application/x-www-form-urlencoded', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def get( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, @@ -403,6 +494,8 @@ class ApiForget(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._enum_parameters_oapg( diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake/patch.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake/patch.py index cb0a1d3c5aa..65b4fa04a20 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake/patch.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake/patch.py @@ -69,6 +69,32 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _client_model_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _client_model_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def _client_model_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -78,7 +104,7 @@ def _client_model_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -134,6 +160,32 @@ class instances class ClientModel(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def client_model( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def client_model( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def client_model( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -143,7 +195,7 @@ def client_model( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._client_model_oapg( @@ -159,6 +211,32 @@ def client_model( class ApiForpatch(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def patch( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def patch( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def patch( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -168,7 +246,7 @@ def patch( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._client_model_oapg( diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake/patch.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake/patch.pyi index 9513e0bc08d..c85b4c6dc2c 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake/patch.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake/patch.pyi @@ -37,6 +37,32 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _client_model_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _client_model_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def _client_model_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -46,7 +72,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -102,6 +128,32 @@ class BaseApi(api_client.Api): class ClientModel(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def client_model( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def client_model( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def client_model( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -111,7 +163,7 @@ class ClientModel(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._client_model_oapg( @@ -127,6 +179,32 @@ class ClientModel(BaseApi): class ApiForpatch(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def patch( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def patch( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def patch( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -136,7 +214,7 @@ class ApiForpatch(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._client_model_oapg( diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake/post.py index b732e5d6100..d02ab1534e0 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake/post.py @@ -340,6 +340,31 @@ class ApiResponseFor404(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _endpoint_parameters_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + content_type: str = 'application/x-www-form-urlencoded', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _endpoint_parameters_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + content_type: str = 'application/x-www-form-urlencoded', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def _endpoint_parameters_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, @@ -348,6 +373,8 @@ def _endpoint_parameters_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -399,6 +426,31 @@ class instances class EndpointParameters(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def endpoint_parameters( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + content_type: str = 'application/x-www-form-urlencoded', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + ]: + ... + + @typing.overload + def endpoint_parameters( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + content_type: str = 'application/x-www-form-urlencoded', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def endpoint_parameters( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, @@ -407,6 +459,8 @@ def endpoint_parameters( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._endpoint_parameters_oapg( @@ -421,6 +475,31 @@ def endpoint_parameters( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + content_type: str = 'application/x-www-form-urlencoded', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + content_type: str = 'application/x-www-form-urlencoded', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, @@ -429,6 +508,8 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._endpoint_parameters_oapg( diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake/post.pyi index e6ee494da3e..4f6090506ea 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake/post.pyi @@ -259,6 +259,31 @@ class SchemaForRequestBodyApplicationXWwwFormUrlencoded( class BaseApi(api_client.Api): + @typing.overload + def _endpoint_parameters_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + content_type: str = 'application/x-www-form-urlencoded', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _endpoint_parameters_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + content_type: str = 'application/x-www-form-urlencoded', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def _endpoint_parameters_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, @@ -267,6 +292,8 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -318,6 +345,31 @@ class BaseApi(api_client.Api): class EndpointParameters(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def endpoint_parameters( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + content_type: str = 'application/x-www-form-urlencoded', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + ]: + ... + + @typing.overload + def endpoint_parameters( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + content_type: str = 'application/x-www-form-urlencoded', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def endpoint_parameters( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, @@ -326,6 +378,8 @@ class EndpointParameters(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._endpoint_parameters_oapg( @@ -340,6 +394,31 @@ class EndpointParameters(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + content_type: str = 'application/x-www-form-urlencoded', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + content_type: str = 'application/x-www-form-urlencoded', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, @@ -348,6 +427,8 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._endpoint_parameters_oapg( diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_additional_properties_with_array_of_enums/get.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_additional_properties_with_array_of_enums/get.py index c1ee6c01440..c6eac3ff3f4 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_additional_properties_with_array_of_enums/get.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_additional_properties_with_array_of_enums/get.py @@ -68,6 +68,32 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _additional_properties_with_array_of_enums_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _additional_properties_with_array_of_enums_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def _additional_properties_with_array_of_enums_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, @@ -77,7 +103,7 @@ def _additional_properties_with_array_of_enums_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -131,6 +157,32 @@ class instances class AdditionalPropertiesWithArrayOfEnums(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def additional_properties_with_array_of_enums( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def additional_properties_with_array_of_enums( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def additional_properties_with_array_of_enums( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, @@ -140,7 +192,7 @@ def additional_properties_with_array_of_enums( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._additional_properties_with_array_of_enums_oapg( @@ -156,6 +208,32 @@ def additional_properties_with_array_of_enums( class ApiForget(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def get( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def get( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def get( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, @@ -165,7 +243,7 @@ def get( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._additional_properties_with_array_of_enums_oapg( diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_additional_properties_with_array_of_enums/get.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_additional_properties_with_array_of_enums/get.pyi index 297cb4db509..2c9a9160bf7 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_additional_properties_with_array_of_enums/get.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_additional_properties_with_array_of_enums/get.pyi @@ -37,6 +37,32 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _additional_properties_with_array_of_enums_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _additional_properties_with_array_of_enums_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def _additional_properties_with_array_of_enums_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, @@ -46,7 +72,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -100,6 +126,32 @@ class BaseApi(api_client.Api): class AdditionalPropertiesWithArrayOfEnums(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def additional_properties_with_array_of_enums( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def additional_properties_with_array_of_enums( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def additional_properties_with_array_of_enums( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, @@ -109,7 +161,7 @@ class AdditionalPropertiesWithArrayOfEnums(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._additional_properties_with_array_of_enums_oapg( @@ -125,6 +177,32 @@ class AdditionalPropertiesWithArrayOfEnums(BaseApi): class ApiForget(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def get( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def get( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def get( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, @@ -134,7 +212,7 @@ class ApiForget(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._additional_properties_with_array_of_enums_oapg( diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_body_with_file_schema/put.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_body_with_file_schema/put.py index c6174989d12..b25009a9b62 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_body_with_file_schema/put.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_body_with_file_schema/put.py @@ -59,6 +59,30 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _body_with_file_schema_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _body_with_file_schema_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def _body_with_file_schema_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -67,7 +91,7 @@ def _body_with_file_schema_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -119,6 +143,30 @@ class instances class BodyWithFileSchema(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def body_with_file_schema( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def body_with_file_schema( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def body_with_file_schema( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -127,7 +175,7 @@ def body_with_file_schema( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._body_with_file_schema_oapg( @@ -142,6 +190,30 @@ def body_with_file_schema( class ApiForput(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def put( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def put( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def put( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -150,7 +222,7 @@ def put( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._body_with_file_schema_oapg( diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_body_with_file_schema/put.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_body_with_file_schema/put.pyi index d5f6d24f0a7..d64be21ed17 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_body_with_file_schema/put.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_body_with_file_schema/put.pyi @@ -33,6 +33,30 @@ SchemaForRequestBodyApplicationJson = FileSchemaTestClass class BaseApi(api_client.Api): + @typing.overload + def _body_with_file_schema_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _body_with_file_schema_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def _body_with_file_schema_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -41,7 +65,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -93,6 +117,30 @@ class BaseApi(api_client.Api): class BodyWithFileSchema(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def body_with_file_schema( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def body_with_file_schema( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def body_with_file_schema( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -101,7 +149,7 @@ class BodyWithFileSchema(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._body_with_file_schema_oapg( @@ -116,6 +164,30 @@ class BodyWithFileSchema(BaseApi): class ApiForput(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def put( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def put( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def put( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -124,7 +196,7 @@ class ApiForput(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._body_with_file_schema_oapg( diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_body_with_query_params/put.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_body_with_query_params/put.py index 3f34b578247..4d87a463899 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_body_with_query_params/put.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_body_with_query_params/put.py @@ -86,6 +86,32 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _body_with_query_params_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + query_params: RequestQueryParams = frozendict.frozendict(), + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _body_with_query_params_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + query_params: RequestQueryParams = frozendict.frozendict(), + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def _body_with_query_params_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -95,7 +121,7 @@ def _body_with_query_params_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -161,6 +187,32 @@ class instances class BodyWithQueryParams(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def body_with_query_params( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + query_params: RequestQueryParams = frozendict.frozendict(), + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def body_with_query_params( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + query_params: RequestQueryParams = frozendict.frozendict(), + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def body_with_query_params( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -170,7 +222,7 @@ def body_with_query_params( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._body_with_query_params_oapg( @@ -186,6 +238,32 @@ def body_with_query_params( class ApiForput(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def put( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + query_params: RequestQueryParams = frozendict.frozendict(), + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def put( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + query_params: RequestQueryParams = frozendict.frozendict(), + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def put( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -195,7 +273,7 @@ def put( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._body_with_query_params_oapg( diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_body_with_query_params/put.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_body_with_query_params/put.pyi index 43c58164943..73128d38860 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_body_with_query_params/put.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_body_with_query_params/put.pyi @@ -35,6 +35,32 @@ SchemaForRequestBodyApplicationJson = User class BaseApi(api_client.Api): + @typing.overload + def _body_with_query_params_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + query_params: RequestQueryParams = frozendict.frozendict(), + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _body_with_query_params_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + query_params: RequestQueryParams = frozendict.frozendict(), + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def _body_with_query_params_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -44,7 +70,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -110,6 +136,32 @@ class BaseApi(api_client.Api): class BodyWithQueryParams(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def body_with_query_params( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + query_params: RequestQueryParams = frozendict.frozendict(), + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def body_with_query_params( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + query_params: RequestQueryParams = frozendict.frozendict(), + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def body_with_query_params( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -119,7 +171,7 @@ class BodyWithQueryParams(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._body_with_query_params_oapg( @@ -135,6 +187,32 @@ class BodyWithQueryParams(BaseApi): class ApiForput(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def put( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + query_params: RequestQueryParams = frozendict.frozendict(), + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def put( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + query_params: RequestQueryParams = frozendict.frozendict(), + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def put( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -144,7 +222,7 @@ class ApiForput(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._body_with_query_params_oapg( diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_case_sensitive_params/put.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_case_sensitive_params/put.py index 1ecaf9befac..e2220491cf3 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_case_sensitive_params/put.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_case_sensitive_params/put.py @@ -90,6 +90,28 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _case_sensitive_params_oapg( + self: api_client.Api, + query_params: RequestQueryParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _case_sensitive_params_oapg( + self: api_client.Api, + query_params: RequestQueryParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def _case_sensitive_params_oapg( self: api_client.Api, query_params: RequestQueryParams = frozendict.frozendict(), @@ -97,7 +119,7 @@ def _case_sensitive_params_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -149,6 +171,28 @@ class instances class CaseSensitiveParams(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def case_sensitive_params( + self: api_client.Api, + query_params: RequestQueryParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def case_sensitive_params( + self: api_client.Api, + query_params: RequestQueryParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def case_sensitive_params( self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), @@ -156,7 +200,7 @@ def case_sensitive_params( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._case_sensitive_params_oapg( @@ -170,6 +214,28 @@ def case_sensitive_params( class ApiForput(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def put( + self: api_client.Api, + query_params: RequestQueryParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def put( + self: api_client.Api, + query_params: RequestQueryParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def put( self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), @@ -177,7 +243,7 @@ def put( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._case_sensitive_params_oapg( diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_case_sensitive_params/put.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_case_sensitive_params/put.pyi index b11af7bfdd1..8bd1decbfc6 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_case_sensitive_params/put.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_case_sensitive_params/put.pyi @@ -32,6 +32,28 @@ SomeVarSchema = schemas.StrSchema class BaseApi(api_client.Api): + @typing.overload + def _case_sensitive_params_oapg( + self: api_client.Api, + query_params: RequestQueryParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _case_sensitive_params_oapg( + self: api_client.Api, + query_params: RequestQueryParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def _case_sensitive_params_oapg( self: api_client.Api, query_params: RequestQueryParams = frozendict.frozendict(), @@ -39,7 +61,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -91,6 +113,28 @@ class BaseApi(api_client.Api): class CaseSensitiveParams(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def case_sensitive_params( + self: api_client.Api, + query_params: RequestQueryParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def case_sensitive_params( + self: api_client.Api, + query_params: RequestQueryParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def case_sensitive_params( self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), @@ -98,7 +142,7 @@ class CaseSensitiveParams(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._case_sensitive_params_oapg( @@ -112,6 +156,28 @@ class CaseSensitiveParams(BaseApi): class ApiForput(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def put( + self: api_client.Api, + query_params: RequestQueryParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def put( + self: api_client.Api, + query_params: RequestQueryParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def put( self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), @@ -119,7 +185,7 @@ class ApiForput(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._case_sensitive_params_oapg( diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_classname_test/patch.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_classname_test/patch.py index adec01e9aec..8485e0400b5 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_classname_test/patch.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_classname_test/patch.py @@ -72,6 +72,32 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _classname_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _classname_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def _classname_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -81,7 +107,7 @@ def _classname_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -138,6 +164,32 @@ class instances class Classname(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def classname( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def classname( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def classname( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -147,7 +199,7 @@ def classname( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._classname_oapg( @@ -163,6 +215,32 @@ def classname( class ApiForpatch(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def patch( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def patch( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def patch( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -172,7 +250,7 @@ def patch( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._classname_oapg( diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_classname_test/patch.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_classname_test/patch.pyi index 8381fa1a81c..9bd4601d9a5 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_classname_test/patch.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_classname_test/patch.pyi @@ -37,6 +37,32 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _classname_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _classname_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def _classname_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -46,7 +72,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -103,6 +129,32 @@ class BaseApi(api_client.Api): class Classname(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def classname( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def classname( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def classname( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -112,7 +164,7 @@ class Classname(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._classname_oapg( @@ -128,6 +180,32 @@ class Classname(BaseApi): class ApiForpatch(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def patch( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def patch( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def patch( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -137,7 +215,7 @@ class ApiForpatch(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._classname_oapg( diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_delete_coffee_id/delete.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_delete_coffee_id/delete.py index 3cc5cf64c1b..6fc3a381d50 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_delete_coffee_id/delete.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_delete_coffee_id/delete.py @@ -84,6 +84,29 @@ class ApiResponseForDefault(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _delete_coffee_oapg( + self: api_client.Api, + path_params: RequestPathParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ApiResponseForDefault, + ]: + ... + + @typing.overload + def _delete_coffee_oapg( + self: api_client.Api, + path_params: RequestPathParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def _delete_coffee_oapg( self: api_client.Api, path_params: RequestPathParams = frozendict.frozendict(), @@ -91,7 +114,7 @@ def _delete_coffee_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, ApiResponseForDefault, api_client.ApiResponseWithoutDeserialization ]: @@ -147,6 +170,29 @@ class instances class DeleteCoffee(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def delete_coffee( + self: api_client.Api, + path_params: RequestPathParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ApiResponseForDefault, + ]: + ... + + @typing.overload + def delete_coffee( + self: api_client.Api, + path_params: RequestPathParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def delete_coffee( self: BaseApi, path_params: RequestPathParams = frozendict.frozendict(), @@ -154,7 +200,7 @@ def delete_coffee( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, ApiResponseForDefault, api_client.ApiResponseWithoutDeserialization ]: @@ -169,6 +215,29 @@ def delete_coffee( class ApiFordelete(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def delete( + self: api_client.Api, + path_params: RequestPathParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ApiResponseForDefault, + ]: + ... + + @typing.overload + def delete( + self: api_client.Api, + path_params: RequestPathParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def delete( self: BaseApi, path_params: RequestPathParams = frozendict.frozendict(), @@ -176,7 +245,7 @@ def delete( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, ApiResponseForDefault, api_client.ApiResponseWithoutDeserialization ]: diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_delete_coffee_id/delete.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_delete_coffee_id/delete.pyi index d7522ad66fb..938b54ad76b 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_delete_coffee_id/delete.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_delete_coffee_id/delete.pyi @@ -30,6 +30,29 @@ IdSchema = schemas.StrSchema class BaseApi(api_client.Api): + @typing.overload + def _delete_coffee_oapg( + self: api_client.Api, + path_params: RequestPathParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ApiResponseForDefault, + ]: + ... + + @typing.overload + def _delete_coffee_oapg( + self: api_client.Api, + path_params: RequestPathParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def _delete_coffee_oapg( self: api_client.Api, path_params: RequestPathParams = frozendict.frozendict(), @@ -37,7 +60,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, ApiResponseForDefault, api_client.ApiResponseWithoutDeserialization ]: @@ -93,6 +116,29 @@ class BaseApi(api_client.Api): class DeleteCoffee(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def delete_coffee( + self: api_client.Api, + path_params: RequestPathParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ApiResponseForDefault, + ]: + ... + + @typing.overload + def delete_coffee( + self: api_client.Api, + path_params: RequestPathParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def delete_coffee( self: BaseApi, path_params: RequestPathParams = frozendict.frozendict(), @@ -100,7 +146,7 @@ class DeleteCoffee(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, ApiResponseForDefault, api_client.ApiResponseWithoutDeserialization ]: @@ -115,6 +161,29 @@ class DeleteCoffee(BaseApi): class ApiFordelete(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def delete( + self: api_client.Api, + path_params: RequestPathParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ApiResponseForDefault, + ]: + ... + + @typing.overload + def delete( + self: api_client.Api, + path_params: RequestPathParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def delete( self: BaseApi, path_params: RequestPathParams = frozendict.frozendict(), @@ -122,7 +191,7 @@ class ApiFordelete(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, ApiResponseForDefault, api_client.ApiResponseWithoutDeserialization ]: diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_health/get.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_health/get.py index 956d347dbd5..6d308269393 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_health/get.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_health/get.py @@ -58,6 +58,28 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _fake_health_get_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _fake_health_get_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def _fake_health_get_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -65,7 +87,7 @@ def _fake_health_get_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -108,6 +130,28 @@ class instances class FakeHealthGet(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def fake_health_get( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def fake_health_get( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def fake_health_get( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -115,7 +159,7 @@ def fake_health_get( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._fake_health_get_oapg( @@ -129,6 +173,28 @@ def fake_health_get( class ApiForget(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def get( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def get( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def get( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -136,7 +202,7 @@ def get( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._fake_health_get_oapg( diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_health/get.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_health/get.pyi index 3ba8d20c2a9..a05f5f4123e 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_health/get.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_health/get.pyi @@ -35,6 +35,28 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _fake_health_get_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _fake_health_get_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def _fake_health_get_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -42,7 +64,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -85,6 +107,28 @@ class BaseApi(api_client.Api): class FakeHealthGet(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def fake_health_get( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def fake_health_get( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def fake_health_get( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -92,7 +136,7 @@ class FakeHealthGet(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._fake_health_get_oapg( @@ -106,6 +150,28 @@ class FakeHealthGet(BaseApi): class ApiForget(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def get( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def get( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def get( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -113,7 +179,7 @@ class ApiForget(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._fake_health_get_oapg( diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_inline_additional_properties/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_inline_additional_properties/post.py index e09fc626a53..f97ebd18490 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_inline_additional_properties/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_inline_additional_properties/post.py @@ -85,6 +85,30 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _inline_additional_properties_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _inline_additional_properties_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def _inline_additional_properties_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, ], @@ -93,7 +117,7 @@ def _inline_additional_properties_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -146,6 +170,30 @@ class instances class InlineAdditionalProperties(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def inline_additional_properties( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def inline_additional_properties( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def inline_additional_properties( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, ], @@ -154,7 +202,7 @@ def inline_additional_properties( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._inline_additional_properties_oapg( @@ -169,6 +217,30 @@ def inline_additional_properties( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, ], @@ -177,7 +249,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._inline_additional_properties_oapg( diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_inline_additional_properties/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_inline_additional_properties/post.pyi index 9312b60c9d8..4d6701d05c4 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_inline_additional_properties/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_inline_additional_properties/post.pyi @@ -59,6 +59,30 @@ class SchemaForRequestBodyApplicationJson( class BaseApi(api_client.Api): + @typing.overload + def _inline_additional_properties_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _inline_additional_properties_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def _inline_additional_properties_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, ], @@ -67,7 +91,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -120,6 +144,30 @@ class BaseApi(api_client.Api): class InlineAdditionalProperties(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def inline_additional_properties( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def inline_additional_properties( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def inline_additional_properties( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, ], @@ -128,7 +176,7 @@ class InlineAdditionalProperties(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._inline_additional_properties_oapg( @@ -143,6 +191,30 @@ class InlineAdditionalProperties(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, ], @@ -151,7 +223,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._inline_additional_properties_oapg( diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_inline_composition_/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_inline_composition_/post.py index 43c746f71e0..c9b73b6b3a7 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_inline_composition_/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_inline_composition_/post.py @@ -519,6 +519,34 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _inline_composition_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + query_params: RequestQueryParams = frozendict.frozendict(), + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _inline_composition_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + query_params: RequestQueryParams = frozendict.frozendict(), + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def _inline_composition_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, @@ -529,7 +557,7 @@ def _inline_composition_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -598,6 +626,34 @@ class instances class InlineComposition(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def inline_composition( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + query_params: RequestQueryParams = frozendict.frozendict(), + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def inline_composition( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + query_params: RequestQueryParams = frozendict.frozendict(), + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def inline_composition( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, @@ -608,7 +664,7 @@ def inline_composition( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._inline_composition_oapg( @@ -625,6 +681,34 @@ def inline_composition( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + query_params: RequestQueryParams = frozendict.frozendict(), + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + query_params: RequestQueryParams = frozendict.frozendict(), + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, @@ -635,7 +719,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._inline_composition_oapg( diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_inline_composition_/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_inline_composition_/post.pyi index ef77ebb2458..565ea19c406 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_inline_composition_/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_inline_composition_/post.pyi @@ -434,6 +434,34 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _inline_composition_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + query_params: RequestQueryParams = frozendict.frozendict(), + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _inline_composition_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + query_params: RequestQueryParams = frozendict.frozendict(), + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def _inline_composition_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, @@ -444,7 +472,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -513,6 +541,34 @@ class BaseApi(api_client.Api): class InlineComposition(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def inline_composition( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + query_params: RequestQueryParams = frozendict.frozendict(), + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def inline_composition( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + query_params: RequestQueryParams = frozendict.frozendict(), + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def inline_composition( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, @@ -523,7 +579,7 @@ class InlineComposition(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._inline_composition_oapg( @@ -540,6 +596,34 @@ class InlineComposition(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + query_params: RequestQueryParams = frozendict.frozendict(), + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + query_params: RequestQueryParams = frozendict.frozendict(), + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, @@ -550,7 +634,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._inline_composition_oapg( diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_form_data/get.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_form_data/get.py index 69d6a915813..953272d357a 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_form_data/get.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_form_data/get.py @@ -122,6 +122,30 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _json_form_data_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + content_type: str = 'application/x-www-form-urlencoded', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _json_form_data_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + content_type: str = 'application/x-www-form-urlencoded', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def _json_form_data_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, @@ -130,7 +154,7 @@ def _json_form_data_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -181,6 +205,30 @@ class instances class JsonFormData(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def json_form_data( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + content_type: str = 'application/x-www-form-urlencoded', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def json_form_data( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + content_type: str = 'application/x-www-form-urlencoded', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def json_form_data( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, @@ -189,7 +237,7 @@ def json_form_data( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._json_form_data_oapg( @@ -204,6 +252,30 @@ def json_form_data( class ApiForget(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def get( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + content_type: str = 'application/x-www-form-urlencoded', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def get( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + content_type: str = 'application/x-www-form-urlencoded', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def get( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, @@ -212,7 +284,7 @@ def get( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._json_form_data_oapg( diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_form_data/get.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_form_data/get.pyi index 71c3412515e..aac980031a9 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_form_data/get.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_form_data/get.pyi @@ -97,6 +97,30 @@ class SchemaForRequestBodyApplicationXWwwFormUrlencoded( class BaseApi(api_client.Api): + @typing.overload + def _json_form_data_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + content_type: str = 'application/x-www-form-urlencoded', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _json_form_data_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + content_type: str = 'application/x-www-form-urlencoded', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def _json_form_data_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, @@ -105,7 +129,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -156,6 +180,30 @@ class BaseApi(api_client.Api): class JsonFormData(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def json_form_data( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + content_type: str = 'application/x-www-form-urlencoded', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def json_form_data( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + content_type: str = 'application/x-www-form-urlencoded', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def json_form_data( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, @@ -164,7 +212,7 @@ class JsonFormData(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._json_form_data_oapg( @@ -179,6 +227,30 @@ class JsonFormData(BaseApi): class ApiForget(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def get( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + content_type: str = 'application/x-www-form-urlencoded', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def get( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + content_type: str = 'application/x-www-form-urlencoded', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def get( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, @@ -187,7 +259,7 @@ class ApiForget(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._json_form_data_oapg( diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_patch/patch.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_patch/patch.py index 00b8cf45421..0bd87a6f5d0 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_patch/patch.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_patch/patch.py @@ -58,6 +58,30 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _json_patch_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJsonPatchjson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json-patch+json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _json_patch_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJsonPatchjson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json-patch+json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def _json_patch_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJsonPatchjson, schemas.Unset] = schemas.unset, @@ -66,7 +90,7 @@ def _json_patch_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -117,6 +141,30 @@ class instances class JsonPatch(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def json_patch( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJsonPatchjson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json-patch+json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def json_patch( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJsonPatchjson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json-patch+json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def json_patch( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJsonPatchjson, schemas.Unset] = schemas.unset, @@ -125,7 +173,7 @@ def json_patch( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._json_patch_oapg( @@ -140,6 +188,30 @@ def json_patch( class ApiForpatch(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def patch( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJsonPatchjson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json-patch+json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def patch( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJsonPatchjson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json-patch+json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def patch( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJsonPatchjson, schemas.Unset] = schemas.unset, @@ -148,7 +220,7 @@ def patch( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._json_patch_oapg( diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_patch/patch.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_patch/patch.pyi index 65d08b9962d..70998494a74 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_patch/patch.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_patch/patch.pyi @@ -33,6 +33,30 @@ SchemaForRequestBodyApplicationJsonPatchjson = JSONPatchRequest class BaseApi(api_client.Api): + @typing.overload + def _json_patch_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJsonPatchjson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json-patch+json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _json_patch_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJsonPatchjson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json-patch+json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def _json_patch_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJsonPatchjson, schemas.Unset] = schemas.unset, @@ -41,7 +65,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -92,6 +116,30 @@ class BaseApi(api_client.Api): class JsonPatch(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def json_patch( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJsonPatchjson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json-patch+json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def json_patch( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJsonPatchjson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json-patch+json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def json_patch( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJsonPatchjson, schemas.Unset] = schemas.unset, @@ -100,7 +148,7 @@ class JsonPatch(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._json_patch_oapg( @@ -115,6 +163,30 @@ class JsonPatch(BaseApi): class ApiForpatch(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def patch( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJsonPatchjson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json-patch+json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def patch( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJsonPatchjson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json-patch+json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def patch( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJsonPatchjson, schemas.Unset] = schemas.unset, @@ -123,7 +195,7 @@ class ApiForpatch(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._json_patch_oapg( diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_with_charset/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_with_charset/post.py index 9f003807d23..15a805d2f56 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_with_charset/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_with_charset/post.py @@ -66,6 +66,32 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _json_with_charset_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJsonCharsetutf8, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + content_type: str = 'application/json; charset=utf-8', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _json_with_charset_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJsonCharsetutf8, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + content_type: str = 'application/json; charset=utf-8', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def _json_with_charset_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJsonCharsetutf8, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, @@ -75,7 +101,7 @@ def _json_with_charset_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -129,6 +155,32 @@ class instances class JsonWithCharset(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def json_with_charset( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJsonCharsetutf8, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + content_type: str = 'application/json; charset=utf-8', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def json_with_charset( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJsonCharsetutf8, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + content_type: str = 'application/json; charset=utf-8', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def json_with_charset( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJsonCharsetutf8, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, @@ -138,7 +190,7 @@ def json_with_charset( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._json_with_charset_oapg( @@ -154,6 +206,32 @@ def json_with_charset( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJsonCharsetutf8, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + content_type: str = 'application/json; charset=utf-8', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJsonCharsetutf8, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + content_type: str = 'application/json; charset=utf-8', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJsonCharsetutf8, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, @@ -163,7 +241,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._json_with_charset_oapg( diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_with_charset/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_with_charset/post.pyi index a2700e06277..8dfa8dbbd98 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_with_charset/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_with_charset/post.pyi @@ -35,6 +35,32 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _json_with_charset_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJsonCharsetutf8, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + content_type: str = 'application/json; charset=utf-8', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _json_with_charset_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJsonCharsetutf8, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + content_type: str = 'application/json; charset=utf-8', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def _json_with_charset_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJsonCharsetutf8, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, @@ -44,7 +70,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -98,6 +124,32 @@ class BaseApi(api_client.Api): class JsonWithCharset(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def json_with_charset( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJsonCharsetutf8, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + content_type: str = 'application/json; charset=utf-8', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def json_with_charset( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJsonCharsetutf8, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + content_type: str = 'application/json; charset=utf-8', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def json_with_charset( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJsonCharsetutf8, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, @@ -107,7 +159,7 @@ class JsonWithCharset(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._json_with_charset_oapg( @@ -123,6 +175,32 @@ class JsonWithCharset(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJsonCharsetutf8, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + content_type: str = 'application/json; charset=utf-8', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJsonCharsetutf8, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + content_type: str = 'application/json; charset=utf-8', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJsonCharsetutf8, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, @@ -132,7 +210,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._json_with_charset_oapg( diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_obj_in_query/get.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_obj_in_query/get.py index 36d5018988b..7a8e011d87c 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_obj_in_query/get.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_obj_in_query/get.py @@ -120,6 +120,28 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _object_in_query_oapg( + self: api_client.Api, + query_params: RequestQueryParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _object_in_query_oapg( + self: api_client.Api, + query_params: RequestQueryParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def _object_in_query_oapg( self: api_client.Api, query_params: RequestQueryParams = frozendict.frozendict(), @@ -127,7 +149,7 @@ def _object_in_query_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -178,6 +200,28 @@ class instances class ObjectInQuery(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def object_in_query( + self: api_client.Api, + query_params: RequestQueryParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def object_in_query( + self: api_client.Api, + query_params: RequestQueryParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def object_in_query( self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), @@ -185,7 +229,7 @@ def object_in_query( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._object_in_query_oapg( @@ -199,6 +243,28 @@ def object_in_query( class ApiForget(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def get( + self: api_client.Api, + query_params: RequestQueryParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def get( + self: api_client.Api, + query_params: RequestQueryParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def get( self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), @@ -206,7 +272,7 @@ def get( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._object_in_query_oapg( diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_obj_in_query/get.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_obj_in_query/get.pyi index 3933c00010d..ac06bdaf64c 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_obj_in_query/get.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_obj_in_query/get.pyi @@ -79,6 +79,28 @@ class MapBeanSchema( class BaseApi(api_client.Api): + @typing.overload + def _object_in_query_oapg( + self: api_client.Api, + query_params: RequestQueryParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _object_in_query_oapg( + self: api_client.Api, + query_params: RequestQueryParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def _object_in_query_oapg( self: api_client.Api, query_params: RequestQueryParams = frozendict.frozendict(), @@ -86,7 +108,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -137,6 +159,28 @@ class BaseApi(api_client.Api): class ObjectInQuery(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def object_in_query( + self: api_client.Api, + query_params: RequestQueryParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def object_in_query( + self: api_client.Api, + query_params: RequestQueryParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def object_in_query( self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), @@ -144,7 +188,7 @@ class ObjectInQuery(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._object_in_query_oapg( @@ -158,6 +202,28 @@ class ObjectInQuery(BaseApi): class ApiForget(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def get( + self: api_client.Api, + query_params: RequestQueryParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def get( + self: api_client.Api, + query_params: RequestQueryParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def get( self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), @@ -165,7 +231,7 @@ class ApiForget(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._object_in_query_oapg( diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_parameter_collisions_1_a_b_ab_self_a_b_/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_parameter_collisions_1_a_b_ab_self_a_b_/post.py index c0c42ad3372..699c872e9b8 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_parameter_collisions_1_a_b_ab_self_a_b_/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_parameter_collisions_1_a_b_ab_self_a_b_/post.py @@ -286,6 +286,40 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _parameter_collisions_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + query_params: RequestQueryParams = frozendict.frozendict(), + header_params: RequestHeaderParams = frozendict.frozendict(), + path_params: RequestPathParams = frozendict.frozendict(), + cookie_params: RequestCookieParams = frozendict.frozendict(), + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _parameter_collisions_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + query_params: RequestQueryParams = frozendict.frozendict(), + header_params: RequestHeaderParams = frozendict.frozendict(), + path_params: RequestPathParams = frozendict.frozendict(), + cookie_params: RequestCookieParams = frozendict.frozendict(), + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def _parameter_collisions_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, @@ -299,7 +333,7 @@ def _parameter_collisions_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -402,6 +436,40 @@ class instances class ParameterCollisions(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def parameter_collisions( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + query_params: RequestQueryParams = frozendict.frozendict(), + header_params: RequestHeaderParams = frozendict.frozendict(), + path_params: RequestPathParams = frozendict.frozendict(), + cookie_params: RequestCookieParams = frozendict.frozendict(), + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def parameter_collisions( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + query_params: RequestQueryParams = frozendict.frozendict(), + header_params: RequestHeaderParams = frozendict.frozendict(), + path_params: RequestPathParams = frozendict.frozendict(), + cookie_params: RequestCookieParams = frozendict.frozendict(), + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def parameter_collisions( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, @@ -415,7 +483,7 @@ def parameter_collisions( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._parameter_collisions_oapg( @@ -435,6 +503,40 @@ def parameter_collisions( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + query_params: RequestQueryParams = frozendict.frozendict(), + header_params: RequestHeaderParams = frozendict.frozendict(), + path_params: RequestPathParams = frozendict.frozendict(), + cookie_params: RequestCookieParams = frozendict.frozendict(), + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + query_params: RequestQueryParams = frozendict.frozendict(), + header_params: RequestHeaderParams = frozendict.frozendict(), + path_params: RequestPathParams = frozendict.frozendict(), + cookie_params: RequestCookieParams = frozendict.frozendict(), + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, @@ -448,7 +550,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._parameter_collisions_oapg( diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_parameter_collisions_1_a_b_ab_self_a_b_/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_parameter_collisions_1_a_b_ab_self_a_b_/post.pyi index f87b6b9b1d0..fb709cc094b 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_parameter_collisions_1_a_b_ab_self_a_b_/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_parameter_collisions_1_a_b_ab_self_a_b_/post.pyi @@ -58,6 +58,40 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _parameter_collisions_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + query_params: RequestQueryParams = frozendict.frozendict(), + header_params: RequestHeaderParams = frozendict.frozendict(), + path_params: RequestPathParams = frozendict.frozendict(), + cookie_params: RequestCookieParams = frozendict.frozendict(), + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _parameter_collisions_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + query_params: RequestQueryParams = frozendict.frozendict(), + header_params: RequestHeaderParams = frozendict.frozendict(), + path_params: RequestPathParams = frozendict.frozendict(), + cookie_params: RequestCookieParams = frozendict.frozendict(), + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def _parameter_collisions_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, @@ -71,7 +105,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -174,6 +208,40 @@ class BaseApi(api_client.Api): class ParameterCollisions(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def parameter_collisions( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + query_params: RequestQueryParams = frozendict.frozendict(), + header_params: RequestHeaderParams = frozendict.frozendict(), + path_params: RequestPathParams = frozendict.frozendict(), + cookie_params: RequestCookieParams = frozendict.frozendict(), + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def parameter_collisions( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + query_params: RequestQueryParams = frozendict.frozendict(), + header_params: RequestHeaderParams = frozendict.frozendict(), + path_params: RequestPathParams = frozendict.frozendict(), + cookie_params: RequestCookieParams = frozendict.frozendict(), + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def parameter_collisions( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, @@ -187,7 +255,7 @@ class ParameterCollisions(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._parameter_collisions_oapg( @@ -207,6 +275,40 @@ class ParameterCollisions(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + query_params: RequestQueryParams = frozendict.frozendict(), + header_params: RequestHeaderParams = frozendict.frozendict(), + path_params: RequestPathParams = frozendict.frozendict(), + cookie_params: RequestCookieParams = frozendict.frozendict(), + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + query_params: RequestQueryParams = frozendict.frozendict(), + header_params: RequestHeaderParams = frozendict.frozendict(), + path_params: RequestPathParams = frozendict.frozendict(), + cookie_params: RequestCookieParams = frozendict.frozendict(), + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, @@ -220,7 +322,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._parameter_collisions_oapg( diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_pet_id_upload_image_with_required_file/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_pet_id_upload_image_with_required_file/post.py index ef60c3b93d8..f65193672c6 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_pet_id_upload_image_with_required_file/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_pet_id_upload_image_with_required_file/post.py @@ -161,6 +161,34 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _upload_file_with_required_file_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + path_params: RequestPathParams = frozendict.frozendict(), + content_type: str = 'multipart/form-data', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _upload_file_with_required_file_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + path_params: RequestPathParams = frozendict.frozendict(), + content_type: str = 'multipart/form-data', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def _upload_file_with_required_file_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, @@ -171,7 +199,7 @@ def _upload_file_with_required_file_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -240,6 +268,34 @@ class instances class UploadFileWithRequiredFile(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def upload_file_with_required_file( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + path_params: RequestPathParams = frozendict.frozendict(), + content_type: str = 'multipart/form-data', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def upload_file_with_required_file( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + path_params: RequestPathParams = frozendict.frozendict(), + content_type: str = 'multipart/form-data', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def upload_file_with_required_file( self: BaseApi, body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, @@ -250,7 +306,7 @@ def upload_file_with_required_file( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._upload_file_with_required_file_oapg( @@ -267,6 +323,34 @@ def upload_file_with_required_file( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + path_params: RequestPathParams = frozendict.frozendict(), + content_type: str = 'multipart/form-data', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + path_params: RequestPathParams = frozendict.frozendict(), + content_type: str = 'multipart/form-data', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, @@ -277,7 +361,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._upload_file_with_required_file_oapg( diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_pet_id_upload_image_with_required_file/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_pet_id_upload_image_with_required_file/post.pyi index e9c08258020..c9c920d1704 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_pet_id_upload_image_with_required_file/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_pet_id_upload_image_with_required_file/post.pyi @@ -103,6 +103,34 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _upload_file_with_required_file_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + path_params: RequestPathParams = frozendict.frozendict(), + content_type: str = 'multipart/form-data', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _upload_file_with_required_file_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + path_params: RequestPathParams = frozendict.frozendict(), + content_type: str = 'multipart/form-data', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def _upload_file_with_required_file_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, @@ -113,7 +141,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -182,6 +210,34 @@ class BaseApi(api_client.Api): class UploadFileWithRequiredFile(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def upload_file_with_required_file( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + path_params: RequestPathParams = frozendict.frozendict(), + content_type: str = 'multipart/form-data', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def upload_file_with_required_file( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + path_params: RequestPathParams = frozendict.frozendict(), + content_type: str = 'multipart/form-data', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def upload_file_with_required_file( self: BaseApi, body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, @@ -192,7 +248,7 @@ class UploadFileWithRequiredFile(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._upload_file_with_required_file_oapg( @@ -209,6 +265,34 @@ class UploadFileWithRequiredFile(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + path_params: RequestPathParams = frozendict.frozendict(), + content_type: str = 'multipart/form-data', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + path_params: RequestPathParams = frozendict.frozendict(), + content_type: str = 'multipart/form-data', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, @@ -219,7 +303,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._upload_file_with_required_file_oapg( diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_ref_obj_in_query/get.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_ref_obj_in_query/get.py index ae601b1781d..2c9877a6403 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_ref_obj_in_query/get.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_ref_obj_in_query/get.py @@ -73,6 +73,28 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _ref_object_in_query_oapg( + self: api_client.Api, + query_params: RequestQueryParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _ref_object_in_query_oapg( + self: api_client.Api, + query_params: RequestQueryParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def _ref_object_in_query_oapg( self: api_client.Api, query_params: RequestQueryParams = frozendict.frozendict(), @@ -80,7 +102,7 @@ def _ref_object_in_query_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -131,6 +153,28 @@ class instances class RefObjectInQuery(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def ref_object_in_query( + self: api_client.Api, + query_params: RequestQueryParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def ref_object_in_query( + self: api_client.Api, + query_params: RequestQueryParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def ref_object_in_query( self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), @@ -138,7 +182,7 @@ def ref_object_in_query( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._ref_object_in_query_oapg( @@ -152,6 +196,28 @@ def ref_object_in_query( class ApiForget(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def get( + self: api_client.Api, + query_params: RequestQueryParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def get( + self: api_client.Api, + query_params: RequestQueryParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def get( self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), @@ -159,7 +225,7 @@ def get( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._ref_object_in_query_oapg( diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_ref_obj_in_query/get.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_ref_obj_in_query/get.pyi index 272d34c102d..f9a9e5a0f65 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_ref_obj_in_query/get.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_ref_obj_in_query/get.pyi @@ -32,6 +32,28 @@ MapBeanSchema = Foo class BaseApi(api_client.Api): + @typing.overload + def _ref_object_in_query_oapg( + self: api_client.Api, + query_params: RequestQueryParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _ref_object_in_query_oapg( + self: api_client.Api, + query_params: RequestQueryParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def _ref_object_in_query_oapg( self: api_client.Api, query_params: RequestQueryParams = frozendict.frozendict(), @@ -39,7 +61,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -90,6 +112,28 @@ class BaseApi(api_client.Api): class RefObjectInQuery(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def ref_object_in_query( + self: api_client.Api, + query_params: RequestQueryParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def ref_object_in_query( + self: api_client.Api, + query_params: RequestQueryParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def ref_object_in_query( self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), @@ -97,7 +141,7 @@ class RefObjectInQuery(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._ref_object_in_query_oapg( @@ -111,6 +155,28 @@ class RefObjectInQuery(BaseApi): class ApiForget(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def get( + self: api_client.Api, + query_params: RequestQueryParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def get( + self: api_client.Api, + query_params: RequestQueryParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def get( self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), @@ -118,7 +184,7 @@ class ApiForget(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._ref_object_in_query_oapg( diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_array_of_enums/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_array_of_enums/post.py index fd14aeb19c8..9eb7ad66eda 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_array_of_enums/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_array_of_enums/post.py @@ -68,6 +68,32 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _array_of_enums_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _array_of_enums_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def _array_of_enums_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, @@ -77,7 +103,7 @@ def _array_of_enums_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -131,6 +157,32 @@ class instances class ArrayOfEnums(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def array_of_enums( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def array_of_enums( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def array_of_enums( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, @@ -140,7 +192,7 @@ def array_of_enums( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._array_of_enums_oapg( @@ -156,6 +208,32 @@ def array_of_enums( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, @@ -165,7 +243,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._array_of_enums_oapg( diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_array_of_enums/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_array_of_enums/post.pyi index f0a68485d92..e939f936ec5 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_array_of_enums/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_array_of_enums/post.pyi @@ -37,6 +37,32 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _array_of_enums_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _array_of_enums_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def _array_of_enums_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, @@ -46,7 +72,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -100,6 +126,32 @@ class BaseApi(api_client.Api): class ArrayOfEnums(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def array_of_enums( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def array_of_enums( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def array_of_enums( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, @@ -109,7 +161,7 @@ class ArrayOfEnums(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._array_of_enums_oapg( @@ -125,6 +177,32 @@ class ArrayOfEnums(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, @@ -134,7 +212,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._array_of_enums_oapg( diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_arraymodel/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_arraymodel/post.py index 69be2acbc86..ec93e81485e 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_arraymodel/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_arraymodel/post.py @@ -68,6 +68,32 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _array_model_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _array_model_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def _array_model_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, @@ -77,7 +103,7 @@ def _array_model_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -130,6 +156,32 @@ class instances class ArrayModel(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def array_model( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def array_model( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def array_model( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, @@ -139,7 +191,7 @@ def array_model( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._array_model_oapg( @@ -155,6 +207,32 @@ def array_model( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, @@ -164,7 +242,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._array_model_oapg( diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_arraymodel/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_arraymodel/post.pyi index c0efa3e3939..98a33b6b462 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_arraymodel/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_arraymodel/post.pyi @@ -37,6 +37,32 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _array_model_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _array_model_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def _array_model_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, @@ -46,7 +72,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -99,6 +125,32 @@ class BaseApi(api_client.Api): class ArrayModel(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def array_model( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def array_model( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def array_model( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, @@ -108,7 +160,7 @@ class ArrayModel(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._array_model_oapg( @@ -124,6 +176,32 @@ class ArrayModel(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, @@ -133,7 +211,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._array_model_oapg( diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_boolean/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_boolean/post.py index 4341a21a723..e00ce3c04f6 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_boolean/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_boolean/post.py @@ -66,6 +66,32 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _boolean_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, bool, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _boolean_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, bool, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def _boolean_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, bool, schemas.Unset] = schemas.unset, @@ -75,7 +101,7 @@ def _boolean_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -128,6 +154,32 @@ class instances class Boolean(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def boolean( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, bool, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def boolean( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, bool, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def boolean( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, bool, schemas.Unset] = schemas.unset, @@ -137,7 +189,7 @@ def boolean( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._boolean_oapg( @@ -153,6 +205,32 @@ def boolean( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, bool, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, bool, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, bool, schemas.Unset] = schemas.unset, @@ -162,7 +240,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._boolean_oapg( diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_boolean/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_boolean/post.pyi index bb75c710c6a..69851d26ec8 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_boolean/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_boolean/post.pyi @@ -35,6 +35,32 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _boolean_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, bool, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _boolean_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, bool, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def _boolean_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, bool, schemas.Unset] = schemas.unset, @@ -44,7 +70,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -97,6 +123,32 @@ class BaseApi(api_client.Api): class Boolean(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def boolean( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, bool, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def boolean( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, bool, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def boolean( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, bool, schemas.Unset] = schemas.unset, @@ -106,7 +158,7 @@ class Boolean(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._boolean_oapg( @@ -122,6 +174,32 @@ class Boolean(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, bool, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, bool, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, bool, schemas.Unset] = schemas.unset, @@ -131,7 +209,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._boolean_oapg( diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_composed_one_of_number_with_validations/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_composed_one_of_number_with_validations/post.py index 8a5362d3cfd..ec86a2cfd2c 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_composed_one_of_number_with_validations/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_composed_one_of_number_with_validations/post.py @@ -68,6 +68,32 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _composed_one_of_different_types_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _composed_one_of_different_types_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def _composed_one_of_different_types_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, @@ -77,7 +103,7 @@ def _composed_one_of_different_types_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -130,6 +156,32 @@ class instances class ComposedOneOfDifferentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def composed_one_of_different_types( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def composed_one_of_different_types( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def composed_one_of_different_types( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, @@ -139,7 +191,7 @@ def composed_one_of_different_types( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._composed_one_of_different_types_oapg( @@ -155,6 +207,32 @@ def composed_one_of_different_types( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, @@ -164,7 +242,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._composed_one_of_different_types_oapg( diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_composed_one_of_number_with_validations/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_composed_one_of_number_with_validations/post.pyi index fd0f12aec0c..326940c8ab3 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_composed_one_of_number_with_validations/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_composed_one_of_number_with_validations/post.pyi @@ -37,6 +37,32 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _composed_one_of_different_types_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _composed_one_of_different_types_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def _composed_one_of_different_types_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, @@ -46,7 +72,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -99,6 +125,32 @@ class BaseApi(api_client.Api): class ComposedOneOfDifferentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def composed_one_of_different_types( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def composed_one_of_different_types( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def composed_one_of_different_types( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, @@ -108,7 +160,7 @@ class ComposedOneOfDifferentTypes(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._composed_one_of_different_types_oapg( @@ -124,6 +176,32 @@ class ComposedOneOfDifferentTypes(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, @@ -133,7 +211,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._composed_one_of_different_types_oapg( diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_enum/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_enum/post.py index e7ea25ea04c..9fd32ddb7cb 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_enum/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_enum/post.py @@ -68,6 +68,32 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _string_enum_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _string_enum_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def _string_enum_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, @@ -77,7 +103,7 @@ def _string_enum_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -130,6 +156,32 @@ class instances class StringEnum(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def string_enum( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def string_enum( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def string_enum( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, @@ -139,7 +191,7 @@ def string_enum( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._string_enum_oapg( @@ -155,6 +207,32 @@ def string_enum( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, @@ -164,7 +242,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._string_enum_oapg( diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_enum/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_enum/post.pyi index 29291eef290..99ad7a07eb3 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_enum/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_enum/post.pyi @@ -37,6 +37,32 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _string_enum_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _string_enum_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def _string_enum_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, @@ -46,7 +72,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -99,6 +125,32 @@ class BaseApi(api_client.Api): class StringEnum(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def string_enum( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def string_enum( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def string_enum( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, @@ -108,7 +160,7 @@ class StringEnum(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._string_enum_oapg( @@ -124,6 +176,32 @@ class StringEnum(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, @@ -133,7 +211,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._string_enum_oapg( diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_mammal/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_mammal/post.py index 4154902886e..b4752821461 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_mammal/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_mammal/post.py @@ -69,6 +69,32 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _mammal_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _mammal_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def _mammal_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -78,7 +104,7 @@ def _mammal_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -133,6 +159,32 @@ class instances class Mammal(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def mammal( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def mammal( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def mammal( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -142,7 +194,7 @@ def mammal( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._mammal_oapg( @@ -158,6 +210,32 @@ def mammal( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -167,7 +245,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._mammal_oapg( diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_mammal/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_mammal/post.pyi index 41062d497f6..d8a3e98a0b6 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_mammal/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_mammal/post.pyi @@ -37,6 +37,32 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _mammal_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _mammal_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def _mammal_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -46,7 +72,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -101,6 +127,32 @@ class BaseApi(api_client.Api): class Mammal(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def mammal( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def mammal( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def mammal( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -110,7 +162,7 @@ class Mammal(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._mammal_oapg( @@ -126,6 +178,32 @@ class Mammal(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -135,7 +213,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._mammal_oapg( diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_number/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_number/post.py index 4ff581fd00e..c245cdcea10 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_number/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_number/post.py @@ -68,6 +68,32 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _number_with_validations_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _number_with_validations_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def _number_with_validations_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, @@ -77,7 +103,7 @@ def _number_with_validations_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -130,6 +156,32 @@ class instances class NumberWithValidations(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def number_with_validations( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def number_with_validations( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def number_with_validations( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, @@ -139,7 +191,7 @@ def number_with_validations( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._number_with_validations_oapg( @@ -155,6 +207,32 @@ def number_with_validations( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, @@ -164,7 +242,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._number_with_validations_oapg( diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_number/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_number/post.pyi index 57041801964..0899f46445f 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_number/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_number/post.pyi @@ -37,6 +37,32 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _number_with_validations_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _number_with_validations_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def _number_with_validations_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, @@ -46,7 +72,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -99,6 +125,32 @@ class BaseApi(api_client.Api): class NumberWithValidations(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def number_with_validations( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def number_with_validations( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def number_with_validations( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, @@ -108,7 +160,7 @@ class NumberWithValidations(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._number_with_validations_oapg( @@ -124,6 +176,32 @@ class NumberWithValidations(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, @@ -133,7 +211,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._number_with_validations_oapg( diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_object_model_with_ref_props/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_object_model_with_ref_props/post.py index bff2bd9a949..7336495317e 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_object_model_with_ref_props/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_object_model_with_ref_props/post.py @@ -68,6 +68,32 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _object_model_with_ref_props_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _object_model_with_ref_props_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def _object_model_with_ref_props_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, @@ -77,7 +103,7 @@ def _object_model_with_ref_props_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -130,6 +156,32 @@ class instances class ObjectModelWithRefProps(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def object_model_with_ref_props( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def object_model_with_ref_props( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def object_model_with_ref_props( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, @@ -139,7 +191,7 @@ def object_model_with_ref_props( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._object_model_with_ref_props_oapg( @@ -155,6 +207,32 @@ def object_model_with_ref_props( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, @@ -164,7 +242,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._object_model_with_ref_props_oapg( diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_object_model_with_ref_props/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_object_model_with_ref_props/post.pyi index e48de2e5165..3d9847f044d 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_object_model_with_ref_props/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_object_model_with_ref_props/post.pyi @@ -37,6 +37,32 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _object_model_with_ref_props_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _object_model_with_ref_props_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def _object_model_with_ref_props_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, @@ -46,7 +72,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -99,6 +125,32 @@ class BaseApi(api_client.Api): class ObjectModelWithRefProps(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def object_model_with_ref_props( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def object_model_with_ref_props( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def object_model_with_ref_props( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, @@ -108,7 +160,7 @@ class ObjectModelWithRefProps(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._object_model_with_ref_props_oapg( @@ -124,6 +176,32 @@ class ObjectModelWithRefProps(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, @@ -133,7 +211,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._object_model_with_ref_props_oapg( diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_string/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_string/post.py index 6e990df9cda..06f83753a46 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_string/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_string/post.py @@ -66,6 +66,32 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _string_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, str, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _string_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, str, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def _string_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, str, schemas.Unset] = schemas.unset, @@ -75,7 +101,7 @@ def _string_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -128,6 +154,32 @@ class instances class String(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def string( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, str, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def string( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, str, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def string( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, str, schemas.Unset] = schemas.unset, @@ -137,7 +189,7 @@ def string( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._string_oapg( @@ -153,6 +205,32 @@ def string( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, str, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, str, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, str, schemas.Unset] = schemas.unset, @@ -162,7 +240,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._string_oapg( diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_string/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_string/post.pyi index 422e8d0829e..66567eb608d 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_string/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_string/post.pyi @@ -35,6 +35,32 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _string_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, str, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _string_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, str, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def _string_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, str, schemas.Unset] = schemas.unset, @@ -44,7 +70,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -97,6 +123,32 @@ class BaseApi(api_client.Api): class String(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def string( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, str, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def string( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, str, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def string( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, str, schemas.Unset] = schemas.unset, @@ -106,7 +158,7 @@ class String(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._string_oapg( @@ -122,6 +174,32 @@ class String(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, str, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, str, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, str, schemas.Unset] = schemas.unset, @@ -131,7 +209,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._string_oapg( diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_response_without_schema/get.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_response_without_schema/get.py index cfa2be9bece..1cf297a5f82 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_response_without_schema/get.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_response_without_schema/get.py @@ -57,6 +57,28 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _response_without_schema_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _response_without_schema_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def _response_without_schema_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -64,7 +86,7 @@ def _response_without_schema_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -107,6 +129,28 @@ class instances class ResponseWithoutSchema(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def response_without_schema( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def response_without_schema( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def response_without_schema( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -114,7 +158,7 @@ def response_without_schema( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._response_without_schema_oapg( @@ -128,6 +172,28 @@ def response_without_schema( class ApiForget(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def get( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def get( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def get( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -135,7 +201,7 @@ def get( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._response_without_schema_oapg( diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_response_without_schema/get.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_response_without_schema/get.pyi index 827291c6f8a..8b302b4b503 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_response_without_schema/get.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_response_without_schema/get.pyi @@ -33,6 +33,28 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _response_without_schema_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _response_without_schema_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def _response_without_schema_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -40,7 +62,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -83,6 +105,28 @@ class BaseApi(api_client.Api): class ResponseWithoutSchema(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def response_without_schema( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def response_without_schema( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def response_without_schema( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -90,7 +134,7 @@ class ResponseWithoutSchema(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._response_without_schema_oapg( @@ -104,6 +148,28 @@ class ResponseWithoutSchema(BaseApi): class ApiForget(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def get( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def get( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def get( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -111,7 +177,7 @@ class ApiForget(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._response_without_schema_oapg( diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_test_query_paramters/put.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_test_query_paramters/put.py index af5cb28dd15..d7235857f02 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_test_query_paramters/put.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_test_query_paramters/put.py @@ -226,6 +226,28 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _query_parameter_collection_format_oapg( + self: api_client.Api, + query_params: RequestQueryParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _query_parameter_collection_format_oapg( + self: api_client.Api, + query_params: RequestQueryParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def _query_parameter_collection_format_oapg( self: api_client.Api, query_params: RequestQueryParams = frozendict.frozendict(), @@ -233,7 +255,7 @@ def _query_parameter_collection_format_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -288,6 +310,28 @@ class instances class QueryParameterCollectionFormat(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def query_parameter_collection_format( + self: api_client.Api, + query_params: RequestQueryParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def query_parameter_collection_format( + self: api_client.Api, + query_params: RequestQueryParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def query_parameter_collection_format( self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), @@ -295,7 +339,7 @@ def query_parameter_collection_format( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._query_parameter_collection_format_oapg( @@ -309,6 +353,28 @@ def query_parameter_collection_format( class ApiForput(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def put( + self: api_client.Api, + query_params: RequestQueryParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def put( + self: api_client.Api, + query_params: RequestQueryParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def put( self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), @@ -316,7 +382,7 @@ def put( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._query_parameter_collection_format_oapg( diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_test_query_paramters/put.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_test_query_paramters/put.pyi index 9b7dee9311d..d349cf75f13 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_test_query_paramters/put.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_test_query_paramters/put.pyi @@ -147,6 +147,28 @@ RefParamSchema = StringWithValidation class BaseApi(api_client.Api): + @typing.overload + def _query_parameter_collection_format_oapg( + self: api_client.Api, + query_params: RequestQueryParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _query_parameter_collection_format_oapg( + self: api_client.Api, + query_params: RequestQueryParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def _query_parameter_collection_format_oapg( self: api_client.Api, query_params: RequestQueryParams = frozendict.frozendict(), @@ -154,7 +176,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -209,6 +231,28 @@ class BaseApi(api_client.Api): class QueryParameterCollectionFormat(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def query_parameter_collection_format( + self: api_client.Api, + query_params: RequestQueryParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def query_parameter_collection_format( + self: api_client.Api, + query_params: RequestQueryParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def query_parameter_collection_format( self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), @@ -216,7 +260,7 @@ class QueryParameterCollectionFormat(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._query_parameter_collection_format_oapg( @@ -230,6 +274,28 @@ class QueryParameterCollectionFormat(BaseApi): class ApiForput(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def put( + self: api_client.Api, + query_params: RequestQueryParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def put( + self: api_client.Api, + query_params: RequestQueryParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def put( self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), @@ -237,7 +303,7 @@ class ApiForput(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._query_parameter_collection_format_oapg( diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_download_file/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_download_file/post.py index c705235d88b..0b25ffa042d 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_download_file/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_download_file/post.py @@ -67,6 +67,32 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _upload_download_file_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationOctetStream, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/octet-stream', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _upload_download_file_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationOctetStream, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/octet-stream', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def _upload_download_file_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationOctetStream, bytes, io.FileIO, io.BufferedReader, ], @@ -76,7 +102,7 @@ def _upload_download_file_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -132,6 +158,32 @@ class instances class UploadDownloadFile(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def upload_download_file( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationOctetStream, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/octet-stream', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def upload_download_file( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationOctetStream, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/octet-stream', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def upload_download_file( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationOctetStream, bytes, io.FileIO, io.BufferedReader, ], @@ -141,7 +193,7 @@ def upload_download_file( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._upload_download_file_oapg( @@ -157,6 +209,32 @@ def upload_download_file( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationOctetStream, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/octet-stream', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationOctetStream, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/octet-stream', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationOctetStream, bytes, io.FileIO, io.BufferedReader, ], @@ -166,7 +244,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._upload_download_file_oapg( diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_download_file/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_download_file/post.pyi index f7825657cdc..ed58c54108f 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_download_file/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_download_file/post.pyi @@ -35,6 +35,32 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _upload_download_file_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationOctetStream, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/octet-stream', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _upload_download_file_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationOctetStream, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/octet-stream', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def _upload_download_file_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationOctetStream, bytes, io.FileIO, io.BufferedReader, ], @@ -44,7 +70,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -100,6 +126,32 @@ class BaseApi(api_client.Api): class UploadDownloadFile(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def upload_download_file( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationOctetStream, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/octet-stream', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def upload_download_file( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationOctetStream, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/octet-stream', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def upload_download_file( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationOctetStream, bytes, io.FileIO, io.BufferedReader, ], @@ -109,7 +161,7 @@ class UploadDownloadFile(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._upload_download_file_oapg( @@ -125,6 +177,32 @@ class UploadDownloadFile(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationOctetStream, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/octet-stream', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationOctetStream, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/octet-stream', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationOctetStream, bytes, io.FileIO, io.BufferedReader, ], @@ -134,7 +212,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._upload_download_file_oapg( diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_file/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_file/post.py index 90d7d406ebf..a0819bd6b32 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_file/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_file/post.py @@ -132,6 +132,32 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _upload_file_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + content_type: str = 'multipart/form-data', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _upload_file_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + content_type: str = 'multipart/form-data', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def _upload_file_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, @@ -141,7 +167,7 @@ def _upload_file_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -195,6 +221,32 @@ class instances class UploadFile(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def upload_file( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + content_type: str = 'multipart/form-data', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def upload_file( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + content_type: str = 'multipart/form-data', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def upload_file( self: BaseApi, body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, @@ -204,7 +256,7 @@ def upload_file( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._upload_file_oapg( @@ -220,6 +272,32 @@ def upload_file( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + content_type: str = 'multipart/form-data', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + content_type: str = 'multipart/form-data', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, @@ -229,7 +307,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._upload_file_oapg( diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_file/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_file/post.pyi index 515aa163476..a0ac489e74b 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_file/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_file/post.pyi @@ -101,6 +101,32 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _upload_file_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + content_type: str = 'multipart/form-data', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _upload_file_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + content_type: str = 'multipart/form-data', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def _upload_file_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, @@ -110,7 +136,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -164,6 +190,32 @@ class BaseApi(api_client.Api): class UploadFile(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def upload_file( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + content_type: str = 'multipart/form-data', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def upload_file( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + content_type: str = 'multipart/form-data', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def upload_file( self: BaseApi, body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, @@ -173,7 +225,7 @@ class UploadFile(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._upload_file_oapg( @@ -189,6 +241,32 @@ class UploadFile(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + content_type: str = 'multipart/form-data', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + content_type: str = 'multipart/form-data', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, @@ -198,7 +276,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._upload_file_oapg( diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_files/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_files/post.py index 561b9840e86..183d7f9e676 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_files/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_files/post.py @@ -139,6 +139,32 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _upload_files_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + content_type: str = 'multipart/form-data', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _upload_files_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + content_type: str = 'multipart/form-data', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def _upload_files_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, @@ -148,7 +174,7 @@ def _upload_files_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -202,6 +228,32 @@ class instances class UploadFiles(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def upload_files( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + content_type: str = 'multipart/form-data', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def upload_files( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + content_type: str = 'multipart/form-data', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def upload_files( self: BaseApi, body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, @@ -211,7 +263,7 @@ def upload_files( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._upload_files_oapg( @@ -227,6 +279,32 @@ def upload_files( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + content_type: str = 'multipart/form-data', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + content_type: str = 'multipart/form-data', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, @@ -236,7 +314,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._upload_files_oapg( diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_files/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_files/post.pyi index 800be99613d..d0ff3cd5e16 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_files/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_files/post.pyi @@ -108,6 +108,32 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _upload_files_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + content_type: str = 'multipart/form-data', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _upload_files_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + content_type: str = 'multipart/form-data', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def _upload_files_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, @@ -117,7 +143,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -171,6 +197,32 @@ class BaseApi(api_client.Api): class UploadFiles(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def upload_files( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + content_type: str = 'multipart/form-data', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def upload_files( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + content_type: str = 'multipart/form-data', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def upload_files( self: BaseApi, body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, @@ -180,7 +232,7 @@ class UploadFiles(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._upload_files_oapg( @@ -196,6 +248,32 @@ class UploadFiles(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + content_type: str = 'multipart/form-data', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + content_type: str = 'multipart/form-data', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, @@ -205,7 +283,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._upload_files_oapg( diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/foo/get.py b/samples/openapi3/client/petstore/python/petstore_api/paths/foo/get.py index a396adbc027..f77ffbba8c2 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/foo/get.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/foo/get.py @@ -110,6 +110,28 @@ class ApiResponseForDefault(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _foo_get_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + ApiResponseForDefault, + ]: + ... + + @typing.overload + def _foo_get_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def _foo_get_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -163,6 +185,28 @@ class instances class FooGet(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def foo_get( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + ApiResponseForDefault, + ]: + ... + + @typing.overload + def foo_get( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def foo_get( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -184,6 +228,28 @@ def foo_get( class ApiForget(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def get( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + ApiResponseForDefault, + ]: + ... + + @typing.overload + def get( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def get( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/foo/get.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/foo/get.pyi index 4f7e0cd0856..2072f8dcbfd 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/foo/get.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/foo/get.pyi @@ -87,6 +87,28 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _foo_get_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + ApiResponseForDefault, + ]: + ... + + @typing.overload + def _foo_get_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def _foo_get_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -140,6 +162,28 @@ class BaseApi(api_client.Api): class FooGet(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def foo_get( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + ApiResponseForDefault, + ]: + ... + + @typing.overload + def foo_get( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def foo_get( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -161,6 +205,28 @@ class FooGet(BaseApi): class ApiForget(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def get( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + ApiResponseForDefault, + ]: + ... + + @typing.overload + def get( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def get( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/pet/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/pet/post.py index d944d243b5b..2c597c9e884 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/pet/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/pet/post.py @@ -89,6 +89,33 @@ class ApiResponseFor405(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _add_pet_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], + content_type: str = 'application/json', + host_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _add_pet_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], + content_type: str = 'application/json', + host_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def _add_pet_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], @@ -98,7 +125,8 @@ def _add_pet_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -155,6 +183,33 @@ class instances class AddPet(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def add_pet( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], + content_type: str = 'application/json', + host_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + ]: + ... + + @typing.overload + def add_pet( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], + content_type: str = 'application/json', + host_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def add_pet( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], @@ -164,7 +219,8 @@ def add_pet( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._add_pet_oapg( @@ -180,6 +236,33 @@ def add_pet( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], + content_type: str = 'application/json', + host_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], + content_type: str = 'application/json', + host_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], @@ -189,7 +272,8 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._add_pet_oapg( diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/pet/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/pet/post.pyi index efd25a14172..57d213cb917 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/pet/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/pet/post.pyi @@ -34,6 +34,33 @@ SchemaForRequestBodyApplicationXml = Pet class BaseApi(api_client.Api): + @typing.overload + def _add_pet_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], + content_type: str = 'application/json', + host_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _add_pet_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], + content_type: str = 'application/json', + host_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def _add_pet_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], @@ -43,7 +70,8 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -100,6 +128,33 @@ class BaseApi(api_client.Api): class AddPet(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def add_pet( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], + content_type: str = 'application/json', + host_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + ]: + ... + + @typing.overload + def add_pet( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], + content_type: str = 'application/json', + host_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def add_pet( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], @@ -109,7 +164,8 @@ class AddPet(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._add_pet_oapg( @@ -125,6 +181,33 @@ class AddPet(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], + content_type: str = 'application/json', + host_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], + content_type: str = 'application/json', + host_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], @@ -134,7 +217,8 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._add_pet_oapg( diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/pet/put.py b/samples/openapi3/client/petstore/python/petstore_api/paths/pet/put.py index 8658e89bdc1..032e00f5052 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/pet/put.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/pet/put.py @@ -102,6 +102,34 @@ class ApiResponseFor405(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _update_pet_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], + content_type: str = 'application/json', + host_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _update_pet_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], + content_type: str = 'application/json', + host_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def _update_pet_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], @@ -111,6 +139,9 @@ def _update_pet_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -167,6 +198,34 @@ class instances class UpdatePet(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def update_pet( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], + content_type: str = 'application/json', + host_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponse, + ]: + ... + + @typing.overload + def update_pet( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], + content_type: str = 'application/json', + host_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def update_pet( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], @@ -176,6 +235,9 @@ def update_pet( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._update_pet_oapg( @@ -191,6 +253,34 @@ def update_pet( class ApiForput(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def put( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], + content_type: str = 'application/json', + host_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponse, + ]: + ... + + @typing.overload + def put( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], + content_type: str = 'application/json', + host_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def put( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], @@ -200,6 +290,9 @@ def put( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._update_pet_oapg( diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/pet/put.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/pet/put.pyi index eea41d2ad06..9373c7ace08 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/pet/put.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/pet/put.pyi @@ -34,6 +34,34 @@ SchemaForRequestBodyApplicationXml = Pet class BaseApi(api_client.Api): + @typing.overload + def _update_pet_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], + content_type: str = 'application/json', + host_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _update_pet_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], + content_type: str = 'application/json', + host_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def _update_pet_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], @@ -43,6 +71,9 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -99,6 +130,34 @@ class BaseApi(api_client.Api): class UpdatePet(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def update_pet( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], + content_type: str = 'application/json', + host_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponse, + ]: + ... + + @typing.overload + def update_pet( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], + content_type: str = 'application/json', + host_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def update_pet( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], @@ -108,6 +167,9 @@ class UpdatePet(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._update_pet_oapg( @@ -123,6 +185,34 @@ class UpdatePet(BaseApi): class ApiForput(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def put( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], + content_type: str = 'application/json', + host_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponse, + ]: + ... + + @typing.overload + def put( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], + content_type: str = 'application/json', + host_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def put( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], @@ -132,6 +222,9 @@ class ApiForput(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._update_pet_oapg( diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_find_by_status/get.py b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_find_by_status/get.py index b8b945f54fa..faa2636ad66 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_find_by_status/get.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_find_by_status/get.py @@ -203,6 +203,31 @@ class ApiResponseFor400(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _find_pets_by_status_oapg( + self: api_client.Api, + query_params: RequestQueryParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _find_pets_by_status_oapg( + self: api_client.Api, + query_params: RequestQueryParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def _find_pets_by_status_oapg( self: api_client.Api, query_params: RequestQueryParams = frozendict.frozendict(), @@ -211,7 +236,8 @@ def _find_pets_by_status_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -269,6 +295,31 @@ class instances class FindPetsByStatus(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def find_pets_by_status( + self: api_client.Api, + query_params: RequestQueryParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + ]: + ... + + @typing.overload + def find_pets_by_status( + self: api_client.Api, + query_params: RequestQueryParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def find_pets_by_status( self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), @@ -277,7 +328,8 @@ def find_pets_by_status( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._find_pets_by_status_oapg( @@ -292,6 +344,31 @@ def find_pets_by_status( class ApiForget(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def get( + self: api_client.Api, + query_params: RequestQueryParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + ]: + ... + + @typing.overload + def get( + self: api_client.Api, + query_params: RequestQueryParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def get( self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), @@ -300,7 +377,8 @@ def get( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._find_pets_by_status_oapg( diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_find_by_status/get.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_find_by_status/get.pyi index c626e911a77..46e44dee13b 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_find_by_status/get.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_find_by_status/get.pyi @@ -128,6 +128,31 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _find_pets_by_status_oapg( + self: api_client.Api, + query_params: RequestQueryParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _find_pets_by_status_oapg( + self: api_client.Api, + query_params: RequestQueryParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def _find_pets_by_status_oapg( self: api_client.Api, query_params: RequestQueryParams = frozendict.frozendict(), @@ -136,7 +161,8 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -194,6 +220,31 @@ class BaseApi(api_client.Api): class FindPetsByStatus(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def find_pets_by_status( + self: api_client.Api, + query_params: RequestQueryParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + ]: + ... + + @typing.overload + def find_pets_by_status( + self: api_client.Api, + query_params: RequestQueryParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def find_pets_by_status( self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), @@ -202,7 +253,8 @@ class FindPetsByStatus(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._find_pets_by_status_oapg( @@ -217,6 +269,31 @@ class FindPetsByStatus(BaseApi): class ApiForget(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def get( + self: api_client.Api, + query_params: RequestQueryParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + ]: + ... + + @typing.overload + def get( + self: api_client.Api, + query_params: RequestQueryParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def get( self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), @@ -225,7 +302,8 @@ class ApiForget(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._find_pets_by_status_oapg( diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_find_by_tags/get.py b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_find_by_tags/get.py index 03b395a6da4..3d67d112ff4 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_find_by_tags/get.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_find_by_tags/get.py @@ -178,6 +178,31 @@ class ApiResponseFor400(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _find_pets_by_tags_oapg( + self: api_client.Api, + query_params: RequestQueryParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _find_pets_by_tags_oapg( + self: api_client.Api, + query_params: RequestQueryParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def _find_pets_by_tags_oapg( self: api_client.Api, query_params: RequestQueryParams = frozendict.frozendict(), @@ -186,7 +211,8 @@ def _find_pets_by_tags_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -244,6 +270,31 @@ class instances class FindPetsByTags(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def find_pets_by_tags( + self: api_client.Api, + query_params: RequestQueryParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + ]: + ... + + @typing.overload + def find_pets_by_tags( + self: api_client.Api, + query_params: RequestQueryParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def find_pets_by_tags( self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), @@ -252,7 +303,8 @@ def find_pets_by_tags( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._find_pets_by_tags_oapg( @@ -267,6 +319,31 @@ def find_pets_by_tags( class ApiForget(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def get( + self: api_client.Api, + query_params: RequestQueryParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + ]: + ... + + @typing.overload + def get( + self: api_client.Api, + query_params: RequestQueryParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def get( self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), @@ -275,7 +352,8 @@ def get( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._find_pets_by_tags_oapg( diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_find_by_tags/get.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_find_by_tags/get.pyi index a4e2c33e5e7..da9603f55dd 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_find_by_tags/get.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_find_by_tags/get.pyi @@ -111,6 +111,31 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _find_pets_by_tags_oapg( + self: api_client.Api, + query_params: RequestQueryParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _find_pets_by_tags_oapg( + self: api_client.Api, + query_params: RequestQueryParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def _find_pets_by_tags_oapg( self: api_client.Api, query_params: RequestQueryParams = frozendict.frozendict(), @@ -119,7 +144,8 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -177,6 +203,31 @@ class BaseApi(api_client.Api): class FindPetsByTags(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def find_pets_by_tags( + self: api_client.Api, + query_params: RequestQueryParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + ]: + ... + + @typing.overload + def find_pets_by_tags( + self: api_client.Api, + query_params: RequestQueryParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def find_pets_by_tags( self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), @@ -185,7 +236,8 @@ class FindPetsByTags(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._find_pets_by_tags_oapg( @@ -200,6 +252,31 @@ class FindPetsByTags(BaseApi): class ApiForget(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def get( + self: api_client.Api, + query_params: RequestQueryParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + ]: + ... + + @typing.overload + def get( + self: api_client.Api, + query_params: RequestQueryParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def get( self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), @@ -208,7 +285,8 @@ class ApiForget(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._find_pets_by_tags_oapg( diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/delete.py b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/delete.py index 83c429bdea4..f0626e5573d 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/delete.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/delete.py @@ -100,6 +100,30 @@ class ApiResponseFor400(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _delete_pet_oapg( + self: api_client.Api, + header_params: RequestHeaderParams = frozendict.frozendict(), + path_params: RequestPathParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _delete_pet_oapg( + self: api_client.Api, + header_params: RequestHeaderParams = frozendict.frozendict(), + path_params: RequestPathParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def _delete_pet_oapg( self: api_client.Api, header_params: RequestHeaderParams = frozendict.frozendict(), @@ -108,6 +132,7 @@ def _delete_pet_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -171,6 +196,30 @@ class instances class DeletePet(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def delete_pet( + self: api_client.Api, + header_params: RequestHeaderParams = frozendict.frozendict(), + path_params: RequestPathParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def delete_pet( + self: api_client.Api, + header_params: RequestHeaderParams = frozendict.frozendict(), + path_params: RequestPathParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def delete_pet( self: BaseApi, header_params: RequestHeaderParams = frozendict.frozendict(), @@ -179,6 +228,7 @@ def delete_pet( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._delete_pet_oapg( @@ -193,6 +243,30 @@ def delete_pet( class ApiFordelete(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def delete( + self: api_client.Api, + header_params: RequestHeaderParams = frozendict.frozendict(), + path_params: RequestPathParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def delete( + self: api_client.Api, + header_params: RequestHeaderParams = frozendict.frozendict(), + path_params: RequestPathParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def delete( self: BaseApi, header_params: RequestHeaderParams = frozendict.frozendict(), @@ -201,6 +275,7 @@ def delete( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._delete_pet_oapg( diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/delete.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/delete.pyi index 821fe2bd79f..3fe418de98a 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/delete.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/delete.pyi @@ -33,6 +33,30 @@ PetIdSchema = schemas.Int64Schema class BaseApi(api_client.Api): + @typing.overload + def _delete_pet_oapg( + self: api_client.Api, + header_params: RequestHeaderParams = frozendict.frozendict(), + path_params: RequestPathParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _delete_pet_oapg( + self: api_client.Api, + header_params: RequestHeaderParams = frozendict.frozendict(), + path_params: RequestPathParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def _delete_pet_oapg( self: api_client.Api, header_params: RequestHeaderParams = frozendict.frozendict(), @@ -41,6 +65,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -104,6 +129,30 @@ class BaseApi(api_client.Api): class DeletePet(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def delete_pet( + self: api_client.Api, + header_params: RequestHeaderParams = frozendict.frozendict(), + path_params: RequestPathParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def delete_pet( + self: api_client.Api, + header_params: RequestHeaderParams = frozendict.frozendict(), + path_params: RequestPathParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def delete_pet( self: BaseApi, header_params: RequestHeaderParams = frozendict.frozendict(), @@ -112,6 +161,7 @@ class DeletePet(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._delete_pet_oapg( @@ -126,6 +176,30 @@ class DeletePet(BaseApi): class ApiFordelete(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def delete( + self: api_client.Api, + header_params: RequestHeaderParams = frozendict.frozendict(), + path_params: RequestPathParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def delete( + self: api_client.Api, + header_params: RequestHeaderParams = frozendict.frozendict(), + path_params: RequestPathParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def delete( self: BaseApi, header_params: RequestHeaderParams = frozendict.frozendict(), @@ -134,6 +208,7 @@ class ApiFordelete(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._delete_pet_oapg( diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/get.py b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/get.py index 2309680029b..2969af09248 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/get.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/get.py @@ -118,6 +118,32 @@ class ApiResponseFor404(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _get_pet_by_id_oapg( + self: api_client.Api, + path_params: RequestPathParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _get_pet_by_id_oapg( + self: api_client.Api, + path_params: RequestPathParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def _get_pet_by_id_oapg( self: api_client.Api, path_params: RequestPathParams = frozendict.frozendict(), @@ -126,7 +152,9 @@ def _get_pet_by_id_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -184,6 +212,32 @@ class instances class GetPetById(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def get_pet_by_id( + self: api_client.Api, + path_params: RequestPathParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponse, + ]: + ... + + @typing.overload + def get_pet_by_id( + self: api_client.Api, + path_params: RequestPathParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def get_pet_by_id( self: BaseApi, path_params: RequestPathParams = frozendict.frozendict(), @@ -192,7 +246,9 @@ def get_pet_by_id( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._get_pet_by_id_oapg( @@ -207,6 +263,32 @@ def get_pet_by_id( class ApiForget(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def get( + self: api_client.Api, + path_params: RequestPathParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponse, + ]: + ... + + @typing.overload + def get( + self: api_client.Api, + path_params: RequestPathParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def get( self: BaseApi, path_params: RequestPathParams = frozendict.frozendict(), @@ -215,7 +297,9 @@ def get( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._get_pet_by_id_oapg( diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/get.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/get.pyi index 184adb607d2..54bc466c4af 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/get.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/get.pyi @@ -39,6 +39,32 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _get_pet_by_id_oapg( + self: api_client.Api, + path_params: RequestPathParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _get_pet_by_id_oapg( + self: api_client.Api, + path_params: RequestPathParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def _get_pet_by_id_oapg( self: api_client.Api, path_params: RequestPathParams = frozendict.frozendict(), @@ -47,7 +73,9 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -105,6 +133,32 @@ class BaseApi(api_client.Api): class GetPetById(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def get_pet_by_id( + self: api_client.Api, + path_params: RequestPathParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponse, + ]: + ... + + @typing.overload + def get_pet_by_id( + self: api_client.Api, + path_params: RequestPathParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def get_pet_by_id( self: BaseApi, path_params: RequestPathParams = frozendict.frozendict(), @@ -113,7 +167,9 @@ class GetPetById(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._get_pet_by_id_oapg( @@ -128,6 +184,32 @@ class GetPetById(BaseApi): class ApiForget(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def get( + self: api_client.Api, + path_params: RequestPathParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponse, + ]: + ... + + @typing.overload + def get( + self: api_client.Api, + path_params: RequestPathParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def get( self: BaseApi, path_params: RequestPathParams = frozendict.frozendict(), @@ -136,7 +218,9 @@ class ApiForget(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._get_pet_by_id_oapg( diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/post.py index 76250ba9b3e..ec0908a340b 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/post.py @@ -144,6 +144,32 @@ class ApiResponseFor405(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _update_pet_with_form_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + path_params: RequestPathParams = frozendict.frozendict(), + content_type: str = 'application/x-www-form-urlencoded', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _update_pet_with_form_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + path_params: RequestPathParams = frozendict.frozendict(), + content_type: str = 'application/x-www-form-urlencoded', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def _update_pet_with_form_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, @@ -153,6 +179,7 @@ def _update_pet_with_form_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -218,6 +245,32 @@ class instances class UpdatePetWithForm(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def update_pet_with_form( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + path_params: RequestPathParams = frozendict.frozendict(), + content_type: str = 'application/x-www-form-urlencoded', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def update_pet_with_form( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + path_params: RequestPathParams = frozendict.frozendict(), + content_type: str = 'application/x-www-form-urlencoded', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def update_pet_with_form( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, @@ -227,6 +280,7 @@ def update_pet_with_form( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._update_pet_with_form_oapg( @@ -242,6 +296,32 @@ def update_pet_with_form( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + path_params: RequestPathParams = frozendict.frozendict(), + content_type: str = 'application/x-www-form-urlencoded', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + path_params: RequestPathParams = frozendict.frozendict(), + content_type: str = 'application/x-www-form-urlencoded', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, @@ -251,6 +331,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._update_pet_with_form_oapg( diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/post.pyi index 4a1eee42e7f..096fe9433df 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/post.pyi @@ -92,6 +92,32 @@ class SchemaForRequestBodyApplicationXWwwFormUrlencoded( class BaseApi(api_client.Api): + @typing.overload + def _update_pet_with_form_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + path_params: RequestPathParams = frozendict.frozendict(), + content_type: str = 'application/x-www-form-urlencoded', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _update_pet_with_form_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + path_params: RequestPathParams = frozendict.frozendict(), + content_type: str = 'application/x-www-form-urlencoded', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def _update_pet_with_form_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, @@ -101,6 +127,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -166,6 +193,32 @@ class BaseApi(api_client.Api): class UpdatePetWithForm(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def update_pet_with_form( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + path_params: RequestPathParams = frozendict.frozendict(), + content_type: str = 'application/x-www-form-urlencoded', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def update_pet_with_form( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + path_params: RequestPathParams = frozendict.frozendict(), + content_type: str = 'application/x-www-form-urlencoded', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def update_pet_with_form( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, @@ -175,6 +228,7 @@ class UpdatePetWithForm(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._update_pet_with_form_oapg( @@ -190,6 +244,32 @@ class UpdatePetWithForm(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + path_params: RequestPathParams = frozendict.frozendict(), + content_type: str = 'application/x-www-form-urlencoded', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + path_params: RequestPathParams = frozendict.frozendict(), + content_type: str = 'application/x-www-form-urlencoded', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, @@ -199,6 +279,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._update_pet_with_form_oapg( diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id_upload_image/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id_upload_image/post.py index 432d5586069..ca1876ccd95 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id_upload_image/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id_upload_image/post.py @@ -156,6 +156,34 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _upload_image_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + path_params: RequestPathParams = frozendict.frozendict(), + content_type: str = 'multipart/form-data', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _upload_image_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + path_params: RequestPathParams = frozendict.frozendict(), + content_type: str = 'multipart/form-data', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def _upload_image_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, @@ -166,7 +194,7 @@ def _upload_image_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -235,6 +263,34 @@ class instances class UploadImage(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def upload_image( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + path_params: RequestPathParams = frozendict.frozendict(), + content_type: str = 'multipart/form-data', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def upload_image( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + path_params: RequestPathParams = frozendict.frozendict(), + content_type: str = 'multipart/form-data', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def upload_image( self: BaseApi, body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, @@ -245,7 +301,7 @@ def upload_image( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._upload_image_oapg( @@ -262,6 +318,34 @@ def upload_image( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + path_params: RequestPathParams = frozendict.frozendict(), + content_type: str = 'multipart/form-data', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + path_params: RequestPathParams = frozendict.frozendict(), + content_type: str = 'multipart/form-data', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, @@ -272,7 +356,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._upload_image_oapg( diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id_upload_image/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id_upload_image/post.pyi index 08b46e10d87..527e63c9404 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id_upload_image/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id_upload_image/post.pyi @@ -98,6 +98,34 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _upload_image_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + path_params: RequestPathParams = frozendict.frozendict(), + content_type: str = 'multipart/form-data', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _upload_image_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + path_params: RequestPathParams = frozendict.frozendict(), + content_type: str = 'multipart/form-data', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def _upload_image_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, @@ -108,7 +136,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -177,6 +205,34 @@ class BaseApi(api_client.Api): class UploadImage(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def upload_image( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + path_params: RequestPathParams = frozendict.frozendict(), + content_type: str = 'multipart/form-data', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def upload_image( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + path_params: RequestPathParams = frozendict.frozendict(), + content_type: str = 'multipart/form-data', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def upload_image( self: BaseApi, body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, @@ -187,7 +243,7 @@ class UploadImage(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._upload_image_oapg( @@ -204,6 +260,34 @@ class UploadImage(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + path_params: RequestPathParams = frozendict.frozendict(), + content_type: str = 'multipart/form-data', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + path_params: RequestPathParams = frozendict.frozendict(), + content_type: str = 'multipart/form-data', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, @@ -214,7 +298,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._upload_image_oapg( diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/store_inventory/get.py b/samples/openapi3/client/petstore/python/petstore_api/paths/store_inventory/get.py index 794c49c9f26..985f035eeb7 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/store_inventory/get.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/store_inventory/get.py @@ -87,6 +87,28 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _get_inventory_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _get_inventory_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def _get_inventory_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -94,7 +116,7 @@ def _get_inventory_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -138,6 +160,28 @@ class instances class GetInventory(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def get_inventory( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def get_inventory( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def get_inventory( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -145,7 +189,7 @@ def get_inventory( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._get_inventory_oapg( @@ -159,6 +203,28 @@ def get_inventory( class ApiForget(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def get( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def get( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def get( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -166,7 +232,7 @@ def get( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._get_inventory_oapg( diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/store_inventory/get.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/store_inventory/get.pyi index 6ace8ae4e50..c75408e4baa 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/store_inventory/get.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/store_inventory/get.pyi @@ -61,6 +61,28 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _get_inventory_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _get_inventory_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def _get_inventory_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -68,7 +90,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -112,6 +134,28 @@ class BaseApi(api_client.Api): class GetInventory(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def get_inventory( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def get_inventory( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def get_inventory( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -119,7 +163,7 @@ class GetInventory(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._get_inventory_oapg( @@ -133,6 +177,28 @@ class GetInventory(BaseApi): class ApiForget(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def get( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def get( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def get( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -140,7 +206,7 @@ class ApiForget(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._get_inventory_oapg( diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/store_order/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/store_order/post.py index aba51cba12a..7b887b70979 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/store_order/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/store_order/post.py @@ -87,6 +87,33 @@ class ApiResponseFor400(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _place_order_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _place_order_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def _place_order_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -96,7 +123,8 @@ def _place_order_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -152,6 +180,33 @@ class instances class PlaceOrder(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def place_order( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + ]: + ... + + @typing.overload + def place_order( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def place_order( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -161,7 +216,8 @@ def place_order( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._place_order_oapg( @@ -177,6 +233,33 @@ def place_order( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -186,7 +269,8 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._place_order_oapg( diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/store_order/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/store_order/post.pyi index 5a0d7684aa1..285f046662a 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/store_order/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/store_order/post.pyi @@ -39,6 +39,33 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _place_order_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _place_order_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def _place_order_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -48,7 +75,8 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -104,6 +132,33 @@ class BaseApi(api_client.Api): class PlaceOrder(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def place_order( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + ]: + ... + + @typing.overload + def place_order( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def place_order( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -113,7 +168,8 @@ class PlaceOrder(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._place_order_oapg( @@ -129,6 +185,33 @@ class PlaceOrder(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -138,7 +221,8 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._place_order_oapg( diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/store_order_order_id/delete.py b/samples/openapi3/client/petstore/python/petstore_api/paths/store_order_order_id/delete.py index 05b16de6cb9..4944470d09c 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/store_order_order_id/delete.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/store_order_order_id/delete.py @@ -84,6 +84,29 @@ class ApiResponseFor404(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _delete_order_oapg( + self: api_client.Api, + path_params: RequestPathParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _delete_order_oapg( + self: api_client.Api, + path_params: RequestPathParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def _delete_order_oapg( self: api_client.Api, path_params: RequestPathParams = frozendict.frozendict(), @@ -91,6 +114,8 @@ def _delete_order_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -141,6 +166,29 @@ class instances class DeleteOrder(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def delete_order( + self: api_client.Api, + path_params: RequestPathParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + ]: + ... + + @typing.overload + def delete_order( + self: api_client.Api, + path_params: RequestPathParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def delete_order( self: BaseApi, path_params: RequestPathParams = frozendict.frozendict(), @@ -148,6 +196,8 @@ def delete_order( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._delete_order_oapg( @@ -161,6 +211,29 @@ def delete_order( class ApiFordelete(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def delete( + self: api_client.Api, + path_params: RequestPathParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + ]: + ... + + @typing.overload + def delete( + self: api_client.Api, + path_params: RequestPathParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def delete( self: BaseApi, path_params: RequestPathParams = frozendict.frozendict(), @@ -168,6 +241,8 @@ def delete( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._delete_order_oapg( diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/store_order_order_id/delete.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/store_order_order_id/delete.pyi index e4350d629ea..0cdc67de6c1 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/store_order_order_id/delete.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/store_order_order_id/delete.pyi @@ -30,6 +30,29 @@ OrderIdSchema = schemas.StrSchema class BaseApi(api_client.Api): + @typing.overload + def _delete_order_oapg( + self: api_client.Api, + path_params: RequestPathParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _delete_order_oapg( + self: api_client.Api, + path_params: RequestPathParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def _delete_order_oapg( self: api_client.Api, path_params: RequestPathParams = frozendict.frozendict(), @@ -37,6 +60,8 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -87,6 +112,29 @@ class BaseApi(api_client.Api): class DeleteOrder(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def delete_order( + self: api_client.Api, + path_params: RequestPathParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + ]: + ... + + @typing.overload + def delete_order( + self: api_client.Api, + path_params: RequestPathParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def delete_order( self: BaseApi, path_params: RequestPathParams = frozendict.frozendict(), @@ -94,6 +142,8 @@ class DeleteOrder(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._delete_order_oapg( @@ -107,6 +157,29 @@ class DeleteOrder(BaseApi): class ApiFordelete(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def delete( + self: api_client.Api, + path_params: RequestPathParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + ]: + ... + + @typing.overload + def delete( + self: api_client.Api, + path_params: RequestPathParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def delete( self: BaseApi, path_params: RequestPathParams = frozendict.frozendict(), @@ -114,6 +187,8 @@ class ApiFordelete(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._delete_order_oapg( diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/store_order_order_id/get.py b/samples/openapi3/client/petstore/python/petstore_api/paths/store_order_order_id/get.py index cae807ed63c..af765169139 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/store_order_order_id/get.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/store_order_order_id/get.py @@ -125,6 +125,32 @@ class ApiResponseFor404(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _get_order_by_id_oapg( + self: api_client.Api, + path_params: RequestPathParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _get_order_by_id_oapg( + self: api_client.Api, + path_params: RequestPathParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def _get_order_by_id_oapg( self: api_client.Api, path_params: RequestPathParams = frozendict.frozendict(), @@ -133,7 +159,9 @@ def _get_order_by_id_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -190,6 +218,32 @@ class instances class GetOrderById(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def get_order_by_id( + self: api_client.Api, + path_params: RequestPathParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponse, + ]: + ... + + @typing.overload + def get_order_by_id( + self: api_client.Api, + path_params: RequestPathParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def get_order_by_id( self: BaseApi, path_params: RequestPathParams = frozendict.frozendict(), @@ -198,7 +252,9 @@ def get_order_by_id( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._get_order_by_id_oapg( @@ -213,6 +269,32 @@ def get_order_by_id( class ApiForget(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def get( + self: api_client.Api, + path_params: RequestPathParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponse, + ]: + ... + + @typing.overload + def get( + self: api_client.Api, + path_params: RequestPathParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def get( self: BaseApi, path_params: RequestPathParams = frozendict.frozendict(), @@ -221,7 +303,9 @@ def get( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._get_order_by_id_oapg( diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/store_order_order_id/get.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/store_order_order_id/get.pyi index cf9aca7145c..be4e47489d4 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/store_order_order_id/get.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/store_order_order_id/get.pyi @@ -44,6 +44,32 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _get_order_by_id_oapg( + self: api_client.Api, + path_params: RequestPathParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _get_order_by_id_oapg( + self: api_client.Api, + path_params: RequestPathParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def _get_order_by_id_oapg( self: api_client.Api, path_params: RequestPathParams = frozendict.frozendict(), @@ -52,7 +78,9 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -109,6 +137,32 @@ class BaseApi(api_client.Api): class GetOrderById(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def get_order_by_id( + self: api_client.Api, + path_params: RequestPathParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponse, + ]: + ... + + @typing.overload + def get_order_by_id( + self: api_client.Api, + path_params: RequestPathParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def get_order_by_id( self: BaseApi, path_params: RequestPathParams = frozendict.frozendict(), @@ -117,7 +171,9 @@ class GetOrderById(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._get_order_by_id_oapg( @@ -132,6 +188,32 @@ class GetOrderById(BaseApi): class ApiForget(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def get( + self: api_client.Api, + path_params: RequestPathParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponse, + ]: + ... + + @typing.overload + def get( + self: api_client.Api, + path_params: RequestPathParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def get( self: BaseApi, path_params: RequestPathParams = frozendict.frozendict(), @@ -140,7 +222,9 @@ class ApiForget(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._get_order_by_id_oapg( diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/user/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/user/post.py index 4dd2c94c164..44ef27c3cff 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/user/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/user/post.py @@ -59,6 +59,30 @@ class ApiResponseForDefault(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _create_user_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + ApiResponseForDefault, + ]: + ... + + @typing.overload + def _create_user_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def _create_user_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -124,6 +148,30 @@ class instances class CreateUser(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def create_user( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + ApiResponseForDefault, + ]: + ... + + @typing.overload + def create_user( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def create_user( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -147,6 +195,30 @@ def create_user( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + ApiResponseForDefault, + ]: + ... + + @typing.overload + def post( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/user/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/user/post.pyi index 171956cf707..9160ec01d30 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/user/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/user/post.pyi @@ -33,6 +33,30 @@ SchemaForRequestBodyApplicationJson = User class BaseApi(api_client.Api): + @typing.overload + def _create_user_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + ApiResponseForDefault, + ]: + ... + + @typing.overload + def _create_user_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def _create_user_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -98,6 +122,30 @@ class BaseApi(api_client.Api): class CreateUser(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def create_user( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + ApiResponseForDefault, + ]: + ... + + @typing.overload + def create_user( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def create_user( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -121,6 +169,30 @@ class CreateUser(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + ApiResponseForDefault, + ]: + ... + + @typing.overload + def post( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/user_create_with_array/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/user_create_with_array/post.py index 35e44ef1d46..ba082b5b9e3 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/user_create_with_array/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/user_create_with_array/post.py @@ -84,6 +84,30 @@ class ApiResponseForDefault(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _create_users_with_array_input_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + ApiResponseForDefault, + ]: + ... + + @typing.overload + def _create_users_with_array_input_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def _create_users_with_array_input_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], @@ -149,6 +173,30 @@ class instances class CreateUsersWithArrayInput(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def create_users_with_array_input( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + ApiResponseForDefault, + ]: + ... + + @typing.overload + def create_users_with_array_input( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def create_users_with_array_input( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], @@ -172,6 +220,30 @@ def create_users_with_array_input( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + ApiResponseForDefault, + ]: + ... + + @typing.overload + def post( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/user_create_with_array/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/user_create_with_array/post.pyi index 19037fd1b36..cd7d3ac9948 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/user_create_with_array/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/user_create_with_array/post.pyi @@ -58,6 +58,30 @@ class SchemaForRequestBodyApplicationJson( class BaseApi(api_client.Api): + @typing.overload + def _create_users_with_array_input_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + ApiResponseForDefault, + ]: + ... + + @typing.overload + def _create_users_with_array_input_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def _create_users_with_array_input_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], @@ -123,6 +147,30 @@ class BaseApi(api_client.Api): class CreateUsersWithArrayInput(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def create_users_with_array_input( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + ApiResponseForDefault, + ]: + ... + + @typing.overload + def create_users_with_array_input( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def create_users_with_array_input( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], @@ -146,6 +194,30 @@ class CreateUsersWithArrayInput(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + ApiResponseForDefault, + ]: + ... + + @typing.overload + def post( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/user_create_with_list/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/user_create_with_list/post.py index 491da3305b0..576f1c023db 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/user_create_with_list/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/user_create_with_list/post.py @@ -84,6 +84,30 @@ class ApiResponseForDefault(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _create_users_with_list_input_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + ApiResponseForDefault, + ]: + ... + + @typing.overload + def _create_users_with_list_input_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def _create_users_with_list_input_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], @@ -149,6 +173,30 @@ class instances class CreateUsersWithListInput(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def create_users_with_list_input( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + ApiResponseForDefault, + ]: + ... + + @typing.overload + def create_users_with_list_input( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def create_users_with_list_input( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], @@ -172,6 +220,30 @@ def create_users_with_list_input( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + ApiResponseForDefault, + ]: + ... + + @typing.overload + def post( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/user_create_with_list/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/user_create_with_list/post.pyi index 2f2321d8504..b27116eda1d 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/user_create_with_list/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/user_create_with_list/post.pyi @@ -58,6 +58,30 @@ class SchemaForRequestBodyApplicationJson( class BaseApi(api_client.Api): + @typing.overload + def _create_users_with_list_input_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + ApiResponseForDefault, + ]: + ... + + @typing.overload + def _create_users_with_list_input_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def _create_users_with_list_input_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], @@ -123,6 +147,30 @@ class BaseApi(api_client.Api): class CreateUsersWithListInput(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def create_users_with_list_input( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + ApiResponseForDefault, + ]: + ... + + @typing.overload + def create_users_with_list_input( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def create_users_with_list_input( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], @@ -146,6 +194,30 @@ class CreateUsersWithListInput(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + ApiResponseForDefault, + ]: + ... + + @typing.overload + def post( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/user_login/get.py b/samples/openapi3/client/petstore/python/petstore_api/paths/user_login/get.py index 0e913fbb36a..2264f7fa0b1 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/user_login/get.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/user_login/get.py @@ -133,6 +133,31 @@ class ApiResponseFor400(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _login_user_oapg( + self: api_client.Api, + query_params: RequestQueryParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _login_user_oapg( + self: api_client.Api, + query_params: RequestQueryParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def _login_user_oapg( self: api_client.Api, query_params: RequestQueryParams = frozendict.frozendict(), @@ -141,7 +166,8 @@ def _login_user_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -199,6 +225,31 @@ class instances class LoginUser(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def login_user( + self: api_client.Api, + query_params: RequestQueryParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + ]: + ... + + @typing.overload + def login_user( + self: api_client.Api, + query_params: RequestQueryParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def login_user( self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), @@ -207,7 +258,8 @@ def login_user( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._login_user_oapg( @@ -222,6 +274,31 @@ def login_user( class ApiForget(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def get( + self: api_client.Api, + query_params: RequestQueryParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + ]: + ... + + @typing.overload + def get( + self: api_client.Api, + query_params: RequestQueryParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def get( self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), @@ -230,7 +307,8 @@ def get( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._login_user_oapg( diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/user_login/get.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/user_login/get.pyi index fb90bd6d3ae..0ac2ce80dbb 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/user_login/get.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/user_login/get.pyi @@ -40,6 +40,31 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _login_user_oapg( + self: api_client.Api, + query_params: RequestQueryParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _login_user_oapg( + self: api_client.Api, + query_params: RequestQueryParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def _login_user_oapg( self: api_client.Api, query_params: RequestQueryParams = frozendict.frozendict(), @@ -48,7 +73,8 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -106,6 +132,31 @@ class BaseApi(api_client.Api): class LoginUser(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def login_user( + self: api_client.Api, + query_params: RequestQueryParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + ]: + ... + + @typing.overload + def login_user( + self: api_client.Api, + query_params: RequestQueryParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def login_user( self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), @@ -114,7 +165,8 @@ class LoginUser(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._login_user_oapg( @@ -129,6 +181,31 @@ class LoginUser(BaseApi): class ApiForget(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def get( + self: api_client.Api, + query_params: RequestQueryParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + ]: + ... + + @typing.overload + def get( + self: api_client.Api, + query_params: RequestQueryParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def get( self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), @@ -137,7 +214,8 @@ class ApiForget(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._login_user_oapg( diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/user_logout/get.py b/samples/openapi3/client/petstore/python/petstore_api/paths/user_logout/get.py index e9b8bf377ea..55b1326c11c 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/user_logout/get.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/user_logout/get.py @@ -45,6 +45,26 @@ class ApiResponseForDefault(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _logout_user_oapg( + self: api_client.Api, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + ApiResponseForDefault, + ]: + ... + + @typing.overload + def _logout_user_oapg( + self: api_client.Api, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def _logout_user_oapg( self: api_client.Api, stream: bool = False, @@ -92,6 +112,26 @@ class instances class LogoutUser(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def logout_user( + self: api_client.Api, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + ApiResponseForDefault, + ]: + ... + + @typing.overload + def logout_user( + self: api_client.Api, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def logout_user( self: BaseApi, stream: bool = False, @@ -111,6 +151,26 @@ def logout_user( class ApiForget(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def get( + self: api_client.Api, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + ApiResponseForDefault, + ]: + ... + + @typing.overload + def get( + self: api_client.Api, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def get( self: BaseApi, stream: bool = False, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/user_logout/get.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/user_logout/get.pyi index ba8f80388d7..9da5f14510d 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/user_logout/get.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/user_logout/get.pyi @@ -28,6 +28,26 @@ from petstore_api import schemas # noqa: F401 class BaseApi(api_client.Api): + @typing.overload + def _logout_user_oapg( + self: api_client.Api, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + ApiResponseForDefault, + ]: + ... + + @typing.overload + def _logout_user_oapg( + self: api_client.Api, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def _logout_user_oapg( self: api_client.Api, stream: bool = False, @@ -75,6 +95,26 @@ class BaseApi(api_client.Api): class LogoutUser(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def logout_user( + self: api_client.Api, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + ApiResponseForDefault, + ]: + ... + + @typing.overload + def logout_user( + self: api_client.Api, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def logout_user( self: BaseApi, stream: bool = False, @@ -94,6 +134,26 @@ class LogoutUser(BaseApi): class ApiForget(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def get( + self: api_client.Api, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + ApiResponseForDefault, + ]: + ... + + @typing.overload + def get( + self: api_client.Api, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def get( self: BaseApi, stream: bool = False, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/delete.py b/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/delete.py index c78b157c12a..93ff904ee34 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/delete.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/delete.py @@ -84,6 +84,29 @@ class ApiResponseFor404(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _delete_user_oapg( + self: api_client.Api, + path_params: RequestPathParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _delete_user_oapg( + self: api_client.Api, + path_params: RequestPathParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def _delete_user_oapg( self: api_client.Api, path_params: RequestPathParams = frozendict.frozendict(), @@ -91,6 +114,8 @@ def _delete_user_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -141,6 +166,29 @@ class instances class DeleteUser(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def delete_user( + self: api_client.Api, + path_params: RequestPathParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + ]: + ... + + @typing.overload + def delete_user( + self: api_client.Api, + path_params: RequestPathParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def delete_user( self: BaseApi, path_params: RequestPathParams = frozendict.frozendict(), @@ -148,6 +196,8 @@ def delete_user( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._delete_user_oapg( @@ -161,6 +211,29 @@ def delete_user( class ApiFordelete(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def delete( + self: api_client.Api, + path_params: RequestPathParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + ]: + ... + + @typing.overload + def delete( + self: api_client.Api, + path_params: RequestPathParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def delete( self: BaseApi, path_params: RequestPathParams = frozendict.frozendict(), @@ -168,6 +241,8 @@ def delete( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._delete_user_oapg( diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/delete.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/delete.pyi index 77a7de83384..89a2d30cc18 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/delete.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/delete.pyi @@ -30,6 +30,29 @@ UsernameSchema = schemas.StrSchema class BaseApi(api_client.Api): + @typing.overload + def _delete_user_oapg( + self: api_client.Api, + path_params: RequestPathParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _delete_user_oapg( + self: api_client.Api, + path_params: RequestPathParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def _delete_user_oapg( self: api_client.Api, path_params: RequestPathParams = frozendict.frozendict(), @@ -37,6 +60,8 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -87,6 +112,29 @@ class BaseApi(api_client.Api): class DeleteUser(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def delete_user( + self: api_client.Api, + path_params: RequestPathParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + ]: + ... + + @typing.overload + def delete_user( + self: api_client.Api, + path_params: RequestPathParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def delete_user( self: BaseApi, path_params: RequestPathParams = frozendict.frozendict(), @@ -94,6 +142,8 @@ class DeleteUser(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._delete_user_oapg( @@ -107,6 +157,29 @@ class DeleteUser(BaseApi): class ApiFordelete(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def delete( + self: api_client.Api, + path_params: RequestPathParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + ]: + ... + + @typing.overload + def delete( + self: api_client.Api, + path_params: RequestPathParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def delete( self: BaseApi, path_params: RequestPathParams = frozendict.frozendict(), @@ -114,6 +187,8 @@ class ApiFordelete(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._delete_user_oapg( diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/get.py b/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/get.py index ffb005b23ee..a65ce998dbc 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/get.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/get.py @@ -115,6 +115,32 @@ class ApiResponseFor404(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _get_user_by_name_oapg( + self: api_client.Api, + path_params: RequestPathParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _get_user_by_name_oapg( + self: api_client.Api, + path_params: RequestPathParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def _get_user_by_name_oapg( self: api_client.Api, path_params: RequestPathParams = frozendict.frozendict(), @@ -123,7 +149,9 @@ def _get_user_by_name_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -180,6 +208,32 @@ class instances class GetUserByName(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def get_user_by_name( + self: api_client.Api, + path_params: RequestPathParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponse, + ]: + ... + + @typing.overload + def get_user_by_name( + self: api_client.Api, + path_params: RequestPathParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def get_user_by_name( self: BaseApi, path_params: RequestPathParams = frozendict.frozendict(), @@ -188,7 +242,9 @@ def get_user_by_name( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._get_user_by_name_oapg( @@ -203,6 +259,32 @@ def get_user_by_name( class ApiForget(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def get( + self: api_client.Api, + path_params: RequestPathParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponse, + ]: + ... + + @typing.overload + def get( + self: api_client.Api, + path_params: RequestPathParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def get( self: BaseApi, path_params: RequestPathParams = frozendict.frozendict(), @@ -211,7 +293,9 @@ def get( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._get_user_by_name_oapg( diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/get.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/get.pyi index 8096176552b..45cb1787fb3 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/get.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/get.pyi @@ -39,6 +39,32 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _get_user_by_name_oapg( + self: api_client.Api, + path_params: RequestPathParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _get_user_by_name_oapg( + self: api_client.Api, + path_params: RequestPathParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def _get_user_by_name_oapg( self: api_client.Api, path_params: RequestPathParams = frozendict.frozendict(), @@ -47,7 +73,9 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -104,6 +132,32 @@ class BaseApi(api_client.Api): class GetUserByName(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def get_user_by_name( + self: api_client.Api, + path_params: RequestPathParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponse, + ]: + ... + + @typing.overload + def get_user_by_name( + self: api_client.Api, + path_params: RequestPathParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def get_user_by_name( self: BaseApi, path_params: RequestPathParams = frozendict.frozendict(), @@ -112,7 +166,9 @@ class GetUserByName(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._get_user_by_name_oapg( @@ -127,6 +183,32 @@ class GetUserByName(BaseApi): class ApiForget(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def get( + self: api_client.Api, + path_params: RequestPathParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponse, + ]: + ... + + @typing.overload + def get( + self: api_client.Api, + path_params: RequestPathParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def get( self: BaseApi, path_params: RequestPathParams = frozendict.frozendict(), @@ -135,7 +217,9 @@ class ApiForget(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._get_user_by_name_oapg( diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/put.py b/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/put.py index b9060cb6e7a..effef4dd97e 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/put.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/put.py @@ -98,6 +98,33 @@ class ApiResponseFor404(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _update_user_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + path_params: RequestPathParams = frozendict.frozendict(), + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _update_user_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + path_params: RequestPathParams = frozendict.frozendict(), + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def _update_user_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -107,6 +134,8 @@ def _update_user_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -173,6 +202,33 @@ class instances class UpdateUser(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def update_user( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + path_params: RequestPathParams = frozendict.frozendict(), + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + ]: + ... + + @typing.overload + def update_user( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + path_params: RequestPathParams = frozendict.frozendict(), + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def update_user( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -182,6 +238,8 @@ def update_user( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._update_user_oapg( @@ -197,6 +255,33 @@ def update_user( class ApiForput(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def put( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + path_params: RequestPathParams = frozendict.frozendict(), + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + ]: + ... + + @typing.overload + def put( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + path_params: RequestPathParams = frozendict.frozendict(), + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def put( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -206,6 +291,8 @@ def put( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._update_user_oapg( diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/put.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/put.pyi index fd208aa8050..c07c302153b 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/put.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/put.pyi @@ -35,6 +35,33 @@ SchemaForRequestBodyApplicationJson = User class BaseApi(api_client.Api): + @typing.overload + def _update_user_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + path_params: RequestPathParams = frozendict.frozendict(), + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _update_user_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + path_params: RequestPathParams = frozendict.frozendict(), + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def _update_user_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -44,6 +71,8 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -110,6 +139,33 @@ class BaseApi(api_client.Api): class UpdateUser(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def update_user( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + path_params: RequestPathParams = frozendict.frozendict(), + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + ]: + ... + + @typing.overload + def update_user( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + path_params: RequestPathParams = frozendict.frozendict(), + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def update_user( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -119,6 +175,8 @@ class UpdateUser(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._update_user_oapg( @@ -134,6 +192,33 @@ class UpdateUser(BaseApi): class ApiForput(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def put( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + path_params: RequestPathParams = frozendict.frozendict(), + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + ]: + ... + + @typing.overload + def put( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + path_params: RequestPathParams = frozendict.frozendict(), + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + def put( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -143,6 +228,8 @@ class ApiForput(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._update_user_oapg( From 2f59770602836556ad1bf0ba67aa6df4b4f029c4 Mon Sep 17 00:00:00 2001 From: Elton Chou Date: Sat, 1 Oct 2022 15:12:02 +0800 Subject: [PATCH 02/11] Add fallback overload and Fix api_client type --- .../resources/python/api_client.handlebars | 6 +- .../main/resources/python/endpoint.handlebars | 23 +++++-- .../python/petstore_api/api_client.py | 6 +- .../paths/another_fake_dummy/patch.py | 53 +++++++++++++-- .../paths/another_fake_dummy/patch.pyi | 53 +++++++++++++-- .../python/petstore_api/paths/fake/delete.py | 50 ++++++++++++-- .../python/petstore_api/paths/fake/delete.pyi | 50 ++++++++++++-- .../python/petstore_api/paths/fake/get.py | 59 +++++++++++++++-- .../python/petstore_api/paths/fake/get.pyi | 59 +++++++++++++++-- .../python/petstore_api/paths/fake/patch.py | 53 +++++++++++++-- .../python/petstore_api/paths/fake/patch.pyi | 53 +++++++++++++-- .../python/petstore_api/paths/fake/post.py | 53 +++++++++++++-- .../python/petstore_api/paths/fake/post.pyi | 53 +++++++++++++-- .../get.py | 53 +++++++++++++-- .../get.pyi | 53 +++++++++++++-- .../paths/fake_body_with_file_schema/put.py | 50 ++++++++++++-- .../paths/fake_body_with_file_schema/put.pyi | 50 ++++++++++++-- .../paths/fake_body_with_query_params/put.py | 53 +++++++++++++-- .../paths/fake_body_with_query_params/put.pyi | 53 +++++++++++++-- .../paths/fake_case_sensitive_params/put.py | 47 ++++++++++++-- .../paths/fake_case_sensitive_params/put.pyi | 47 ++++++++++++-- .../paths/fake_classname_test/patch.py | 53 +++++++++++++-- .../paths/fake_classname_test/patch.pyi | 53 +++++++++++++-- .../paths/fake_delete_coffee_id/delete.py | 50 ++++++++++++-- .../paths/fake_delete_coffee_id/delete.pyi | 50 ++++++++++++-- .../petstore_api/paths/fake_health/get.py | 47 ++++++++++++-- .../petstore_api/paths/fake_health/get.pyi | 47 ++++++++++++-- .../fake_inline_additional_properties/post.py | 50 ++++++++++++-- .../post.pyi | 50 ++++++++++++-- .../paths/fake_inline_composition_/post.py | 56 ++++++++++++++-- .../paths/fake_inline_composition_/post.pyi | 56 ++++++++++++++-- .../paths/fake_json_form_data/get.py | 50 ++++++++++++-- .../paths/fake_json_form_data/get.pyi | 50 ++++++++++++-- .../paths/fake_json_patch/patch.py | 50 ++++++++++++-- .../paths/fake_json_patch/patch.pyi | 50 ++++++++++++-- .../paths/fake_json_with_charset/post.py | 53 +++++++++++++-- .../paths/fake_json_with_charset/post.pyi | 53 +++++++++++++-- .../paths/fake_obj_in_query/get.py | 47 ++++++++++++-- .../paths/fake_obj_in_query/get.pyi | 47 ++++++++++++-- .../post.py | 65 +++++++++++++++++-- .../post.pyi | 65 +++++++++++++++++-- .../post.py | 56 ++++++++++++++-- .../post.pyi | 56 ++++++++++++++-- .../paths/fake_ref_obj_in_query/get.py | 47 ++++++++++++-- .../paths/fake_ref_obj_in_query/get.pyi | 47 ++++++++++++-- .../paths/fake_refs_array_of_enums/post.py | 53 +++++++++++++-- .../paths/fake_refs_array_of_enums/post.pyi | 53 +++++++++++++-- .../paths/fake_refs_arraymodel/post.py | 53 +++++++++++++-- .../paths/fake_refs_arraymodel/post.pyi | 53 +++++++++++++-- .../paths/fake_refs_boolean/post.py | 53 +++++++++++++-- .../paths/fake_refs_boolean/post.pyi | 53 +++++++++++++-- .../post.py | 53 +++++++++++++-- .../post.pyi | 53 +++++++++++++-- .../petstore_api/paths/fake_refs_enum/post.py | 53 +++++++++++++-- .../paths/fake_refs_enum/post.pyi | 53 +++++++++++++-- .../paths/fake_refs_mammal/post.py | 53 +++++++++++++-- .../paths/fake_refs_mammal/post.pyi | 53 +++++++++++++-- .../paths/fake_refs_number/post.py | 53 +++++++++++++-- .../paths/fake_refs_number/post.pyi | 53 +++++++++++++-- .../post.py | 53 +++++++++++++-- .../post.pyi | 53 +++++++++++++-- .../paths/fake_refs_string/post.py | 53 +++++++++++++-- .../paths/fake_refs_string/post.pyi | 53 +++++++++++++-- .../paths/fake_response_without_schema/get.py | 47 ++++++++++++-- .../fake_response_without_schema/get.pyi | 47 ++++++++++++-- .../paths/fake_test_query_paramters/put.py | 47 ++++++++++++-- .../paths/fake_test_query_paramters/put.pyi | 47 ++++++++++++-- .../paths/fake_upload_download_file/post.py | 53 +++++++++++++-- .../paths/fake_upload_download_file/post.pyi | 53 +++++++++++++-- .../paths/fake_upload_file/post.py | 53 +++++++++++++-- .../paths/fake_upload_file/post.pyi | 53 +++++++++++++-- .../paths/fake_upload_files/post.py | 53 +++++++++++++-- .../paths/fake_upload_files/post.pyi | 53 +++++++++++++-- .../python/petstore_api/paths/foo/get.py | 47 ++++++++++++-- .../python/petstore_api/paths/foo/get.pyi | 47 ++++++++++++-- .../python/petstore_api/paths/pet/post.py | 56 ++++++++++++++-- .../python/petstore_api/paths/pet/post.pyi | 56 ++++++++++++++-- .../python/petstore_api/paths/pet/put.py | 59 +++++++++++++++-- .../python/petstore_api/paths/pet/put.pyi | 59 +++++++++++++++-- .../paths/pet_find_by_status/get.py | 53 +++++++++++++-- .../paths/pet_find_by_status/get.pyi | 53 +++++++++++++-- .../paths/pet_find_by_tags/get.py | 53 +++++++++++++-- .../paths/pet_find_by_tags/get.pyi | 53 +++++++++++++-- .../petstore_api/paths/pet_pet_id/delete.py | 50 ++++++++++++-- .../petstore_api/paths/pet_pet_id/delete.pyi | 50 ++++++++++++-- .../petstore_api/paths/pet_pet_id/get.py | 56 ++++++++++++++-- .../petstore_api/paths/pet_pet_id/get.pyi | 56 ++++++++++++++-- .../petstore_api/paths/pet_pet_id/post.py | 53 +++++++++++++-- .../petstore_api/paths/pet_pet_id/post.pyi | 53 +++++++++++++-- .../paths/pet_pet_id_upload_image/post.py | 56 ++++++++++++++-- .../paths/pet_pet_id_upload_image/post.pyi | 56 ++++++++++++++-- .../petstore_api/paths/store_inventory/get.py | 47 ++++++++++++-- .../paths/store_inventory/get.pyi | 47 ++++++++++++-- .../petstore_api/paths/store_order/post.py | 56 ++++++++++++++-- .../petstore_api/paths/store_order/post.pyi | 56 ++++++++++++++-- .../paths/store_order_order_id/delete.py | 50 ++++++++++++-- .../paths/store_order_order_id/delete.pyi | 50 ++++++++++++-- .../paths/store_order_order_id/get.py | 56 ++++++++++++++-- .../paths/store_order_order_id/get.pyi | 56 ++++++++++++++-- .../python/petstore_api/paths/user/post.py | 50 ++++++++++++-- .../python/petstore_api/paths/user/post.pyi | 50 ++++++++++++-- .../paths/user_create_with_array/post.py | 50 ++++++++++++-- .../paths/user_create_with_array/post.pyi | 50 ++++++++++++-- .../paths/user_create_with_list/post.py | 50 ++++++++++++-- .../paths/user_create_with_list/post.pyi | 50 ++++++++++++-- .../petstore_api/paths/user_login/get.py | 53 +++++++++++++-- .../petstore_api/paths/user_login/get.pyi | 53 +++++++++++++-- .../petstore_api/paths/user_logout/get.py | 44 +++++++++++-- .../petstore_api/paths/user_logout/get.pyi | 44 +++++++++++-- .../paths/user_username/delete.py | 50 ++++++++++++-- .../paths/user_username/delete.pyi | 50 ++++++++++++-- .../petstore_api/paths/user_username/get.py | 56 ++++++++++++++-- .../petstore_api/paths/user_username/get.pyi | 56 ++++++++++++++-- .../petstore_api/paths/user_username/put.py | 56 ++++++++++++++-- .../petstore_api/paths/user_username/put.pyi | 56 ++++++++++++++-- 115 files changed, 5431 insertions(+), 456 deletions(-) diff --git a/modules/openapi-json-schema-generator/src/main/resources/python/api_client.handlebars b/modules/openapi-json-schema-generator/src/main/resources/python/api_client.handlebars index d67e7e3d575..37fb4cae99d 100644 --- a/modules/openapi-json-schema-generator/src/main/resources/python/api_client.handlebars +++ b/modules/openapi-json-schema-generator/src/main/resources/python/api_client.handlebars @@ -812,13 +812,15 @@ class JSONDetector: return True return False +Response_T = typing.TypeVar("Response_T", bound=ApiResponse) class OpenApiResponse(JSONDetector): __filename_content_disposition_pattern = re.compile('filename="(.+?)"') + response_cls: typing.Type[Response_T] def __init__( self, - response_cls: typing.Type[ApiResponse] = ApiResponse, + response_cls: typing.Type[Response_T] = ApiResponse, content: typing.Optional[typing.Dict[str, MediaType]] = None, headers: typing.Optional[typing.List[HeaderParameter]] = None, ): @@ -903,7 +905,7 @@ class OpenApiResponse(JSONDetector): for part in msg.get_payload() } - def deserialize(self, response: urllib3.HTTPResponse, configuration: Configuration) -> ApiResponse: + def deserialize(self, response: urllib3.HTTPResponse, configuration: Configuration) -> Response_T: content_type = response.getheader('content-type') deserialized_body = unset streamed = response.supports_chunked_reads() diff --git a/modules/openapi-json-schema-generator/src/main/resources/python/endpoint.handlebars b/modules/openapi-json-schema-generator/src/main/resources/python/endpoint.handlebars index 0717bfe923a..6593cf17300 100644 --- a/modules/openapi-json-schema-generator/src/main/resources/python/endpoint.handlebars +++ b/modules/openapi-json-schema-generator/src/main/resources/python/endpoint.handlebars @@ -394,6 +394,11 @@ class BaseApi(api_client.Api): def _{{operationId}}_oapg( {{> endpoint_args_overload selfType="api_client.Api" isSkip=true}} + @typing.overload + def _{{operationId}}_oapg( + {{> endpoint_args selfType="api_client.Api" }} + ... + def _{{operationId}}_oapg( {{> endpoint_args selfType="api_client.Api" }} """ @@ -543,11 +548,16 @@ class {{operationIdCamelCase}}(BaseApi): @typing.overload def {{operationId}}( - {{> endpoint_args_overload selfType="api_client.Api" isSkip=false}} + {{> endpoint_args_overload selfType="BaseApi" isSkip=false}} @typing.overload def {{operationId}}( - {{> endpoint_args_overload selfType="api_client.Api" isSkip=true}} + {{> endpoint_args_overload selfType="BaseApi" isSkip=true}} + + @typing.overload + def {{operationId}}( + {{> endpoint_args selfType="BaseApi" }} + ... def {{operationId}}( {{> endpoint_args selfType="BaseApi" }} @@ -561,11 +571,16 @@ class ApiFor{{httpMethod}}(BaseApi): @typing.overload def {{httpMethod}}( - {{> endpoint_args_overload selfType="api_client.Api" isSkip=false}} + {{> endpoint_args_overload selfType="BaseApi" isSkip=false}} @typing.overload def {{httpMethod}}( - {{> endpoint_args_overload selfType="api_client.Api" isSkip=true}} + {{> endpoint_args_overload selfType="BaseApi" isSkip=true}} + + @typing.overload + def {{httpMethod}}( + {{> endpoint_args selfType="BaseApi" }} + ... def {{httpMethod}}( {{> endpoint_args selfType="BaseApi" }} diff --git a/samples/openapi3/client/petstore/python/petstore_api/api_client.py b/samples/openapi3/client/petstore/python/petstore_api/api_client.py index b5d32822d19..879977f4374 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/api_client.py +++ b/samples/openapi3/client/petstore/python/petstore_api/api_client.py @@ -816,13 +816,15 @@ def _content_type_is_json(cls, content_type: str) -> bool: return True return False +Response_T = typing.TypeVar("Response_T", bound=ApiResponse) class OpenApiResponse(JSONDetector): __filename_content_disposition_pattern = re.compile('filename="(.+?)"') + response_cls: typing.Type[Response_T] def __init__( self, - response_cls: typing.Type[ApiResponse] = ApiResponse, + response_cls: typing.Type[Response_T] = ApiResponse, content: typing.Optional[typing.Dict[str, MediaType]] = None, headers: typing.Optional[typing.List[HeaderParameter]] = None, ): @@ -907,7 +909,7 @@ def __deserialize_multipart_form_data( for part in msg.get_payload() } - def deserialize(self, response: urllib3.HTTPResponse, configuration: Configuration) -> ApiResponse: + def deserialize(self, response: urllib3.HTTPResponse, configuration: Configuration) -> Response_T: content_type = response.getheader('content-type') deserialized_body = unset streamed = response.supports_chunked_reads() diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/another_fake_dummy/patch.py b/samples/openapi3/client/petstore/python/petstore_api/paths/another_fake_dummy/patch.py index 77495de6b88..e1daffaa88a 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/another_fake_dummy/patch.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/another_fake_dummy/patch.py @@ -95,6 +95,21 @@ def _call_123_test_special_tags_oapg( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def _call_123_test_special_tags_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _call_123_test_special_tags_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -162,7 +177,7 @@ class Call123TestSpecialTags(BaseApi): @typing.overload def call_123_test_special_tags( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -176,7 +191,7 @@ def call_123_test_special_tags( @typing.overload def call_123_test_special_tags( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -186,6 +201,21 @@ def call_123_test_special_tags( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def call_123_test_special_tags( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def call_123_test_special_tags( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -213,7 +243,7 @@ class ApiForpatch(BaseApi): @typing.overload def patch( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -227,7 +257,7 @@ def patch( @typing.overload def patch( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -237,6 +267,21 @@ def patch( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def patch( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def patch( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/another_fake_dummy/patch.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/another_fake_dummy/patch.pyi index 1182b2259a9..a5aab6ad106 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/another_fake_dummy/patch.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/another_fake_dummy/patch.pyi @@ -63,6 +63,21 @@ class BaseApi(api_client.Api): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def _call_123_test_special_tags_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _call_123_test_special_tags_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -130,7 +145,7 @@ class Call123TestSpecialTags(BaseApi): @typing.overload def call_123_test_special_tags( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -144,7 +159,7 @@ class Call123TestSpecialTags(BaseApi): @typing.overload def call_123_test_special_tags( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -154,6 +169,21 @@ class Call123TestSpecialTags(BaseApi): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def call_123_test_special_tags( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def call_123_test_special_tags( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -181,7 +211,7 @@ class ApiForpatch(BaseApi): @typing.overload def patch( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -195,7 +225,7 @@ class ApiForpatch(BaseApi): @typing.overload def patch( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -205,6 +235,21 @@ class ApiForpatch(BaseApi): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def patch( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def patch( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake/delete.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake/delete.py index aa191072c60..235de87fe2e 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake/delete.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake/delete.py @@ -158,6 +158,20 @@ def _group_parameters_oapg( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def _group_parameters_oapg( + self: api_client.Api, + query_params: RequestQueryParams = frozendict.frozendict(), + header_params: RequestHeaderParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _group_parameters_oapg( self: api_client.Api, query_params: RequestQueryParams = frozendict.frozendict(), @@ -236,7 +250,7 @@ class GroupParameters(BaseApi): @typing.overload def group_parameters( - self: api_client.Api, + self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), header_params: RequestHeaderParams = frozendict.frozendict(), stream: bool = False, @@ -249,7 +263,7 @@ def group_parameters( @typing.overload def group_parameters( - self: api_client.Api, + self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), header_params: RequestHeaderParams = frozendict.frozendict(), stream: bool = False, @@ -258,6 +272,20 @@ def group_parameters( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def group_parameters( + self: BaseApi, + query_params: RequestQueryParams = frozendict.frozendict(), + header_params: RequestHeaderParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def group_parameters( self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), @@ -283,7 +311,7 @@ class ApiFordelete(BaseApi): @typing.overload def delete( - self: api_client.Api, + self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), header_params: RequestHeaderParams = frozendict.frozendict(), stream: bool = False, @@ -296,7 +324,7 @@ def delete( @typing.overload def delete( - self: api_client.Api, + self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), header_params: RequestHeaderParams = frozendict.frozendict(), stream: bool = False, @@ -305,6 +333,20 @@ def delete( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def delete( + self: BaseApi, + query_params: RequestQueryParams = frozendict.frozendict(), + header_params: RequestHeaderParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def delete( self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake/delete.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake/delete.pyi index 83dda1c4368..62d8d935395 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake/delete.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake/delete.pyi @@ -61,6 +61,20 @@ class BaseApi(api_client.Api): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def _group_parameters_oapg( + self: api_client.Api, + query_params: RequestQueryParams = frozendict.frozendict(), + header_params: RequestHeaderParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _group_parameters_oapg( self: api_client.Api, query_params: RequestQueryParams = frozendict.frozendict(), @@ -139,7 +153,7 @@ class GroupParameters(BaseApi): @typing.overload def group_parameters( - self: api_client.Api, + self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), header_params: RequestHeaderParams = frozendict.frozendict(), stream: bool = False, @@ -152,7 +166,7 @@ class GroupParameters(BaseApi): @typing.overload def group_parameters( - self: api_client.Api, + self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), header_params: RequestHeaderParams = frozendict.frozendict(), stream: bool = False, @@ -161,6 +175,20 @@ class GroupParameters(BaseApi): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def group_parameters( + self: BaseApi, + query_params: RequestQueryParams = frozendict.frozendict(), + header_params: RequestHeaderParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def group_parameters( self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), @@ -186,7 +214,7 @@ class ApiFordelete(BaseApi): @typing.overload def delete( - self: api_client.Api, + self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), header_params: RequestHeaderParams = frozendict.frozendict(), stream: bool = False, @@ -199,7 +227,7 @@ class ApiFordelete(BaseApi): @typing.overload def delete( - self: api_client.Api, + self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), header_params: RequestHeaderParams = frozendict.frozendict(), stream: bool = False, @@ -208,6 +236,20 @@ class ApiFordelete(BaseApi): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def delete( + self: BaseApi, + query_params: RequestQueryParams = frozendict.frozendict(), + header_params: RequestHeaderParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def delete( self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake/get.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake/get.py index 5add34bf9a1..76841f49ad4 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake/get.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake/get.py @@ -482,6 +482,23 @@ def _enum_parameters_oapg( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def _enum_parameters_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + query_params: RequestQueryParams = frozendict.frozendict(), + header_params: RequestHeaderParams = frozendict.frozendict(), + content_type: str = 'application/x-www-form-urlencoded', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _enum_parameters_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, @@ -573,7 +590,7 @@ class EnumParameters(BaseApi): @typing.overload def enum_parameters( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, query_params: RequestQueryParams = frozendict.frozendict(), header_params: RequestHeaderParams = frozendict.frozendict(), @@ -589,7 +606,7 @@ def enum_parameters( @typing.overload def enum_parameters( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, query_params: RequestQueryParams = frozendict.frozendict(), header_params: RequestHeaderParams = frozendict.frozendict(), @@ -600,6 +617,23 @@ def enum_parameters( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def enum_parameters( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + query_params: RequestQueryParams = frozendict.frozendict(), + header_params: RequestHeaderParams = frozendict.frozendict(), + content_type: str = 'application/x-www-form-urlencoded', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def enum_parameters( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, @@ -630,7 +664,7 @@ class ApiForget(BaseApi): @typing.overload def get( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, query_params: RequestQueryParams = frozendict.frozendict(), header_params: RequestHeaderParams = frozendict.frozendict(), @@ -646,7 +680,7 @@ def get( @typing.overload def get( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, query_params: RequestQueryParams = frozendict.frozendict(), header_params: RequestHeaderParams = frozendict.frozendict(), @@ -657,6 +691,23 @@ def get( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def get( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + query_params: RequestQueryParams = frozendict.frozendict(), + header_params: RequestHeaderParams = frozendict.frozendict(), + content_type: str = 'application/x-www-form-urlencoded', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def get( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake/get.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake/get.pyi index df685c39da0..e7182ba4a82 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake/get.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake/get.pyi @@ -309,6 +309,23 @@ class BaseApi(api_client.Api): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def _enum_parameters_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + query_params: RequestQueryParams = frozendict.frozendict(), + header_params: RequestHeaderParams = frozendict.frozendict(), + content_type: str = 'application/x-www-form-urlencoded', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _enum_parameters_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, @@ -400,7 +417,7 @@ class EnumParameters(BaseApi): @typing.overload def enum_parameters( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, query_params: RequestQueryParams = frozendict.frozendict(), header_params: RequestHeaderParams = frozendict.frozendict(), @@ -416,7 +433,7 @@ class EnumParameters(BaseApi): @typing.overload def enum_parameters( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, query_params: RequestQueryParams = frozendict.frozendict(), header_params: RequestHeaderParams = frozendict.frozendict(), @@ -427,6 +444,23 @@ class EnumParameters(BaseApi): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def enum_parameters( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + query_params: RequestQueryParams = frozendict.frozendict(), + header_params: RequestHeaderParams = frozendict.frozendict(), + content_type: str = 'application/x-www-form-urlencoded', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def enum_parameters( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, @@ -457,7 +491,7 @@ class ApiForget(BaseApi): @typing.overload def get( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, query_params: RequestQueryParams = frozendict.frozendict(), header_params: RequestHeaderParams = frozendict.frozendict(), @@ -473,7 +507,7 @@ class ApiForget(BaseApi): @typing.overload def get( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, query_params: RequestQueryParams = frozendict.frozendict(), header_params: RequestHeaderParams = frozendict.frozendict(), @@ -484,6 +518,23 @@ class ApiForget(BaseApi): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def get( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + query_params: RequestQueryParams = frozendict.frozendict(), + header_params: RequestHeaderParams = frozendict.frozendict(), + content_type: str = 'application/x-www-form-urlencoded', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def get( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake/patch.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake/patch.py index 65b4fa04a20..e5eb12d9772 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake/patch.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake/patch.py @@ -95,6 +95,21 @@ def _client_model_oapg( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def _client_model_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _client_model_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -162,7 +177,7 @@ class ClientModel(BaseApi): @typing.overload def client_model( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -176,7 +191,7 @@ def client_model( @typing.overload def client_model( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -186,6 +201,21 @@ def client_model( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def client_model( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def client_model( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -213,7 +243,7 @@ class ApiForpatch(BaseApi): @typing.overload def patch( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -227,7 +257,7 @@ def patch( @typing.overload def patch( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -237,6 +267,21 @@ def patch( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def patch( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def patch( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake/patch.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake/patch.pyi index c85b4c6dc2c..e035534475e 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake/patch.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake/patch.pyi @@ -63,6 +63,21 @@ class BaseApi(api_client.Api): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def _client_model_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _client_model_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -130,7 +145,7 @@ class ClientModel(BaseApi): @typing.overload def client_model( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -144,7 +159,7 @@ class ClientModel(BaseApi): @typing.overload def client_model( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -154,6 +169,21 @@ class ClientModel(BaseApi): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def client_model( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def client_model( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -181,7 +211,7 @@ class ApiForpatch(BaseApi): @typing.overload def patch( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -195,7 +225,7 @@ class ApiForpatch(BaseApi): @typing.overload def patch( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -205,6 +235,21 @@ class ApiForpatch(BaseApi): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def patch( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def patch( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake/post.py index d02ab1534e0..2eb03382630 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake/post.py @@ -365,6 +365,21 @@ def _endpoint_parameters_oapg( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def _endpoint_parameters_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + content_type: str = 'application/x-www-form-urlencoded', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _endpoint_parameters_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, @@ -428,7 +443,7 @@ class EndpointParameters(BaseApi): @typing.overload def endpoint_parameters( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, content_type: str = 'application/x-www-form-urlencoded', stream: bool = False, @@ -442,7 +457,7 @@ def endpoint_parameters( @typing.overload def endpoint_parameters( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, content_type: str = 'application/x-www-form-urlencoded', stream: bool = False, @@ -451,6 +466,21 @@ def endpoint_parameters( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def endpoint_parameters( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + content_type: str = 'application/x-www-form-urlencoded', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def endpoint_parameters( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, @@ -477,7 +507,7 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, content_type: str = 'application/x-www-form-urlencoded', stream: bool = False, @@ -491,7 +521,7 @@ def post( @typing.overload def post( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, content_type: str = 'application/x-www-form-urlencoded', stream: bool = False, @@ -500,6 +530,21 @@ def post( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + content_type: str = 'application/x-www-form-urlencoded', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake/post.pyi index 4f6090506ea..703cb2a2b3b 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake/post.pyi @@ -284,6 +284,21 @@ class BaseApi(api_client.Api): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def _endpoint_parameters_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + content_type: str = 'application/x-www-form-urlencoded', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _endpoint_parameters_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, @@ -347,7 +362,7 @@ class EndpointParameters(BaseApi): @typing.overload def endpoint_parameters( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, content_type: str = 'application/x-www-form-urlencoded', stream: bool = False, @@ -361,7 +376,7 @@ class EndpointParameters(BaseApi): @typing.overload def endpoint_parameters( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, content_type: str = 'application/x-www-form-urlencoded', stream: bool = False, @@ -370,6 +385,21 @@ class EndpointParameters(BaseApi): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def endpoint_parameters( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + content_type: str = 'application/x-www-form-urlencoded', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def endpoint_parameters( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, @@ -396,7 +426,7 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, content_type: str = 'application/x-www-form-urlencoded', stream: bool = False, @@ -410,7 +440,7 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, content_type: str = 'application/x-www-form-urlencoded', stream: bool = False, @@ -419,6 +449,21 @@ class ApiForpost(BaseApi): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + content_type: str = 'application/x-www-form-urlencoded', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_additional_properties_with_array_of_enums/get.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_additional_properties_with_array_of_enums/get.py index c6eac3ff3f4..dc267a784c4 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_additional_properties_with_array_of_enums/get.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_additional_properties_with_array_of_enums/get.py @@ -94,6 +94,21 @@ def _additional_properties_with_array_of_enums_oapg( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def _additional_properties_with_array_of_enums_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _additional_properties_with_array_of_enums_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, @@ -159,7 +174,7 @@ class AdditionalPropertiesWithArrayOfEnums(BaseApi): @typing.overload def additional_properties_with_array_of_enums( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -173,7 +188,7 @@ def additional_properties_with_array_of_enums( @typing.overload def additional_properties_with_array_of_enums( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -183,6 +198,21 @@ def additional_properties_with_array_of_enums( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def additional_properties_with_array_of_enums( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def additional_properties_with_array_of_enums( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, @@ -210,7 +240,7 @@ class ApiForget(BaseApi): @typing.overload def get( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -224,7 +254,7 @@ def get( @typing.overload def get( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -234,6 +264,21 @@ def get( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def get( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def get( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_additional_properties_with_array_of_enums/get.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_additional_properties_with_array_of_enums/get.pyi index 2c9a9160bf7..655ff7a67d1 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_additional_properties_with_array_of_enums/get.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_additional_properties_with_array_of_enums/get.pyi @@ -63,6 +63,21 @@ class BaseApi(api_client.Api): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def _additional_properties_with_array_of_enums_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _additional_properties_with_array_of_enums_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, @@ -128,7 +143,7 @@ class AdditionalPropertiesWithArrayOfEnums(BaseApi): @typing.overload def additional_properties_with_array_of_enums( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -142,7 +157,7 @@ class AdditionalPropertiesWithArrayOfEnums(BaseApi): @typing.overload def additional_properties_with_array_of_enums( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -152,6 +167,21 @@ class AdditionalPropertiesWithArrayOfEnums(BaseApi): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def additional_properties_with_array_of_enums( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def additional_properties_with_array_of_enums( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, @@ -179,7 +209,7 @@ class ApiForget(BaseApi): @typing.overload def get( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -193,7 +223,7 @@ class ApiForget(BaseApi): @typing.overload def get( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -203,6 +233,21 @@ class ApiForget(BaseApi): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def get( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def get( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_body_with_file_schema/put.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_body_with_file_schema/put.py index b25009a9b62..b2634eb130b 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_body_with_file_schema/put.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_body_with_file_schema/put.py @@ -83,6 +83,20 @@ def _body_with_file_schema_oapg( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def _body_with_file_schema_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _body_with_file_schema_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -145,7 +159,7 @@ class BodyWithFileSchema(BaseApi): @typing.overload def body_with_file_schema( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], content_type: str = 'application/json', stream: bool = False, @@ -158,7 +172,7 @@ def body_with_file_schema( @typing.overload def body_with_file_schema( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], content_type: str = 'application/json', stream: bool = False, @@ -167,6 +181,20 @@ def body_with_file_schema( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def body_with_file_schema( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def body_with_file_schema( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -192,7 +220,7 @@ class ApiForput(BaseApi): @typing.overload def put( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], content_type: str = 'application/json', stream: bool = False, @@ -205,7 +233,7 @@ def put( @typing.overload def put( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], content_type: str = 'application/json', stream: bool = False, @@ -214,6 +242,20 @@ def put( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def put( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def put( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_body_with_file_schema/put.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_body_with_file_schema/put.pyi index d64be21ed17..9ca192a0377 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_body_with_file_schema/put.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_body_with_file_schema/put.pyi @@ -57,6 +57,20 @@ class BaseApi(api_client.Api): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def _body_with_file_schema_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _body_with_file_schema_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -119,7 +133,7 @@ class BodyWithFileSchema(BaseApi): @typing.overload def body_with_file_schema( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], content_type: str = 'application/json', stream: bool = False, @@ -132,7 +146,7 @@ class BodyWithFileSchema(BaseApi): @typing.overload def body_with_file_schema( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], content_type: str = 'application/json', stream: bool = False, @@ -141,6 +155,20 @@ class BodyWithFileSchema(BaseApi): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def body_with_file_schema( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def body_with_file_schema( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -166,7 +194,7 @@ class ApiForput(BaseApi): @typing.overload def put( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], content_type: str = 'application/json', stream: bool = False, @@ -179,7 +207,7 @@ class ApiForput(BaseApi): @typing.overload def put( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], content_type: str = 'application/json', stream: bool = False, @@ -188,6 +216,20 @@ class ApiForput(BaseApi): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def put( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def put( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_body_with_query_params/put.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_body_with_query_params/put.py index 4d87a463899..1730623ffce 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_body_with_query_params/put.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_body_with_query_params/put.py @@ -112,6 +112,21 @@ def _body_with_query_params_oapg( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def _body_with_query_params_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + query_params: RequestQueryParams = frozendict.frozendict(), + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _body_with_query_params_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -189,7 +204,7 @@ class BodyWithQueryParams(BaseApi): @typing.overload def body_with_query_params( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], query_params: RequestQueryParams = frozendict.frozendict(), content_type: str = 'application/json', @@ -203,7 +218,7 @@ def body_with_query_params( @typing.overload def body_with_query_params( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], query_params: RequestQueryParams = frozendict.frozendict(), content_type: str = 'application/json', @@ -213,6 +228,21 @@ def body_with_query_params( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def body_with_query_params( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + query_params: RequestQueryParams = frozendict.frozendict(), + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def body_with_query_params( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -240,7 +270,7 @@ class ApiForput(BaseApi): @typing.overload def put( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], query_params: RequestQueryParams = frozendict.frozendict(), content_type: str = 'application/json', @@ -254,7 +284,7 @@ def put( @typing.overload def put( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], query_params: RequestQueryParams = frozendict.frozendict(), content_type: str = 'application/json', @@ -264,6 +294,21 @@ def put( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def put( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + query_params: RequestQueryParams = frozendict.frozendict(), + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def put( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_body_with_query_params/put.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_body_with_query_params/put.pyi index 73128d38860..3ec8bd31cfb 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_body_with_query_params/put.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_body_with_query_params/put.pyi @@ -61,6 +61,21 @@ class BaseApi(api_client.Api): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def _body_with_query_params_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + query_params: RequestQueryParams = frozendict.frozendict(), + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _body_with_query_params_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -138,7 +153,7 @@ class BodyWithQueryParams(BaseApi): @typing.overload def body_with_query_params( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], query_params: RequestQueryParams = frozendict.frozendict(), content_type: str = 'application/json', @@ -152,7 +167,7 @@ class BodyWithQueryParams(BaseApi): @typing.overload def body_with_query_params( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], query_params: RequestQueryParams = frozendict.frozendict(), content_type: str = 'application/json', @@ -162,6 +177,21 @@ class BodyWithQueryParams(BaseApi): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def body_with_query_params( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + query_params: RequestQueryParams = frozendict.frozendict(), + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def body_with_query_params( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -189,7 +219,7 @@ class ApiForput(BaseApi): @typing.overload def put( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], query_params: RequestQueryParams = frozendict.frozendict(), content_type: str = 'application/json', @@ -203,7 +233,7 @@ class ApiForput(BaseApi): @typing.overload def put( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], query_params: RequestQueryParams = frozendict.frozendict(), content_type: str = 'application/json', @@ -213,6 +243,21 @@ class ApiForput(BaseApi): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def put( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + query_params: RequestQueryParams = frozendict.frozendict(), + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def put( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_case_sensitive_params/put.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_case_sensitive_params/put.py index e2220491cf3..a81c9448e1f 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_case_sensitive_params/put.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_case_sensitive_params/put.py @@ -112,6 +112,19 @@ def _case_sensitive_params_oapg( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def _case_sensitive_params_oapg( + self: api_client.Api, + query_params: RequestQueryParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _case_sensitive_params_oapg( self: api_client.Api, query_params: RequestQueryParams = frozendict.frozendict(), @@ -173,7 +186,7 @@ class CaseSensitiveParams(BaseApi): @typing.overload def case_sensitive_params( - self: api_client.Api, + self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -185,7 +198,7 @@ def case_sensitive_params( @typing.overload def case_sensitive_params( - self: api_client.Api, + self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -193,6 +206,19 @@ def case_sensitive_params( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def case_sensitive_params( + self: BaseApi, + query_params: RequestQueryParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def case_sensitive_params( self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), @@ -216,7 +242,7 @@ class ApiForput(BaseApi): @typing.overload def put( - self: api_client.Api, + self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -228,7 +254,7 @@ def put( @typing.overload def put( - self: api_client.Api, + self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -236,6 +262,19 @@ def put( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def put( + self: BaseApi, + query_params: RequestQueryParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def put( self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_case_sensitive_params/put.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_case_sensitive_params/put.pyi index 8bd1decbfc6..4829c1a0970 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_case_sensitive_params/put.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_case_sensitive_params/put.pyi @@ -54,6 +54,19 @@ class BaseApi(api_client.Api): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def _case_sensitive_params_oapg( + self: api_client.Api, + query_params: RequestQueryParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _case_sensitive_params_oapg( self: api_client.Api, query_params: RequestQueryParams = frozendict.frozendict(), @@ -115,7 +128,7 @@ class CaseSensitiveParams(BaseApi): @typing.overload def case_sensitive_params( - self: api_client.Api, + self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -127,7 +140,7 @@ class CaseSensitiveParams(BaseApi): @typing.overload def case_sensitive_params( - self: api_client.Api, + self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -135,6 +148,19 @@ class CaseSensitiveParams(BaseApi): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def case_sensitive_params( + self: BaseApi, + query_params: RequestQueryParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def case_sensitive_params( self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), @@ -158,7 +184,7 @@ class ApiForput(BaseApi): @typing.overload def put( - self: api_client.Api, + self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -170,7 +196,7 @@ class ApiForput(BaseApi): @typing.overload def put( - self: api_client.Api, + self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -178,6 +204,19 @@ class ApiForput(BaseApi): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def put( + self: BaseApi, + query_params: RequestQueryParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def put( self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_classname_test/patch.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_classname_test/patch.py index 8485e0400b5..d39862cc764 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_classname_test/patch.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_classname_test/patch.py @@ -98,6 +98,21 @@ def _classname_oapg( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def _classname_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _classname_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -166,7 +181,7 @@ class Classname(BaseApi): @typing.overload def classname( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -180,7 +195,7 @@ def classname( @typing.overload def classname( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -190,6 +205,21 @@ def classname( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def classname( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def classname( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -217,7 +247,7 @@ class ApiForpatch(BaseApi): @typing.overload def patch( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -231,7 +261,7 @@ def patch( @typing.overload def patch( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -241,6 +271,21 @@ def patch( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def patch( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def patch( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_classname_test/patch.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_classname_test/patch.pyi index 9bd4601d9a5..0efae9264dd 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_classname_test/patch.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_classname_test/patch.pyi @@ -63,6 +63,21 @@ class BaseApi(api_client.Api): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def _classname_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _classname_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -131,7 +146,7 @@ class Classname(BaseApi): @typing.overload def classname( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -145,7 +160,7 @@ class Classname(BaseApi): @typing.overload def classname( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -155,6 +170,21 @@ class Classname(BaseApi): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def classname( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def classname( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -182,7 +212,7 @@ class ApiForpatch(BaseApi): @typing.overload def patch( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -196,7 +226,7 @@ class ApiForpatch(BaseApi): @typing.overload def patch( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -206,6 +236,21 @@ class ApiForpatch(BaseApi): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def patch( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def patch( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_delete_coffee_id/delete.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_delete_coffee_id/delete.py index 6fc3a381d50..38fe09237bc 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_delete_coffee_id/delete.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_delete_coffee_id/delete.py @@ -107,6 +107,20 @@ def _delete_coffee_oapg( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def _delete_coffee_oapg( + self: api_client.Api, + path_params: RequestPathParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + ApiResponseForDefault, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _delete_coffee_oapg( self: api_client.Api, path_params: RequestPathParams = frozendict.frozendict(), @@ -172,7 +186,7 @@ class DeleteCoffee(BaseApi): @typing.overload def delete_coffee( - self: api_client.Api, + self: BaseApi, path_params: RequestPathParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -185,7 +199,7 @@ def delete_coffee( @typing.overload def delete_coffee( - self: api_client.Api, + self: BaseApi, path_params: RequestPathParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -193,6 +207,20 @@ def delete_coffee( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def delete_coffee( + self: BaseApi, + path_params: RequestPathParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + ApiResponseForDefault, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def delete_coffee( self: BaseApi, path_params: RequestPathParams = frozendict.frozendict(), @@ -217,7 +245,7 @@ class ApiFordelete(BaseApi): @typing.overload def delete( - self: api_client.Api, + self: BaseApi, path_params: RequestPathParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -230,7 +258,7 @@ def delete( @typing.overload def delete( - self: api_client.Api, + self: BaseApi, path_params: RequestPathParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -238,6 +266,20 @@ def delete( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def delete( + self: BaseApi, + path_params: RequestPathParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + ApiResponseForDefault, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def delete( self: BaseApi, path_params: RequestPathParams = frozendict.frozendict(), diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_delete_coffee_id/delete.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_delete_coffee_id/delete.pyi index 938b54ad76b..9bbdf51a41d 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_delete_coffee_id/delete.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_delete_coffee_id/delete.pyi @@ -53,6 +53,20 @@ class BaseApi(api_client.Api): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def _delete_coffee_oapg( + self: api_client.Api, + path_params: RequestPathParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + ApiResponseForDefault, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _delete_coffee_oapg( self: api_client.Api, path_params: RequestPathParams = frozendict.frozendict(), @@ -118,7 +132,7 @@ class DeleteCoffee(BaseApi): @typing.overload def delete_coffee( - self: api_client.Api, + self: BaseApi, path_params: RequestPathParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -131,7 +145,7 @@ class DeleteCoffee(BaseApi): @typing.overload def delete_coffee( - self: api_client.Api, + self: BaseApi, path_params: RequestPathParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -139,6 +153,20 @@ class DeleteCoffee(BaseApi): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def delete_coffee( + self: BaseApi, + path_params: RequestPathParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + ApiResponseForDefault, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def delete_coffee( self: BaseApi, path_params: RequestPathParams = frozendict.frozendict(), @@ -163,7 +191,7 @@ class ApiFordelete(BaseApi): @typing.overload def delete( - self: api_client.Api, + self: BaseApi, path_params: RequestPathParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -176,7 +204,7 @@ class ApiFordelete(BaseApi): @typing.overload def delete( - self: api_client.Api, + self: BaseApi, path_params: RequestPathParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -184,6 +212,20 @@ class ApiFordelete(BaseApi): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def delete( + self: BaseApi, + path_params: RequestPathParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + ApiResponseForDefault, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def delete( self: BaseApi, path_params: RequestPathParams = frozendict.frozendict(), diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_health/get.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_health/get.py index 6d308269393..63b7a5defb5 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_health/get.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_health/get.py @@ -80,6 +80,19 @@ def _fake_health_get_oapg( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def _fake_health_get_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _fake_health_get_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -132,7 +145,7 @@ class FakeHealthGet(BaseApi): @typing.overload def fake_health_get( - self: api_client.Api, + self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -144,7 +157,7 @@ def fake_health_get( @typing.overload def fake_health_get( - self: api_client.Api, + self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -152,6 +165,19 @@ def fake_health_get( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def fake_health_get( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def fake_health_get( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -175,7 +201,7 @@ class ApiForget(BaseApi): @typing.overload def get( - self: api_client.Api, + self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -187,7 +213,7 @@ def get( @typing.overload def get( - self: api_client.Api, + self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -195,6 +221,19 @@ def get( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def get( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def get( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_health/get.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_health/get.pyi index a05f5f4123e..fa96827de1a 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_health/get.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_health/get.pyi @@ -57,6 +57,19 @@ class BaseApi(api_client.Api): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def _fake_health_get_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _fake_health_get_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -109,7 +122,7 @@ class FakeHealthGet(BaseApi): @typing.overload def fake_health_get( - self: api_client.Api, + self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -121,7 +134,7 @@ class FakeHealthGet(BaseApi): @typing.overload def fake_health_get( - self: api_client.Api, + self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -129,6 +142,19 @@ class FakeHealthGet(BaseApi): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def fake_health_get( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def fake_health_get( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -152,7 +178,7 @@ class ApiForget(BaseApi): @typing.overload def get( - self: api_client.Api, + self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -164,7 +190,7 @@ class ApiForget(BaseApi): @typing.overload def get( - self: api_client.Api, + self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -172,6 +198,19 @@ class ApiForget(BaseApi): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def get( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def get( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_inline_additional_properties/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_inline_additional_properties/post.py index f97ebd18490..27ef6206caa 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_inline_additional_properties/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_inline_additional_properties/post.py @@ -109,6 +109,20 @@ def _inline_additional_properties_oapg( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def _inline_additional_properties_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _inline_additional_properties_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, ], @@ -172,7 +186,7 @@ class InlineAdditionalProperties(BaseApi): @typing.overload def inline_additional_properties( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, ], content_type: str = 'application/json', stream: bool = False, @@ -185,7 +199,7 @@ def inline_additional_properties( @typing.overload def inline_additional_properties( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, ], content_type: str = 'application/json', stream: bool = False, @@ -194,6 +208,20 @@ def inline_additional_properties( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def inline_additional_properties( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def inline_additional_properties( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, ], @@ -219,7 +247,7 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, ], content_type: str = 'application/json', stream: bool = False, @@ -232,7 +260,7 @@ def post( @typing.overload def post( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, ], content_type: str = 'application/json', stream: bool = False, @@ -241,6 +269,20 @@ def post( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, ], diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_inline_additional_properties/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_inline_additional_properties/post.pyi index 4d6701d05c4..306f307133d 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_inline_additional_properties/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_inline_additional_properties/post.pyi @@ -83,6 +83,20 @@ class BaseApi(api_client.Api): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def _inline_additional_properties_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _inline_additional_properties_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, ], @@ -146,7 +160,7 @@ class InlineAdditionalProperties(BaseApi): @typing.overload def inline_additional_properties( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, ], content_type: str = 'application/json', stream: bool = False, @@ -159,7 +173,7 @@ class InlineAdditionalProperties(BaseApi): @typing.overload def inline_additional_properties( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, ], content_type: str = 'application/json', stream: bool = False, @@ -168,6 +182,20 @@ class InlineAdditionalProperties(BaseApi): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def inline_additional_properties( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def inline_additional_properties( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, ], @@ -193,7 +221,7 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, ], content_type: str = 'application/json', stream: bool = False, @@ -206,7 +234,7 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, ], content_type: str = 'application/json', stream: bool = False, @@ -215,6 +243,20 @@ class ApiForpost(BaseApi): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, ], diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_inline_composition_/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_inline_composition_/post.py index c9b73b6b3a7..d612cc865ff 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_inline_composition_/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_inline_composition_/post.py @@ -547,6 +547,22 @@ def _inline_composition_oapg( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def _inline_composition_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + query_params: RequestQueryParams = frozendict.frozendict(), + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _inline_composition_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, @@ -628,7 +644,7 @@ class InlineComposition(BaseApi): @typing.overload def inline_composition( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, query_params: RequestQueryParams = frozendict.frozendict(), content_type: str = 'application/json', @@ -643,7 +659,7 @@ def inline_composition( @typing.overload def inline_composition( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, query_params: RequestQueryParams = frozendict.frozendict(), content_type: str = 'application/json', @@ -654,6 +670,22 @@ def inline_composition( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def inline_composition( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + query_params: RequestQueryParams = frozendict.frozendict(), + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def inline_composition( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, @@ -683,7 +715,7 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, query_params: RequestQueryParams = frozendict.frozendict(), content_type: str = 'application/json', @@ -698,7 +730,7 @@ def post( @typing.overload def post( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, query_params: RequestQueryParams = frozendict.frozendict(), content_type: str = 'application/json', @@ -709,6 +741,22 @@ def post( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + query_params: RequestQueryParams = frozendict.frozendict(), + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_inline_composition_/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_inline_composition_/post.pyi index 565ea19c406..c9b912d7df6 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_inline_composition_/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_inline_composition_/post.pyi @@ -462,6 +462,22 @@ class BaseApi(api_client.Api): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def _inline_composition_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + query_params: RequestQueryParams = frozendict.frozendict(), + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _inline_composition_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, @@ -543,7 +559,7 @@ class InlineComposition(BaseApi): @typing.overload def inline_composition( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, query_params: RequestQueryParams = frozendict.frozendict(), content_type: str = 'application/json', @@ -558,7 +574,7 @@ class InlineComposition(BaseApi): @typing.overload def inline_composition( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, query_params: RequestQueryParams = frozendict.frozendict(), content_type: str = 'application/json', @@ -569,6 +585,22 @@ class InlineComposition(BaseApi): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def inline_composition( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + query_params: RequestQueryParams = frozendict.frozendict(), + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def inline_composition( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, @@ -598,7 +630,7 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, query_params: RequestQueryParams = frozendict.frozendict(), content_type: str = 'application/json', @@ -613,7 +645,7 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, query_params: RequestQueryParams = frozendict.frozendict(), content_type: str = 'application/json', @@ -624,6 +656,22 @@ class ApiForpost(BaseApi): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + query_params: RequestQueryParams = frozendict.frozendict(), + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_form_data/get.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_form_data/get.py index 953272d357a..dc1f071185e 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_form_data/get.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_form_data/get.py @@ -146,6 +146,20 @@ def _json_form_data_oapg( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def _json_form_data_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + content_type: str = 'application/x-www-form-urlencoded', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _json_form_data_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, @@ -207,7 +221,7 @@ class JsonFormData(BaseApi): @typing.overload def json_form_data( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, content_type: str = 'application/x-www-form-urlencoded', stream: bool = False, @@ -220,7 +234,7 @@ def json_form_data( @typing.overload def json_form_data( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, content_type: str = 'application/x-www-form-urlencoded', stream: bool = False, @@ -229,6 +243,20 @@ def json_form_data( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def json_form_data( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + content_type: str = 'application/x-www-form-urlencoded', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def json_form_data( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, @@ -254,7 +282,7 @@ class ApiForget(BaseApi): @typing.overload def get( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, content_type: str = 'application/x-www-form-urlencoded', stream: bool = False, @@ -267,7 +295,7 @@ def get( @typing.overload def get( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, content_type: str = 'application/x-www-form-urlencoded', stream: bool = False, @@ -276,6 +304,20 @@ def get( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def get( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + content_type: str = 'application/x-www-form-urlencoded', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def get( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_form_data/get.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_form_data/get.pyi index aac980031a9..8834f7f8a9c 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_form_data/get.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_form_data/get.pyi @@ -121,6 +121,20 @@ class BaseApi(api_client.Api): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def _json_form_data_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + content_type: str = 'application/x-www-form-urlencoded', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _json_form_data_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, @@ -182,7 +196,7 @@ class JsonFormData(BaseApi): @typing.overload def json_form_data( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, content_type: str = 'application/x-www-form-urlencoded', stream: bool = False, @@ -195,7 +209,7 @@ class JsonFormData(BaseApi): @typing.overload def json_form_data( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, content_type: str = 'application/x-www-form-urlencoded', stream: bool = False, @@ -204,6 +218,20 @@ class JsonFormData(BaseApi): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def json_form_data( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + content_type: str = 'application/x-www-form-urlencoded', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def json_form_data( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, @@ -229,7 +257,7 @@ class ApiForget(BaseApi): @typing.overload def get( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, content_type: str = 'application/x-www-form-urlencoded', stream: bool = False, @@ -242,7 +270,7 @@ class ApiForget(BaseApi): @typing.overload def get( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, content_type: str = 'application/x-www-form-urlencoded', stream: bool = False, @@ -251,6 +279,20 @@ class ApiForget(BaseApi): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def get( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + content_type: str = 'application/x-www-form-urlencoded', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def get( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_patch/patch.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_patch/patch.py index 0bd87a6f5d0..5e408601fa4 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_patch/patch.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_patch/patch.py @@ -82,6 +82,20 @@ def _json_patch_oapg( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def _json_patch_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJsonPatchjson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json-patch+json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _json_patch_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJsonPatchjson, schemas.Unset] = schemas.unset, @@ -143,7 +157,7 @@ class JsonPatch(BaseApi): @typing.overload def json_patch( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJsonPatchjson, schemas.Unset] = schemas.unset, content_type: str = 'application/json-patch+json', stream: bool = False, @@ -156,7 +170,7 @@ def json_patch( @typing.overload def json_patch( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJsonPatchjson, schemas.Unset] = schemas.unset, content_type: str = 'application/json-patch+json', stream: bool = False, @@ -165,6 +179,20 @@ def json_patch( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def json_patch( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJsonPatchjson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json-patch+json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def json_patch( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJsonPatchjson, schemas.Unset] = schemas.unset, @@ -190,7 +218,7 @@ class ApiForpatch(BaseApi): @typing.overload def patch( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJsonPatchjson, schemas.Unset] = schemas.unset, content_type: str = 'application/json-patch+json', stream: bool = False, @@ -203,7 +231,7 @@ def patch( @typing.overload def patch( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJsonPatchjson, schemas.Unset] = schemas.unset, content_type: str = 'application/json-patch+json', stream: bool = False, @@ -212,6 +240,20 @@ def patch( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def patch( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJsonPatchjson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json-patch+json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def patch( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJsonPatchjson, schemas.Unset] = schemas.unset, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_patch/patch.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_patch/patch.pyi index 70998494a74..b70c5f9b970 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_patch/patch.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_patch/patch.pyi @@ -57,6 +57,20 @@ class BaseApi(api_client.Api): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def _json_patch_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJsonPatchjson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json-patch+json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _json_patch_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJsonPatchjson, schemas.Unset] = schemas.unset, @@ -118,7 +132,7 @@ class JsonPatch(BaseApi): @typing.overload def json_patch( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJsonPatchjson, schemas.Unset] = schemas.unset, content_type: str = 'application/json-patch+json', stream: bool = False, @@ -131,7 +145,7 @@ class JsonPatch(BaseApi): @typing.overload def json_patch( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJsonPatchjson, schemas.Unset] = schemas.unset, content_type: str = 'application/json-patch+json', stream: bool = False, @@ -140,6 +154,20 @@ class JsonPatch(BaseApi): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def json_patch( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJsonPatchjson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json-patch+json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def json_patch( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJsonPatchjson, schemas.Unset] = schemas.unset, @@ -165,7 +193,7 @@ class ApiForpatch(BaseApi): @typing.overload def patch( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJsonPatchjson, schemas.Unset] = schemas.unset, content_type: str = 'application/json-patch+json', stream: bool = False, @@ -178,7 +206,7 @@ class ApiForpatch(BaseApi): @typing.overload def patch( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJsonPatchjson, schemas.Unset] = schemas.unset, content_type: str = 'application/json-patch+json', stream: bool = False, @@ -187,6 +215,20 @@ class ApiForpatch(BaseApi): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def patch( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJsonPatchjson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json-patch+json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def patch( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJsonPatchjson, schemas.Unset] = schemas.unset, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_with_charset/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_with_charset/post.py index 15a805d2f56..c833ccbf7aa 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_with_charset/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_with_charset/post.py @@ -92,6 +92,21 @@ def _json_with_charset_oapg( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def _json_with_charset_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJsonCharsetutf8, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + content_type: str = 'application/json; charset=utf-8', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _json_with_charset_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJsonCharsetutf8, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, @@ -157,7 +172,7 @@ class JsonWithCharset(BaseApi): @typing.overload def json_with_charset( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJsonCharsetutf8, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, content_type: str = 'application/json; charset=utf-8', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -171,7 +186,7 @@ def json_with_charset( @typing.overload def json_with_charset( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJsonCharsetutf8, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, content_type: str = 'application/json; charset=utf-8', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -181,6 +196,21 @@ def json_with_charset( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def json_with_charset( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJsonCharsetutf8, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + content_type: str = 'application/json; charset=utf-8', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def json_with_charset( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJsonCharsetutf8, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, @@ -208,7 +238,7 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJsonCharsetutf8, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, content_type: str = 'application/json; charset=utf-8', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -222,7 +252,7 @@ def post( @typing.overload def post( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJsonCharsetutf8, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, content_type: str = 'application/json; charset=utf-8', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -232,6 +262,21 @@ def post( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJsonCharsetutf8, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + content_type: str = 'application/json; charset=utf-8', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJsonCharsetutf8, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_with_charset/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_with_charset/post.pyi index 8dfa8dbbd98..f22277f36fe 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_with_charset/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_with_charset/post.pyi @@ -61,6 +61,21 @@ class BaseApi(api_client.Api): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def _json_with_charset_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJsonCharsetutf8, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + content_type: str = 'application/json; charset=utf-8', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _json_with_charset_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJsonCharsetutf8, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, @@ -126,7 +141,7 @@ class JsonWithCharset(BaseApi): @typing.overload def json_with_charset( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJsonCharsetutf8, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, content_type: str = 'application/json; charset=utf-8', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -140,7 +155,7 @@ class JsonWithCharset(BaseApi): @typing.overload def json_with_charset( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJsonCharsetutf8, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, content_type: str = 'application/json; charset=utf-8', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -150,6 +165,21 @@ class JsonWithCharset(BaseApi): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def json_with_charset( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJsonCharsetutf8, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + content_type: str = 'application/json; charset=utf-8', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def json_with_charset( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJsonCharsetutf8, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, @@ -177,7 +207,7 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJsonCharsetutf8, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, content_type: str = 'application/json; charset=utf-8', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -191,7 +221,7 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJsonCharsetutf8, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, content_type: str = 'application/json; charset=utf-8', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -201,6 +231,21 @@ class ApiForpost(BaseApi): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJsonCharsetutf8, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + content_type: str = 'application/json; charset=utf-8', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJsonCharsetutf8, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_obj_in_query/get.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_obj_in_query/get.py index 7a8e011d87c..ce0464dc67d 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_obj_in_query/get.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_obj_in_query/get.py @@ -142,6 +142,19 @@ def _object_in_query_oapg( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def _object_in_query_oapg( + self: api_client.Api, + query_params: RequestQueryParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _object_in_query_oapg( self: api_client.Api, query_params: RequestQueryParams = frozendict.frozendict(), @@ -202,7 +215,7 @@ class ObjectInQuery(BaseApi): @typing.overload def object_in_query( - self: api_client.Api, + self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -214,7 +227,7 @@ def object_in_query( @typing.overload def object_in_query( - self: api_client.Api, + self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -222,6 +235,19 @@ def object_in_query( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def object_in_query( + self: BaseApi, + query_params: RequestQueryParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def object_in_query( self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), @@ -245,7 +271,7 @@ class ApiForget(BaseApi): @typing.overload def get( - self: api_client.Api, + self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -257,7 +283,7 @@ def get( @typing.overload def get( - self: api_client.Api, + self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -265,6 +291,19 @@ def get( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def get( + self: BaseApi, + query_params: RequestQueryParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def get( self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_obj_in_query/get.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_obj_in_query/get.pyi index ac06bdaf64c..5e34c9508e4 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_obj_in_query/get.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_obj_in_query/get.pyi @@ -101,6 +101,19 @@ class BaseApi(api_client.Api): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def _object_in_query_oapg( + self: api_client.Api, + query_params: RequestQueryParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _object_in_query_oapg( self: api_client.Api, query_params: RequestQueryParams = frozendict.frozendict(), @@ -161,7 +174,7 @@ class ObjectInQuery(BaseApi): @typing.overload def object_in_query( - self: api_client.Api, + self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -173,7 +186,7 @@ class ObjectInQuery(BaseApi): @typing.overload def object_in_query( - self: api_client.Api, + self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -181,6 +194,19 @@ class ObjectInQuery(BaseApi): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def object_in_query( + self: BaseApi, + query_params: RequestQueryParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def object_in_query( self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), @@ -204,7 +230,7 @@ class ApiForget(BaseApi): @typing.overload def get( - self: api_client.Api, + self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -216,7 +242,7 @@ class ApiForget(BaseApi): @typing.overload def get( - self: api_client.Api, + self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -224,6 +250,19 @@ class ApiForget(BaseApi): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def get( + self: BaseApi, + query_params: RequestQueryParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def get( self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_parameter_collisions_1_a_b_ab_self_a_b_/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_parameter_collisions_1_a_b_ab_self_a_b_/post.py index 699c872e9b8..553684ea17e 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_parameter_collisions_1_a_b_ab_self_a_b_/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_parameter_collisions_1_a_b_ab_self_a_b_/post.py @@ -320,6 +320,25 @@ def _parameter_collisions_oapg( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def _parameter_collisions_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + query_params: RequestQueryParams = frozendict.frozendict(), + header_params: RequestHeaderParams = frozendict.frozendict(), + path_params: RequestPathParams = frozendict.frozendict(), + cookie_params: RequestCookieParams = frozendict.frozendict(), + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _parameter_collisions_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, @@ -438,7 +457,7 @@ class ParameterCollisions(BaseApi): @typing.overload def parameter_collisions( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, query_params: RequestQueryParams = frozendict.frozendict(), header_params: RequestHeaderParams = frozendict.frozendict(), @@ -456,7 +475,7 @@ def parameter_collisions( @typing.overload def parameter_collisions( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, query_params: RequestQueryParams = frozendict.frozendict(), header_params: RequestHeaderParams = frozendict.frozendict(), @@ -470,6 +489,25 @@ def parameter_collisions( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def parameter_collisions( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + query_params: RequestQueryParams = frozendict.frozendict(), + header_params: RequestHeaderParams = frozendict.frozendict(), + path_params: RequestPathParams = frozendict.frozendict(), + cookie_params: RequestCookieParams = frozendict.frozendict(), + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def parameter_collisions( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, @@ -505,7 +543,7 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, query_params: RequestQueryParams = frozendict.frozendict(), header_params: RequestHeaderParams = frozendict.frozendict(), @@ -523,7 +561,7 @@ def post( @typing.overload def post( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, query_params: RequestQueryParams = frozendict.frozendict(), header_params: RequestHeaderParams = frozendict.frozendict(), @@ -537,6 +575,25 @@ def post( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + query_params: RequestQueryParams = frozendict.frozendict(), + header_params: RequestHeaderParams = frozendict.frozendict(), + path_params: RequestPathParams = frozendict.frozendict(), + cookie_params: RequestCookieParams = frozendict.frozendict(), + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_parameter_collisions_1_a_b_ab_self_a_b_/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_parameter_collisions_1_a_b_ab_self_a_b_/post.pyi index fb709cc094b..f90fcbaca5f 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_parameter_collisions_1_a_b_ab_self_a_b_/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_parameter_collisions_1_a_b_ab_self_a_b_/post.pyi @@ -92,6 +92,25 @@ class BaseApi(api_client.Api): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def _parameter_collisions_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + query_params: RequestQueryParams = frozendict.frozendict(), + header_params: RequestHeaderParams = frozendict.frozendict(), + path_params: RequestPathParams = frozendict.frozendict(), + cookie_params: RequestCookieParams = frozendict.frozendict(), + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _parameter_collisions_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, @@ -210,7 +229,7 @@ class ParameterCollisions(BaseApi): @typing.overload def parameter_collisions( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, query_params: RequestQueryParams = frozendict.frozendict(), header_params: RequestHeaderParams = frozendict.frozendict(), @@ -228,7 +247,7 @@ class ParameterCollisions(BaseApi): @typing.overload def parameter_collisions( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, query_params: RequestQueryParams = frozendict.frozendict(), header_params: RequestHeaderParams = frozendict.frozendict(), @@ -242,6 +261,25 @@ class ParameterCollisions(BaseApi): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def parameter_collisions( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + query_params: RequestQueryParams = frozendict.frozendict(), + header_params: RequestHeaderParams = frozendict.frozendict(), + path_params: RequestPathParams = frozendict.frozendict(), + cookie_params: RequestCookieParams = frozendict.frozendict(), + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def parameter_collisions( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, @@ -277,7 +315,7 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, query_params: RequestQueryParams = frozendict.frozendict(), header_params: RequestHeaderParams = frozendict.frozendict(), @@ -295,7 +333,7 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, query_params: RequestQueryParams = frozendict.frozendict(), header_params: RequestHeaderParams = frozendict.frozendict(), @@ -309,6 +347,25 @@ class ApiForpost(BaseApi): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + query_params: RequestQueryParams = frozendict.frozendict(), + header_params: RequestHeaderParams = frozendict.frozendict(), + path_params: RequestPathParams = frozendict.frozendict(), + cookie_params: RequestCookieParams = frozendict.frozendict(), + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_pet_id_upload_image_with_required_file/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_pet_id_upload_image_with_required_file/post.py index f65193672c6..2c9562ceb49 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_pet_id_upload_image_with_required_file/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_pet_id_upload_image_with_required_file/post.py @@ -189,6 +189,22 @@ def _upload_file_with_required_file_oapg( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def _upload_file_with_required_file_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + path_params: RequestPathParams = frozendict.frozendict(), + content_type: str = 'multipart/form-data', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _upload_file_with_required_file_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, @@ -270,7 +286,7 @@ class UploadFileWithRequiredFile(BaseApi): @typing.overload def upload_file_with_required_file( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, path_params: RequestPathParams = frozendict.frozendict(), content_type: str = 'multipart/form-data', @@ -285,7 +301,7 @@ def upload_file_with_required_file( @typing.overload def upload_file_with_required_file( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, path_params: RequestPathParams = frozendict.frozendict(), content_type: str = 'multipart/form-data', @@ -296,6 +312,22 @@ def upload_file_with_required_file( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def upload_file_with_required_file( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + path_params: RequestPathParams = frozendict.frozendict(), + content_type: str = 'multipart/form-data', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def upload_file_with_required_file( self: BaseApi, body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, @@ -325,7 +357,7 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, path_params: RequestPathParams = frozendict.frozendict(), content_type: str = 'multipart/form-data', @@ -340,7 +372,7 @@ def post( @typing.overload def post( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, path_params: RequestPathParams = frozendict.frozendict(), content_type: str = 'multipart/form-data', @@ -351,6 +383,22 @@ def post( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + path_params: RequestPathParams = frozendict.frozendict(), + content_type: str = 'multipart/form-data', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_pet_id_upload_image_with_required_file/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_pet_id_upload_image_with_required_file/post.pyi index c9c920d1704..b701716fb48 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_pet_id_upload_image_with_required_file/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_pet_id_upload_image_with_required_file/post.pyi @@ -131,6 +131,22 @@ class BaseApi(api_client.Api): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def _upload_file_with_required_file_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + path_params: RequestPathParams = frozendict.frozendict(), + content_type: str = 'multipart/form-data', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _upload_file_with_required_file_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, @@ -212,7 +228,7 @@ class UploadFileWithRequiredFile(BaseApi): @typing.overload def upload_file_with_required_file( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, path_params: RequestPathParams = frozendict.frozendict(), content_type: str = 'multipart/form-data', @@ -227,7 +243,7 @@ class UploadFileWithRequiredFile(BaseApi): @typing.overload def upload_file_with_required_file( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, path_params: RequestPathParams = frozendict.frozendict(), content_type: str = 'multipart/form-data', @@ -238,6 +254,22 @@ class UploadFileWithRequiredFile(BaseApi): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def upload_file_with_required_file( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + path_params: RequestPathParams = frozendict.frozendict(), + content_type: str = 'multipart/form-data', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def upload_file_with_required_file( self: BaseApi, body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, @@ -267,7 +299,7 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, path_params: RequestPathParams = frozendict.frozendict(), content_type: str = 'multipart/form-data', @@ -282,7 +314,7 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, path_params: RequestPathParams = frozendict.frozendict(), content_type: str = 'multipart/form-data', @@ -293,6 +325,22 @@ class ApiForpost(BaseApi): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + path_params: RequestPathParams = frozendict.frozendict(), + content_type: str = 'multipart/form-data', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_ref_obj_in_query/get.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_ref_obj_in_query/get.py index 2c9877a6403..1cbe5cb089d 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_ref_obj_in_query/get.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_ref_obj_in_query/get.py @@ -95,6 +95,19 @@ def _ref_object_in_query_oapg( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def _ref_object_in_query_oapg( + self: api_client.Api, + query_params: RequestQueryParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _ref_object_in_query_oapg( self: api_client.Api, query_params: RequestQueryParams = frozendict.frozendict(), @@ -155,7 +168,7 @@ class RefObjectInQuery(BaseApi): @typing.overload def ref_object_in_query( - self: api_client.Api, + self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -167,7 +180,7 @@ def ref_object_in_query( @typing.overload def ref_object_in_query( - self: api_client.Api, + self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -175,6 +188,19 @@ def ref_object_in_query( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def ref_object_in_query( + self: BaseApi, + query_params: RequestQueryParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def ref_object_in_query( self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), @@ -198,7 +224,7 @@ class ApiForget(BaseApi): @typing.overload def get( - self: api_client.Api, + self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -210,7 +236,7 @@ def get( @typing.overload def get( - self: api_client.Api, + self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -218,6 +244,19 @@ def get( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def get( + self: BaseApi, + query_params: RequestQueryParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def get( self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_ref_obj_in_query/get.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_ref_obj_in_query/get.pyi index f9a9e5a0f65..009be8dc88d 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_ref_obj_in_query/get.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_ref_obj_in_query/get.pyi @@ -54,6 +54,19 @@ class BaseApi(api_client.Api): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def _ref_object_in_query_oapg( + self: api_client.Api, + query_params: RequestQueryParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _ref_object_in_query_oapg( self: api_client.Api, query_params: RequestQueryParams = frozendict.frozendict(), @@ -114,7 +127,7 @@ class RefObjectInQuery(BaseApi): @typing.overload def ref_object_in_query( - self: api_client.Api, + self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -126,7 +139,7 @@ class RefObjectInQuery(BaseApi): @typing.overload def ref_object_in_query( - self: api_client.Api, + self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -134,6 +147,19 @@ class RefObjectInQuery(BaseApi): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def ref_object_in_query( + self: BaseApi, + query_params: RequestQueryParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def ref_object_in_query( self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), @@ -157,7 +183,7 @@ class ApiForget(BaseApi): @typing.overload def get( - self: api_client.Api, + self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -169,7 +195,7 @@ class ApiForget(BaseApi): @typing.overload def get( - self: api_client.Api, + self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -177,6 +203,19 @@ class ApiForget(BaseApi): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def get( + self: BaseApi, + query_params: RequestQueryParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def get( self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_array_of_enums/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_array_of_enums/post.py index 9eb7ad66eda..ba0a8900d91 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_array_of_enums/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_array_of_enums/post.py @@ -94,6 +94,21 @@ def _array_of_enums_oapg( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def _array_of_enums_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _array_of_enums_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, @@ -159,7 +174,7 @@ class ArrayOfEnums(BaseApi): @typing.overload def array_of_enums( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -173,7 +188,7 @@ def array_of_enums( @typing.overload def array_of_enums( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -183,6 +198,21 @@ def array_of_enums( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def array_of_enums( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def array_of_enums( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, @@ -210,7 +240,7 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -224,7 +254,7 @@ def post( @typing.overload def post( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -234,6 +264,21 @@ def post( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_array_of_enums/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_array_of_enums/post.pyi index e939f936ec5..653d98e9489 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_array_of_enums/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_array_of_enums/post.pyi @@ -63,6 +63,21 @@ class BaseApi(api_client.Api): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def _array_of_enums_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _array_of_enums_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, @@ -128,7 +143,7 @@ class ArrayOfEnums(BaseApi): @typing.overload def array_of_enums( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -142,7 +157,7 @@ class ArrayOfEnums(BaseApi): @typing.overload def array_of_enums( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -152,6 +167,21 @@ class ArrayOfEnums(BaseApi): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def array_of_enums( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def array_of_enums( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, @@ -179,7 +209,7 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -193,7 +223,7 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -203,6 +233,21 @@ class ApiForpost(BaseApi): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_arraymodel/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_arraymodel/post.py index ec93e81485e..c62d2aa6b6a 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_arraymodel/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_arraymodel/post.py @@ -94,6 +94,21 @@ def _array_model_oapg( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def _array_model_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _array_model_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, @@ -158,7 +173,7 @@ class ArrayModel(BaseApi): @typing.overload def array_model( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -172,7 +187,7 @@ def array_model( @typing.overload def array_model( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -182,6 +197,21 @@ def array_model( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def array_model( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def array_model( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, @@ -209,7 +239,7 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -223,7 +253,7 @@ def post( @typing.overload def post( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -233,6 +263,21 @@ def post( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_arraymodel/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_arraymodel/post.pyi index 98a33b6b462..c85afbb8bca 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_arraymodel/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_arraymodel/post.pyi @@ -63,6 +63,21 @@ class BaseApi(api_client.Api): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def _array_model_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _array_model_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, @@ -127,7 +142,7 @@ class ArrayModel(BaseApi): @typing.overload def array_model( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -141,7 +156,7 @@ class ArrayModel(BaseApi): @typing.overload def array_model( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -151,6 +166,21 @@ class ArrayModel(BaseApi): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def array_model( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def array_model( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, @@ -178,7 +208,7 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -192,7 +222,7 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -202,6 +232,21 @@ class ApiForpost(BaseApi): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_boolean/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_boolean/post.py index e00ce3c04f6..0edab28fc3d 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_boolean/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_boolean/post.py @@ -92,6 +92,21 @@ def _boolean_oapg( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def _boolean_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, bool, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _boolean_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, bool, schemas.Unset] = schemas.unset, @@ -156,7 +171,7 @@ class Boolean(BaseApi): @typing.overload def boolean( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, bool, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -170,7 +185,7 @@ def boolean( @typing.overload def boolean( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, bool, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -180,6 +195,21 @@ def boolean( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def boolean( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, bool, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def boolean( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, bool, schemas.Unset] = schemas.unset, @@ -207,7 +237,7 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, bool, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -221,7 +251,7 @@ def post( @typing.overload def post( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, bool, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -231,6 +261,21 @@ def post( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, bool, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, bool, schemas.Unset] = schemas.unset, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_boolean/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_boolean/post.pyi index 69851d26ec8..e975f18223c 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_boolean/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_boolean/post.pyi @@ -61,6 +61,21 @@ class BaseApi(api_client.Api): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def _boolean_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, bool, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _boolean_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, bool, schemas.Unset] = schemas.unset, @@ -125,7 +140,7 @@ class Boolean(BaseApi): @typing.overload def boolean( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, bool, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -139,7 +154,7 @@ class Boolean(BaseApi): @typing.overload def boolean( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, bool, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -149,6 +164,21 @@ class Boolean(BaseApi): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def boolean( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, bool, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def boolean( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, bool, schemas.Unset] = schemas.unset, @@ -176,7 +206,7 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, bool, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -190,7 +220,7 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, bool, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -200,6 +230,21 @@ class ApiForpost(BaseApi): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, bool, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, bool, schemas.Unset] = schemas.unset, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_composed_one_of_number_with_validations/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_composed_one_of_number_with_validations/post.py index ec86a2cfd2c..e5451faa85b 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_composed_one_of_number_with_validations/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_composed_one_of_number_with_validations/post.py @@ -94,6 +94,21 @@ def _composed_one_of_different_types_oapg( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def _composed_one_of_different_types_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _composed_one_of_different_types_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, @@ -158,7 +173,7 @@ class ComposedOneOfDifferentTypes(BaseApi): @typing.overload def composed_one_of_different_types( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -172,7 +187,7 @@ def composed_one_of_different_types( @typing.overload def composed_one_of_different_types( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -182,6 +197,21 @@ def composed_one_of_different_types( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def composed_one_of_different_types( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def composed_one_of_different_types( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, @@ -209,7 +239,7 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -223,7 +253,7 @@ def post( @typing.overload def post( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -233,6 +263,21 @@ def post( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_composed_one_of_number_with_validations/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_composed_one_of_number_with_validations/post.pyi index 326940c8ab3..a9df5f6e5d1 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_composed_one_of_number_with_validations/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_composed_one_of_number_with_validations/post.pyi @@ -63,6 +63,21 @@ class BaseApi(api_client.Api): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def _composed_one_of_different_types_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _composed_one_of_different_types_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, @@ -127,7 +142,7 @@ class ComposedOneOfDifferentTypes(BaseApi): @typing.overload def composed_one_of_different_types( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -141,7 +156,7 @@ class ComposedOneOfDifferentTypes(BaseApi): @typing.overload def composed_one_of_different_types( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -151,6 +166,21 @@ class ComposedOneOfDifferentTypes(BaseApi): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def composed_one_of_different_types( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def composed_one_of_different_types( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, @@ -178,7 +208,7 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -192,7 +222,7 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -202,6 +232,21 @@ class ApiForpost(BaseApi): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_enum/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_enum/post.py index 9fd32ddb7cb..4fc07c993f2 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_enum/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_enum/post.py @@ -94,6 +94,21 @@ def _string_enum_oapg( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def _string_enum_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _string_enum_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, @@ -158,7 +173,7 @@ class StringEnum(BaseApi): @typing.overload def string_enum( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -172,7 +187,7 @@ def string_enum( @typing.overload def string_enum( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -182,6 +197,21 @@ def string_enum( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def string_enum( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def string_enum( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, @@ -209,7 +239,7 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -223,7 +253,7 @@ def post( @typing.overload def post( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -233,6 +263,21 @@ def post( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_enum/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_enum/post.pyi index 99ad7a07eb3..19866c671df 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_enum/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_enum/post.pyi @@ -63,6 +63,21 @@ class BaseApi(api_client.Api): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def _string_enum_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _string_enum_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, @@ -127,7 +142,7 @@ class StringEnum(BaseApi): @typing.overload def string_enum( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -141,7 +156,7 @@ class StringEnum(BaseApi): @typing.overload def string_enum( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -151,6 +166,21 @@ class StringEnum(BaseApi): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def string_enum( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def string_enum( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, @@ -178,7 +208,7 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -192,7 +222,7 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -202,6 +232,21 @@ class ApiForpost(BaseApi): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_mammal/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_mammal/post.py index b4752821461..06f9ed50b21 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_mammal/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_mammal/post.py @@ -95,6 +95,21 @@ def _mammal_oapg( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def _mammal_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _mammal_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -161,7 +176,7 @@ class Mammal(BaseApi): @typing.overload def mammal( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -175,7 +190,7 @@ def mammal( @typing.overload def mammal( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -185,6 +200,21 @@ def mammal( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def mammal( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def mammal( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -212,7 +242,7 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -226,7 +256,7 @@ def post( @typing.overload def post( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -236,6 +266,21 @@ def post( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_mammal/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_mammal/post.pyi index d8a3e98a0b6..d60f538efb1 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_mammal/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_mammal/post.pyi @@ -63,6 +63,21 @@ class BaseApi(api_client.Api): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def _mammal_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _mammal_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -129,7 +144,7 @@ class Mammal(BaseApi): @typing.overload def mammal( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -143,7 +158,7 @@ class Mammal(BaseApi): @typing.overload def mammal( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -153,6 +168,21 @@ class Mammal(BaseApi): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def mammal( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def mammal( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -180,7 +210,7 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -194,7 +224,7 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -204,6 +234,21 @@ class ApiForpost(BaseApi): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_number/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_number/post.py index c245cdcea10..7e3b753bf2b 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_number/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_number/post.py @@ -94,6 +94,21 @@ def _number_with_validations_oapg( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def _number_with_validations_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _number_with_validations_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, @@ -158,7 +173,7 @@ class NumberWithValidations(BaseApi): @typing.overload def number_with_validations( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -172,7 +187,7 @@ def number_with_validations( @typing.overload def number_with_validations( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -182,6 +197,21 @@ def number_with_validations( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def number_with_validations( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def number_with_validations( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, @@ -209,7 +239,7 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -223,7 +253,7 @@ def post( @typing.overload def post( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -233,6 +263,21 @@ def post( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_number/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_number/post.pyi index 0899f46445f..69586476c0b 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_number/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_number/post.pyi @@ -63,6 +63,21 @@ class BaseApi(api_client.Api): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def _number_with_validations_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _number_with_validations_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, @@ -127,7 +142,7 @@ class NumberWithValidations(BaseApi): @typing.overload def number_with_validations( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -141,7 +156,7 @@ class NumberWithValidations(BaseApi): @typing.overload def number_with_validations( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -151,6 +166,21 @@ class NumberWithValidations(BaseApi): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def number_with_validations( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def number_with_validations( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, @@ -178,7 +208,7 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -192,7 +222,7 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -202,6 +232,21 @@ class ApiForpost(BaseApi): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_object_model_with_ref_props/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_object_model_with_ref_props/post.py index 7336495317e..39fe1627444 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_object_model_with_ref_props/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_object_model_with_ref_props/post.py @@ -94,6 +94,21 @@ def _object_model_with_ref_props_oapg( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def _object_model_with_ref_props_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _object_model_with_ref_props_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, @@ -158,7 +173,7 @@ class ObjectModelWithRefProps(BaseApi): @typing.overload def object_model_with_ref_props( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -172,7 +187,7 @@ def object_model_with_ref_props( @typing.overload def object_model_with_ref_props( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -182,6 +197,21 @@ def object_model_with_ref_props( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def object_model_with_ref_props( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def object_model_with_ref_props( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, @@ -209,7 +239,7 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -223,7 +253,7 @@ def post( @typing.overload def post( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -233,6 +263,21 @@ def post( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_object_model_with_ref_props/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_object_model_with_ref_props/post.pyi index 3d9847f044d..09735f8c8f6 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_object_model_with_ref_props/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_object_model_with_ref_props/post.pyi @@ -63,6 +63,21 @@ class BaseApi(api_client.Api): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def _object_model_with_ref_props_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _object_model_with_ref_props_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, @@ -127,7 +142,7 @@ class ObjectModelWithRefProps(BaseApi): @typing.overload def object_model_with_ref_props( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -141,7 +156,7 @@ class ObjectModelWithRefProps(BaseApi): @typing.overload def object_model_with_ref_props( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -151,6 +166,21 @@ class ObjectModelWithRefProps(BaseApi): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def object_model_with_ref_props( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def object_model_with_ref_props( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, @@ -178,7 +208,7 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -192,7 +222,7 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -202,6 +232,21 @@ class ApiForpost(BaseApi): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_string/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_string/post.py index 06f83753a46..e7a457b9b8e 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_string/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_string/post.py @@ -92,6 +92,21 @@ def _string_oapg( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def _string_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, str, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _string_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, str, schemas.Unset] = schemas.unset, @@ -156,7 +171,7 @@ class String(BaseApi): @typing.overload def string( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, str, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -170,7 +185,7 @@ def string( @typing.overload def string( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, str, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -180,6 +195,21 @@ def string( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def string( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, str, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def string( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, str, schemas.Unset] = schemas.unset, @@ -207,7 +237,7 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, str, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -221,7 +251,7 @@ def post( @typing.overload def post( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, str, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -231,6 +261,21 @@ def post( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, str, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, str, schemas.Unset] = schemas.unset, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_string/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_string/post.pyi index 66567eb608d..fe90c24dd8d 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_string/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_string/post.pyi @@ -61,6 +61,21 @@ class BaseApi(api_client.Api): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def _string_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, str, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _string_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, str, schemas.Unset] = schemas.unset, @@ -125,7 +140,7 @@ class String(BaseApi): @typing.overload def string( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, str, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -139,7 +154,7 @@ class String(BaseApi): @typing.overload def string( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, str, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -149,6 +164,21 @@ class String(BaseApi): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def string( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, str, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def string( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, str, schemas.Unset] = schemas.unset, @@ -176,7 +206,7 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, str, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -190,7 +220,7 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, str, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -200,6 +230,21 @@ class ApiForpost(BaseApi): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, str, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, str, schemas.Unset] = schemas.unset, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_response_without_schema/get.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_response_without_schema/get.py index 1cf297a5f82..14aaa153f4b 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_response_without_schema/get.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_response_without_schema/get.py @@ -79,6 +79,19 @@ def _response_without_schema_oapg( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def _response_without_schema_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _response_without_schema_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -131,7 +144,7 @@ class ResponseWithoutSchema(BaseApi): @typing.overload def response_without_schema( - self: api_client.Api, + self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -143,7 +156,7 @@ def response_without_schema( @typing.overload def response_without_schema( - self: api_client.Api, + self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -151,6 +164,19 @@ def response_without_schema( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def response_without_schema( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def response_without_schema( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -174,7 +200,7 @@ class ApiForget(BaseApi): @typing.overload def get( - self: api_client.Api, + self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -186,7 +212,7 @@ def get( @typing.overload def get( - self: api_client.Api, + self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -194,6 +220,19 @@ def get( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def get( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def get( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_response_without_schema/get.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_response_without_schema/get.pyi index 8b302b4b503..057659f13d7 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_response_without_schema/get.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_response_without_schema/get.pyi @@ -55,6 +55,19 @@ class BaseApi(api_client.Api): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def _response_without_schema_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _response_without_schema_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -107,7 +120,7 @@ class ResponseWithoutSchema(BaseApi): @typing.overload def response_without_schema( - self: api_client.Api, + self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -119,7 +132,7 @@ class ResponseWithoutSchema(BaseApi): @typing.overload def response_without_schema( - self: api_client.Api, + self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -127,6 +140,19 @@ class ResponseWithoutSchema(BaseApi): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def response_without_schema( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def response_without_schema( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -150,7 +176,7 @@ class ApiForget(BaseApi): @typing.overload def get( - self: api_client.Api, + self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -162,7 +188,7 @@ class ApiForget(BaseApi): @typing.overload def get( - self: api_client.Api, + self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -170,6 +196,19 @@ class ApiForget(BaseApi): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def get( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def get( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_test_query_paramters/put.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_test_query_paramters/put.py index d7235857f02..61b342d03f3 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_test_query_paramters/put.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_test_query_paramters/put.py @@ -248,6 +248,19 @@ def _query_parameter_collection_format_oapg( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def _query_parameter_collection_format_oapg( + self: api_client.Api, + query_params: RequestQueryParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _query_parameter_collection_format_oapg( self: api_client.Api, query_params: RequestQueryParams = frozendict.frozendict(), @@ -312,7 +325,7 @@ class QueryParameterCollectionFormat(BaseApi): @typing.overload def query_parameter_collection_format( - self: api_client.Api, + self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -324,7 +337,7 @@ def query_parameter_collection_format( @typing.overload def query_parameter_collection_format( - self: api_client.Api, + self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -332,6 +345,19 @@ def query_parameter_collection_format( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def query_parameter_collection_format( + self: BaseApi, + query_params: RequestQueryParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def query_parameter_collection_format( self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), @@ -355,7 +381,7 @@ class ApiForput(BaseApi): @typing.overload def put( - self: api_client.Api, + self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -367,7 +393,7 @@ def put( @typing.overload def put( - self: api_client.Api, + self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -375,6 +401,19 @@ def put( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def put( + self: BaseApi, + query_params: RequestQueryParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def put( self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_test_query_paramters/put.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_test_query_paramters/put.pyi index d349cf75f13..d90845a9c8d 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_test_query_paramters/put.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_test_query_paramters/put.pyi @@ -169,6 +169,19 @@ class BaseApi(api_client.Api): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def _query_parameter_collection_format_oapg( + self: api_client.Api, + query_params: RequestQueryParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _query_parameter_collection_format_oapg( self: api_client.Api, query_params: RequestQueryParams = frozendict.frozendict(), @@ -233,7 +246,7 @@ class QueryParameterCollectionFormat(BaseApi): @typing.overload def query_parameter_collection_format( - self: api_client.Api, + self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -245,7 +258,7 @@ class QueryParameterCollectionFormat(BaseApi): @typing.overload def query_parameter_collection_format( - self: api_client.Api, + self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -253,6 +266,19 @@ class QueryParameterCollectionFormat(BaseApi): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def query_parameter_collection_format( + self: BaseApi, + query_params: RequestQueryParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def query_parameter_collection_format( self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), @@ -276,7 +302,7 @@ class ApiForput(BaseApi): @typing.overload def put( - self: api_client.Api, + self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -288,7 +314,7 @@ class ApiForput(BaseApi): @typing.overload def put( - self: api_client.Api, + self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -296,6 +322,19 @@ class ApiForput(BaseApi): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def put( + self: BaseApi, + query_params: RequestQueryParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def put( self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_download_file/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_download_file/post.py index 0b25ffa042d..19f787279ab 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_download_file/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_download_file/post.py @@ -93,6 +93,21 @@ def _upload_download_file_oapg( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def _upload_download_file_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationOctetStream, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/octet-stream', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _upload_download_file_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationOctetStream, bytes, io.FileIO, io.BufferedReader, ], @@ -160,7 +175,7 @@ class UploadDownloadFile(BaseApi): @typing.overload def upload_download_file( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationOctetStream, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/octet-stream', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -174,7 +189,7 @@ def upload_download_file( @typing.overload def upload_download_file( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationOctetStream, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/octet-stream', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -184,6 +199,21 @@ def upload_download_file( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def upload_download_file( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationOctetStream, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/octet-stream', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def upload_download_file( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationOctetStream, bytes, io.FileIO, io.BufferedReader, ], @@ -211,7 +241,7 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationOctetStream, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/octet-stream', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -225,7 +255,7 @@ def post( @typing.overload def post( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationOctetStream, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/octet-stream', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -235,6 +265,21 @@ def post( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationOctetStream, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/octet-stream', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationOctetStream, bytes, io.FileIO, io.BufferedReader, ], diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_download_file/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_download_file/post.pyi index ed58c54108f..5f4e4e727cb 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_download_file/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_download_file/post.pyi @@ -61,6 +61,21 @@ class BaseApi(api_client.Api): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def _upload_download_file_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationOctetStream, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/octet-stream', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _upload_download_file_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationOctetStream, bytes, io.FileIO, io.BufferedReader, ], @@ -128,7 +143,7 @@ class UploadDownloadFile(BaseApi): @typing.overload def upload_download_file( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationOctetStream, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/octet-stream', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -142,7 +157,7 @@ class UploadDownloadFile(BaseApi): @typing.overload def upload_download_file( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationOctetStream, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/octet-stream', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -152,6 +167,21 @@ class UploadDownloadFile(BaseApi): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def upload_download_file( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationOctetStream, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/octet-stream', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def upload_download_file( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationOctetStream, bytes, io.FileIO, io.BufferedReader, ], @@ -179,7 +209,7 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationOctetStream, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/octet-stream', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -193,7 +223,7 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationOctetStream, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/octet-stream', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -203,6 +233,21 @@ class ApiForpost(BaseApi): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationOctetStream, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/octet-stream', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationOctetStream, bytes, io.FileIO, io.BufferedReader, ], diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_file/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_file/post.py index a0819bd6b32..9d9644a4b30 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_file/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_file/post.py @@ -158,6 +158,21 @@ def _upload_file_oapg( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def _upload_file_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + content_type: str = 'multipart/form-data', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _upload_file_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, @@ -223,7 +238,7 @@ class UploadFile(BaseApi): @typing.overload def upload_file( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, content_type: str = 'multipart/form-data', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -237,7 +252,7 @@ def upload_file( @typing.overload def upload_file( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, content_type: str = 'multipart/form-data', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -247,6 +262,21 @@ def upload_file( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def upload_file( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + content_type: str = 'multipart/form-data', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def upload_file( self: BaseApi, body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, @@ -274,7 +304,7 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, content_type: str = 'multipart/form-data', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -288,7 +318,7 @@ def post( @typing.overload def post( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, content_type: str = 'multipart/form-data', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -298,6 +328,21 @@ def post( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + content_type: str = 'multipart/form-data', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_file/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_file/post.pyi index a0ac489e74b..0138ad4a0b9 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_file/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_file/post.pyi @@ -127,6 +127,21 @@ class BaseApi(api_client.Api): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def _upload_file_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + content_type: str = 'multipart/form-data', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _upload_file_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, @@ -192,7 +207,7 @@ class UploadFile(BaseApi): @typing.overload def upload_file( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, content_type: str = 'multipart/form-data', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -206,7 +221,7 @@ class UploadFile(BaseApi): @typing.overload def upload_file( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, content_type: str = 'multipart/form-data', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -216,6 +231,21 @@ class UploadFile(BaseApi): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def upload_file( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + content_type: str = 'multipart/form-data', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def upload_file( self: BaseApi, body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, @@ -243,7 +273,7 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, content_type: str = 'multipart/form-data', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -257,7 +287,7 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, content_type: str = 'multipart/form-data', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -267,6 +297,21 @@ class ApiForpost(BaseApi): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + content_type: str = 'multipart/form-data', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_files/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_files/post.py index 183d7f9e676..ee6fa238191 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_files/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_files/post.py @@ -165,6 +165,21 @@ def _upload_files_oapg( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def _upload_files_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + content_type: str = 'multipart/form-data', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _upload_files_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, @@ -230,7 +245,7 @@ class UploadFiles(BaseApi): @typing.overload def upload_files( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, content_type: str = 'multipart/form-data', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -244,7 +259,7 @@ def upload_files( @typing.overload def upload_files( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, content_type: str = 'multipart/form-data', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -254,6 +269,21 @@ def upload_files( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def upload_files( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + content_type: str = 'multipart/form-data', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def upload_files( self: BaseApi, body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, @@ -281,7 +311,7 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, content_type: str = 'multipart/form-data', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -295,7 +325,7 @@ def post( @typing.overload def post( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, content_type: str = 'multipart/form-data', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -305,6 +335,21 @@ def post( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + content_type: str = 'multipart/form-data', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_files/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_files/post.pyi index d0ff3cd5e16..eb36df08f38 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_files/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_files/post.pyi @@ -134,6 +134,21 @@ class BaseApi(api_client.Api): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def _upload_files_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + content_type: str = 'multipart/form-data', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _upload_files_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, @@ -199,7 +214,7 @@ class UploadFiles(BaseApi): @typing.overload def upload_files( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, content_type: str = 'multipart/form-data', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -213,7 +228,7 @@ class UploadFiles(BaseApi): @typing.overload def upload_files( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, content_type: str = 'multipart/form-data', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -223,6 +238,21 @@ class UploadFiles(BaseApi): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def upload_files( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + content_type: str = 'multipart/form-data', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def upload_files( self: BaseApi, body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, @@ -250,7 +280,7 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, content_type: str = 'multipart/form-data', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -264,7 +294,7 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, content_type: str = 'multipart/form-data', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -274,6 +304,21 @@ class ApiForpost(BaseApi): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + content_type: str = 'multipart/form-data', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/foo/get.py b/samples/openapi3/client/petstore/python/petstore_api/paths/foo/get.py index f77ffbba8c2..81a138114ec 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/foo/get.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/foo/get.py @@ -132,6 +132,19 @@ def _foo_get_oapg( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def _foo_get_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseForDefault, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _foo_get_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -187,7 +200,7 @@ class FooGet(BaseApi): @typing.overload def foo_get( - self: api_client.Api, + self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -199,7 +212,7 @@ def foo_get( @typing.overload def foo_get( - self: api_client.Api, + self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -207,6 +220,19 @@ def foo_get( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def foo_get( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseForDefault, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def foo_get( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -230,7 +256,7 @@ class ApiForget(BaseApi): @typing.overload def get( - self: api_client.Api, + self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -242,7 +268,7 @@ def get( @typing.overload def get( - self: api_client.Api, + self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -250,6 +276,19 @@ def get( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def get( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseForDefault, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def get( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/foo/get.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/foo/get.pyi index 2072f8dcbfd..54a68bff81c 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/foo/get.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/foo/get.pyi @@ -109,6 +109,19 @@ class BaseApi(api_client.Api): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def _foo_get_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseForDefault, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _foo_get_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -164,7 +177,7 @@ class FooGet(BaseApi): @typing.overload def foo_get( - self: api_client.Api, + self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -176,7 +189,7 @@ class FooGet(BaseApi): @typing.overload def foo_get( - self: api_client.Api, + self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -184,6 +197,19 @@ class FooGet(BaseApi): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def foo_get( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseForDefault, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def foo_get( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -207,7 +233,7 @@ class ApiForget(BaseApi): @typing.overload def get( - self: api_client.Api, + self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -219,7 +245,7 @@ class ApiForget(BaseApi): @typing.overload def get( - self: api_client.Api, + self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -227,6 +253,19 @@ class ApiForget(BaseApi): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def get( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseForDefault, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def get( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/pet/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/pet/post.py index 2c597c9e884..fac2972e86a 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/pet/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/pet/post.py @@ -116,6 +116,22 @@ def _add_pet_oapg( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def _add_pet_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], + content_type: str = 'application/json', + host_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _add_pet_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], @@ -185,7 +201,7 @@ class AddPet(BaseApi): @typing.overload def add_pet( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], content_type: str = 'application/json', host_index: typing.Optional[int] = None, @@ -200,7 +216,7 @@ def add_pet( @typing.overload def add_pet( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], content_type: str = 'application/json', host_index: typing.Optional[int] = None, @@ -210,6 +226,22 @@ def add_pet( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def add_pet( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], + content_type: str = 'application/json', + host_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def add_pet( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], @@ -238,7 +270,7 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], content_type: str = 'application/json', host_index: typing.Optional[int] = None, @@ -253,7 +285,7 @@ def post( @typing.overload def post( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], content_type: str = 'application/json', host_index: typing.Optional[int] = None, @@ -263,6 +295,22 @@ def post( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], + content_type: str = 'application/json', + host_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/pet/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/pet/post.pyi index 57d213cb917..b768d554421 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/pet/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/pet/post.pyi @@ -61,6 +61,22 @@ class BaseApi(api_client.Api): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def _add_pet_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], + content_type: str = 'application/json', + host_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _add_pet_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], @@ -130,7 +146,7 @@ class AddPet(BaseApi): @typing.overload def add_pet( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], content_type: str = 'application/json', host_index: typing.Optional[int] = None, @@ -145,7 +161,7 @@ class AddPet(BaseApi): @typing.overload def add_pet( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], content_type: str = 'application/json', host_index: typing.Optional[int] = None, @@ -155,6 +171,22 @@ class AddPet(BaseApi): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def add_pet( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], + content_type: str = 'application/json', + host_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def add_pet( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], @@ -183,7 +215,7 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], content_type: str = 'application/json', host_index: typing.Optional[int] = None, @@ -198,7 +230,7 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], content_type: str = 'application/json', host_index: typing.Optional[int] = None, @@ -208,6 +240,22 @@ class ApiForpost(BaseApi): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], + content_type: str = 'application/json', + host_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/pet/put.py b/samples/openapi3/client/petstore/python/petstore_api/paths/pet/put.py index 032e00f5052..c8ae05ea261 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/pet/put.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/pet/put.py @@ -130,6 +130,23 @@ def _update_pet_oapg( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def _update_pet_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], + content_type: str = 'application/json', + host_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _update_pet_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], @@ -200,7 +217,7 @@ class UpdatePet(BaseApi): @typing.overload def update_pet( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], content_type: str = 'application/json', host_index: typing.Optional[int] = None, @@ -216,7 +233,7 @@ def update_pet( @typing.overload def update_pet( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], content_type: str = 'application/json', host_index: typing.Optional[int] = None, @@ -226,6 +243,23 @@ def update_pet( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def update_pet( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], + content_type: str = 'application/json', + host_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def update_pet( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], @@ -255,7 +289,7 @@ class ApiForput(BaseApi): @typing.overload def put( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], content_type: str = 'application/json', host_index: typing.Optional[int] = None, @@ -271,7 +305,7 @@ def put( @typing.overload def put( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], content_type: str = 'application/json', host_index: typing.Optional[int] = None, @@ -281,6 +315,23 @@ def put( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def put( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], + content_type: str = 'application/json', + host_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def put( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/pet/put.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/pet/put.pyi index 9373c7ace08..eae3b422d06 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/pet/put.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/pet/put.pyi @@ -62,6 +62,23 @@ class BaseApi(api_client.Api): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def _update_pet_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], + content_type: str = 'application/json', + host_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _update_pet_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], @@ -132,7 +149,7 @@ class UpdatePet(BaseApi): @typing.overload def update_pet( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], content_type: str = 'application/json', host_index: typing.Optional[int] = None, @@ -148,7 +165,7 @@ class UpdatePet(BaseApi): @typing.overload def update_pet( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], content_type: str = 'application/json', host_index: typing.Optional[int] = None, @@ -158,6 +175,23 @@ class UpdatePet(BaseApi): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def update_pet( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], + content_type: str = 'application/json', + host_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def update_pet( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], @@ -187,7 +221,7 @@ class ApiForput(BaseApi): @typing.overload def put( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], content_type: str = 'application/json', host_index: typing.Optional[int] = None, @@ -203,7 +237,7 @@ class ApiForput(BaseApi): @typing.overload def put( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], content_type: str = 'application/json', host_index: typing.Optional[int] = None, @@ -213,6 +247,23 @@ class ApiForput(BaseApi): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def put( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], + content_type: str = 'application/json', + host_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def put( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_find_by_status/get.py b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_find_by_status/get.py index faa2636ad66..9c43140c9e9 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_find_by_status/get.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_find_by_status/get.py @@ -228,6 +228,21 @@ def _find_pets_by_status_oapg( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def _find_pets_by_status_oapg( + self: api_client.Api, + query_params: RequestQueryParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _find_pets_by_status_oapg( self: api_client.Api, query_params: RequestQueryParams = frozendict.frozendict(), @@ -297,7 +312,7 @@ class FindPetsByStatus(BaseApi): @typing.overload def find_pets_by_status( - self: api_client.Api, + self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -311,7 +326,7 @@ def find_pets_by_status( @typing.overload def find_pets_by_status( - self: api_client.Api, + self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -320,6 +335,21 @@ def find_pets_by_status( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def find_pets_by_status( + self: BaseApi, + query_params: RequestQueryParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def find_pets_by_status( self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), @@ -346,7 +376,7 @@ class ApiForget(BaseApi): @typing.overload def get( - self: api_client.Api, + self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -360,7 +390,7 @@ def get( @typing.overload def get( - self: api_client.Api, + self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -369,6 +399,21 @@ def get( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def get( + self: BaseApi, + query_params: RequestQueryParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def get( self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_find_by_status/get.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_find_by_status/get.pyi index 46e44dee13b..db85047ef73 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_find_by_status/get.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_find_by_status/get.pyi @@ -153,6 +153,21 @@ class BaseApi(api_client.Api): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def _find_pets_by_status_oapg( + self: api_client.Api, + query_params: RequestQueryParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _find_pets_by_status_oapg( self: api_client.Api, query_params: RequestQueryParams = frozendict.frozendict(), @@ -222,7 +237,7 @@ class FindPetsByStatus(BaseApi): @typing.overload def find_pets_by_status( - self: api_client.Api, + self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -236,7 +251,7 @@ class FindPetsByStatus(BaseApi): @typing.overload def find_pets_by_status( - self: api_client.Api, + self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -245,6 +260,21 @@ class FindPetsByStatus(BaseApi): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def find_pets_by_status( + self: BaseApi, + query_params: RequestQueryParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def find_pets_by_status( self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), @@ -271,7 +301,7 @@ class ApiForget(BaseApi): @typing.overload def get( - self: api_client.Api, + self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -285,7 +315,7 @@ class ApiForget(BaseApi): @typing.overload def get( - self: api_client.Api, + self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -294,6 +324,21 @@ class ApiForget(BaseApi): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def get( + self: BaseApi, + query_params: RequestQueryParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def get( self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_find_by_tags/get.py b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_find_by_tags/get.py index 3d67d112ff4..b42fb444051 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_find_by_tags/get.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_find_by_tags/get.py @@ -203,6 +203,21 @@ def _find_pets_by_tags_oapg( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def _find_pets_by_tags_oapg( + self: api_client.Api, + query_params: RequestQueryParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _find_pets_by_tags_oapg( self: api_client.Api, query_params: RequestQueryParams = frozendict.frozendict(), @@ -272,7 +287,7 @@ class FindPetsByTags(BaseApi): @typing.overload def find_pets_by_tags( - self: api_client.Api, + self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -286,7 +301,7 @@ def find_pets_by_tags( @typing.overload def find_pets_by_tags( - self: api_client.Api, + self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -295,6 +310,21 @@ def find_pets_by_tags( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def find_pets_by_tags( + self: BaseApi, + query_params: RequestQueryParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def find_pets_by_tags( self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), @@ -321,7 +351,7 @@ class ApiForget(BaseApi): @typing.overload def get( - self: api_client.Api, + self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -335,7 +365,7 @@ def get( @typing.overload def get( - self: api_client.Api, + self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -344,6 +374,21 @@ def get( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def get( + self: BaseApi, + query_params: RequestQueryParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def get( self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_find_by_tags/get.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_find_by_tags/get.pyi index da9603f55dd..96a25b931a8 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_find_by_tags/get.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_find_by_tags/get.pyi @@ -136,6 +136,21 @@ class BaseApi(api_client.Api): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def _find_pets_by_tags_oapg( + self: api_client.Api, + query_params: RequestQueryParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _find_pets_by_tags_oapg( self: api_client.Api, query_params: RequestQueryParams = frozendict.frozendict(), @@ -205,7 +220,7 @@ class FindPetsByTags(BaseApi): @typing.overload def find_pets_by_tags( - self: api_client.Api, + self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -219,7 +234,7 @@ class FindPetsByTags(BaseApi): @typing.overload def find_pets_by_tags( - self: api_client.Api, + self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -228,6 +243,21 @@ class FindPetsByTags(BaseApi): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def find_pets_by_tags( + self: BaseApi, + query_params: RequestQueryParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def find_pets_by_tags( self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), @@ -254,7 +284,7 @@ class ApiForget(BaseApi): @typing.overload def get( - self: api_client.Api, + self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -268,7 +298,7 @@ class ApiForget(BaseApi): @typing.overload def get( - self: api_client.Api, + self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -277,6 +307,21 @@ class ApiForget(BaseApi): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def get( + self: BaseApi, + query_params: RequestQueryParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def get( self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/delete.py b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/delete.py index f0626e5573d..dca7feb92a9 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/delete.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/delete.py @@ -124,6 +124,20 @@ def _delete_pet_oapg( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def _delete_pet_oapg( + self: api_client.Api, + header_params: RequestHeaderParams = frozendict.frozendict(), + path_params: RequestPathParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _delete_pet_oapg( self: api_client.Api, header_params: RequestHeaderParams = frozendict.frozendict(), @@ -198,7 +212,7 @@ class DeletePet(BaseApi): @typing.overload def delete_pet( - self: api_client.Api, + self: BaseApi, header_params: RequestHeaderParams = frozendict.frozendict(), path_params: RequestPathParams = frozendict.frozendict(), stream: bool = False, @@ -211,7 +225,7 @@ def delete_pet( @typing.overload def delete_pet( - self: api_client.Api, + self: BaseApi, header_params: RequestHeaderParams = frozendict.frozendict(), path_params: RequestPathParams = frozendict.frozendict(), stream: bool = False, @@ -220,6 +234,20 @@ def delete_pet( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def delete_pet( + self: BaseApi, + header_params: RequestHeaderParams = frozendict.frozendict(), + path_params: RequestPathParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def delete_pet( self: BaseApi, header_params: RequestHeaderParams = frozendict.frozendict(), @@ -245,7 +273,7 @@ class ApiFordelete(BaseApi): @typing.overload def delete( - self: api_client.Api, + self: BaseApi, header_params: RequestHeaderParams = frozendict.frozendict(), path_params: RequestPathParams = frozendict.frozendict(), stream: bool = False, @@ -258,7 +286,7 @@ def delete( @typing.overload def delete( - self: api_client.Api, + self: BaseApi, header_params: RequestHeaderParams = frozendict.frozendict(), path_params: RequestPathParams = frozendict.frozendict(), stream: bool = False, @@ -267,6 +295,20 @@ def delete( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def delete( + self: BaseApi, + header_params: RequestHeaderParams = frozendict.frozendict(), + path_params: RequestPathParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def delete( self: BaseApi, header_params: RequestHeaderParams = frozendict.frozendict(), diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/delete.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/delete.pyi index 3fe418de98a..9a396e782a5 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/delete.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/delete.pyi @@ -57,6 +57,20 @@ class BaseApi(api_client.Api): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def _delete_pet_oapg( + self: api_client.Api, + header_params: RequestHeaderParams = frozendict.frozendict(), + path_params: RequestPathParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _delete_pet_oapg( self: api_client.Api, header_params: RequestHeaderParams = frozendict.frozendict(), @@ -131,7 +145,7 @@ class DeletePet(BaseApi): @typing.overload def delete_pet( - self: api_client.Api, + self: BaseApi, header_params: RequestHeaderParams = frozendict.frozendict(), path_params: RequestPathParams = frozendict.frozendict(), stream: bool = False, @@ -144,7 +158,7 @@ class DeletePet(BaseApi): @typing.overload def delete_pet( - self: api_client.Api, + self: BaseApi, header_params: RequestHeaderParams = frozendict.frozendict(), path_params: RequestPathParams = frozendict.frozendict(), stream: bool = False, @@ -153,6 +167,20 @@ class DeletePet(BaseApi): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def delete_pet( + self: BaseApi, + header_params: RequestHeaderParams = frozendict.frozendict(), + path_params: RequestPathParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def delete_pet( self: BaseApi, header_params: RequestHeaderParams = frozendict.frozendict(), @@ -178,7 +206,7 @@ class ApiFordelete(BaseApi): @typing.overload def delete( - self: api_client.Api, + self: BaseApi, header_params: RequestHeaderParams = frozendict.frozendict(), path_params: RequestPathParams = frozendict.frozendict(), stream: bool = False, @@ -191,7 +219,7 @@ class ApiFordelete(BaseApi): @typing.overload def delete( - self: api_client.Api, + self: BaseApi, header_params: RequestHeaderParams = frozendict.frozendict(), path_params: RequestPathParams = frozendict.frozendict(), stream: bool = False, @@ -200,6 +228,20 @@ class ApiFordelete(BaseApi): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def delete( + self: BaseApi, + header_params: RequestHeaderParams = frozendict.frozendict(), + path_params: RequestPathParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def delete( self: BaseApi, header_params: RequestHeaderParams = frozendict.frozendict(), diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/get.py b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/get.py index 2969af09248..87835a5d15c 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/get.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/get.py @@ -144,6 +144,22 @@ def _get_pet_by_id_oapg( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def _get_pet_by_id_oapg( + self: api_client.Api, + path_params: RequestPathParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _get_pet_by_id_oapg( self: api_client.Api, path_params: RequestPathParams = frozendict.frozendict(), @@ -214,7 +230,7 @@ class GetPetById(BaseApi): @typing.overload def get_pet_by_id( - self: api_client.Api, + self: BaseApi, path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -229,7 +245,7 @@ def get_pet_by_id( @typing.overload def get_pet_by_id( - self: api_client.Api, + self: BaseApi, path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -238,6 +254,22 @@ def get_pet_by_id( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def get_pet_by_id( + self: BaseApi, + path_params: RequestPathParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def get_pet_by_id( self: BaseApi, path_params: RequestPathParams = frozendict.frozendict(), @@ -265,7 +297,7 @@ class ApiForget(BaseApi): @typing.overload def get( - self: api_client.Api, + self: BaseApi, path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -280,7 +312,7 @@ def get( @typing.overload def get( - self: api_client.Api, + self: BaseApi, path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -289,6 +321,22 @@ def get( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def get( + self: BaseApi, + path_params: RequestPathParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def get( self: BaseApi, path_params: RequestPathParams = frozendict.frozendict(), diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/get.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/get.pyi index 54bc466c4af..d9eeb2f115f 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/get.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/get.pyi @@ -65,6 +65,22 @@ class BaseApi(api_client.Api): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def _get_pet_by_id_oapg( + self: api_client.Api, + path_params: RequestPathParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _get_pet_by_id_oapg( self: api_client.Api, path_params: RequestPathParams = frozendict.frozendict(), @@ -135,7 +151,7 @@ class GetPetById(BaseApi): @typing.overload def get_pet_by_id( - self: api_client.Api, + self: BaseApi, path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -150,7 +166,7 @@ class GetPetById(BaseApi): @typing.overload def get_pet_by_id( - self: api_client.Api, + self: BaseApi, path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -159,6 +175,22 @@ class GetPetById(BaseApi): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def get_pet_by_id( + self: BaseApi, + path_params: RequestPathParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def get_pet_by_id( self: BaseApi, path_params: RequestPathParams = frozendict.frozendict(), @@ -186,7 +218,7 @@ class ApiForget(BaseApi): @typing.overload def get( - self: api_client.Api, + self: BaseApi, path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -201,7 +233,7 @@ class ApiForget(BaseApi): @typing.overload def get( - self: api_client.Api, + self: BaseApi, path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -210,6 +242,22 @@ class ApiForget(BaseApi): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def get( + self: BaseApi, + path_params: RequestPathParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def get( self: BaseApi, path_params: RequestPathParams = frozendict.frozendict(), diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/post.py index ec0908a340b..08377e94a6f 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/post.py @@ -170,6 +170,21 @@ def _update_pet_with_form_oapg( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def _update_pet_with_form_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + path_params: RequestPathParams = frozendict.frozendict(), + content_type: str = 'application/x-www-form-urlencoded', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _update_pet_with_form_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, @@ -247,7 +262,7 @@ class UpdatePetWithForm(BaseApi): @typing.overload def update_pet_with_form( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, path_params: RequestPathParams = frozendict.frozendict(), content_type: str = 'application/x-www-form-urlencoded', @@ -261,7 +276,7 @@ def update_pet_with_form( @typing.overload def update_pet_with_form( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, path_params: RequestPathParams = frozendict.frozendict(), content_type: str = 'application/x-www-form-urlencoded', @@ -271,6 +286,21 @@ def update_pet_with_form( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def update_pet_with_form( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + path_params: RequestPathParams = frozendict.frozendict(), + content_type: str = 'application/x-www-form-urlencoded', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def update_pet_with_form( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, @@ -298,7 +328,7 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, path_params: RequestPathParams = frozendict.frozendict(), content_type: str = 'application/x-www-form-urlencoded', @@ -312,7 +342,7 @@ def post( @typing.overload def post( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, path_params: RequestPathParams = frozendict.frozendict(), content_type: str = 'application/x-www-form-urlencoded', @@ -322,6 +352,21 @@ def post( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + path_params: RequestPathParams = frozendict.frozendict(), + content_type: str = 'application/x-www-form-urlencoded', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/post.pyi index 096fe9433df..fb7cb2a0a55 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/post.pyi @@ -118,6 +118,21 @@ class BaseApi(api_client.Api): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def _update_pet_with_form_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + path_params: RequestPathParams = frozendict.frozendict(), + content_type: str = 'application/x-www-form-urlencoded', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _update_pet_with_form_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, @@ -195,7 +210,7 @@ class UpdatePetWithForm(BaseApi): @typing.overload def update_pet_with_form( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, path_params: RequestPathParams = frozendict.frozendict(), content_type: str = 'application/x-www-form-urlencoded', @@ -209,7 +224,7 @@ class UpdatePetWithForm(BaseApi): @typing.overload def update_pet_with_form( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, path_params: RequestPathParams = frozendict.frozendict(), content_type: str = 'application/x-www-form-urlencoded', @@ -219,6 +234,21 @@ class UpdatePetWithForm(BaseApi): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def update_pet_with_form( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + path_params: RequestPathParams = frozendict.frozendict(), + content_type: str = 'application/x-www-form-urlencoded', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def update_pet_with_form( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, @@ -246,7 +276,7 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, path_params: RequestPathParams = frozendict.frozendict(), content_type: str = 'application/x-www-form-urlencoded', @@ -260,7 +290,7 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, path_params: RequestPathParams = frozendict.frozendict(), content_type: str = 'application/x-www-form-urlencoded', @@ -270,6 +300,21 @@ class ApiForpost(BaseApi): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + path_params: RequestPathParams = frozendict.frozendict(), + content_type: str = 'application/x-www-form-urlencoded', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id_upload_image/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id_upload_image/post.py index ca1876ccd95..aab1ccfd11d 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id_upload_image/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id_upload_image/post.py @@ -184,6 +184,22 @@ def _upload_image_oapg( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def _upload_image_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + path_params: RequestPathParams = frozendict.frozendict(), + content_type: str = 'multipart/form-data', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _upload_image_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, @@ -265,7 +281,7 @@ class UploadImage(BaseApi): @typing.overload def upload_image( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, path_params: RequestPathParams = frozendict.frozendict(), content_type: str = 'multipart/form-data', @@ -280,7 +296,7 @@ def upload_image( @typing.overload def upload_image( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, path_params: RequestPathParams = frozendict.frozendict(), content_type: str = 'multipart/form-data', @@ -291,6 +307,22 @@ def upload_image( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def upload_image( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + path_params: RequestPathParams = frozendict.frozendict(), + content_type: str = 'multipart/form-data', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def upload_image( self: BaseApi, body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, @@ -320,7 +352,7 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, path_params: RequestPathParams = frozendict.frozendict(), content_type: str = 'multipart/form-data', @@ -335,7 +367,7 @@ def post( @typing.overload def post( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, path_params: RequestPathParams = frozendict.frozendict(), content_type: str = 'multipart/form-data', @@ -346,6 +378,22 @@ def post( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + path_params: RequestPathParams = frozendict.frozendict(), + content_type: str = 'multipart/form-data', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id_upload_image/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id_upload_image/post.pyi index 527e63c9404..9ef686f4f1a 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id_upload_image/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id_upload_image/post.pyi @@ -126,6 +126,22 @@ class BaseApi(api_client.Api): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def _upload_image_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + path_params: RequestPathParams = frozendict.frozendict(), + content_type: str = 'multipart/form-data', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _upload_image_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, @@ -207,7 +223,7 @@ class UploadImage(BaseApi): @typing.overload def upload_image( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, path_params: RequestPathParams = frozendict.frozendict(), content_type: str = 'multipart/form-data', @@ -222,7 +238,7 @@ class UploadImage(BaseApi): @typing.overload def upload_image( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, path_params: RequestPathParams = frozendict.frozendict(), content_type: str = 'multipart/form-data', @@ -233,6 +249,22 @@ class UploadImage(BaseApi): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def upload_image( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + path_params: RequestPathParams = frozendict.frozendict(), + content_type: str = 'multipart/form-data', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def upload_image( self: BaseApi, body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, @@ -262,7 +294,7 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, path_params: RequestPathParams = frozendict.frozendict(), content_type: str = 'multipart/form-data', @@ -277,7 +309,7 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, path_params: RequestPathParams = frozendict.frozendict(), content_type: str = 'multipart/form-data', @@ -288,6 +320,22 @@ class ApiForpost(BaseApi): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + path_params: RequestPathParams = frozendict.frozendict(), + content_type: str = 'multipart/form-data', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/store_inventory/get.py b/samples/openapi3/client/petstore/python/petstore_api/paths/store_inventory/get.py index 985f035eeb7..e60a5dd1244 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/store_inventory/get.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/store_inventory/get.py @@ -109,6 +109,19 @@ def _get_inventory_oapg( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def _get_inventory_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _get_inventory_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -162,7 +175,7 @@ class GetInventory(BaseApi): @typing.overload def get_inventory( - self: api_client.Api, + self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -174,7 +187,7 @@ def get_inventory( @typing.overload def get_inventory( - self: api_client.Api, + self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -182,6 +195,19 @@ def get_inventory( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def get_inventory( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def get_inventory( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -205,7 +231,7 @@ class ApiForget(BaseApi): @typing.overload def get( - self: api_client.Api, + self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -217,7 +243,7 @@ def get( @typing.overload def get( - self: api_client.Api, + self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -225,6 +251,19 @@ def get( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def get( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def get( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/store_inventory/get.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/store_inventory/get.pyi index c75408e4baa..291cca6b537 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/store_inventory/get.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/store_inventory/get.pyi @@ -83,6 +83,19 @@ class BaseApi(api_client.Api): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def _get_inventory_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _get_inventory_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -136,7 +149,7 @@ class GetInventory(BaseApi): @typing.overload def get_inventory( - self: api_client.Api, + self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -148,7 +161,7 @@ class GetInventory(BaseApi): @typing.overload def get_inventory( - self: api_client.Api, + self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -156,6 +169,19 @@ class GetInventory(BaseApi): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def get_inventory( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def get_inventory( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -179,7 +205,7 @@ class ApiForget(BaseApi): @typing.overload def get( - self: api_client.Api, + self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -191,7 +217,7 @@ class ApiForget(BaseApi): @typing.overload def get( - self: api_client.Api, + self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -199,6 +225,19 @@ class ApiForget(BaseApi): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def get( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def get( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/store_order/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/store_order/post.py index 7b887b70979..7aac07705c0 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/store_order/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/store_order/post.py @@ -114,6 +114,22 @@ def _place_order_oapg( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def _place_order_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _place_order_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -182,7 +198,7 @@ class PlaceOrder(BaseApi): @typing.overload def place_order( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -197,7 +213,7 @@ def place_order( @typing.overload def place_order( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -207,6 +223,22 @@ def place_order( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def place_order( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def place_order( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -235,7 +267,7 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -250,7 +282,7 @@ def post( @typing.overload def post( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -260,6 +292,22 @@ def post( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/store_order/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/store_order/post.pyi index 285f046662a..664dbe431de 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/store_order/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/store_order/post.pyi @@ -66,6 +66,22 @@ class BaseApi(api_client.Api): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def _place_order_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _place_order_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -134,7 +150,7 @@ class PlaceOrder(BaseApi): @typing.overload def place_order( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -149,7 +165,7 @@ class PlaceOrder(BaseApi): @typing.overload def place_order( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -159,6 +175,22 @@ class PlaceOrder(BaseApi): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def place_order( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def place_order( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -187,7 +219,7 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -202,7 +234,7 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -212,6 +244,22 @@ class ApiForpost(BaseApi): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/store_order_order_id/delete.py b/samples/openapi3/client/petstore/python/petstore_api/paths/store_order_order_id/delete.py index 4944470d09c..7c6cb6a6c8c 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/store_order_order_id/delete.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/store_order_order_id/delete.py @@ -107,6 +107,20 @@ def _delete_order_oapg( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def _delete_order_oapg( + self: api_client.Api, + path_params: RequestPathParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _delete_order_oapg( self: api_client.Api, path_params: RequestPathParams = frozendict.frozendict(), @@ -168,7 +182,7 @@ class DeleteOrder(BaseApi): @typing.overload def delete_order( - self: api_client.Api, + self: BaseApi, path_params: RequestPathParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -181,7 +195,7 @@ def delete_order( @typing.overload def delete_order( - self: api_client.Api, + self: BaseApi, path_params: RequestPathParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -189,6 +203,20 @@ def delete_order( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def delete_order( + self: BaseApi, + path_params: RequestPathParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def delete_order( self: BaseApi, path_params: RequestPathParams = frozendict.frozendict(), @@ -213,7 +241,7 @@ class ApiFordelete(BaseApi): @typing.overload def delete( - self: api_client.Api, + self: BaseApi, path_params: RequestPathParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -226,7 +254,7 @@ def delete( @typing.overload def delete( - self: api_client.Api, + self: BaseApi, path_params: RequestPathParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -234,6 +262,20 @@ def delete( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def delete( + self: BaseApi, + path_params: RequestPathParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def delete( self: BaseApi, path_params: RequestPathParams = frozendict.frozendict(), diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/store_order_order_id/delete.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/store_order_order_id/delete.pyi index 0cdc67de6c1..a05ab61bc8c 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/store_order_order_id/delete.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/store_order_order_id/delete.pyi @@ -53,6 +53,20 @@ class BaseApi(api_client.Api): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def _delete_order_oapg( + self: api_client.Api, + path_params: RequestPathParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _delete_order_oapg( self: api_client.Api, path_params: RequestPathParams = frozendict.frozendict(), @@ -114,7 +128,7 @@ class DeleteOrder(BaseApi): @typing.overload def delete_order( - self: api_client.Api, + self: BaseApi, path_params: RequestPathParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -127,7 +141,7 @@ class DeleteOrder(BaseApi): @typing.overload def delete_order( - self: api_client.Api, + self: BaseApi, path_params: RequestPathParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -135,6 +149,20 @@ class DeleteOrder(BaseApi): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def delete_order( + self: BaseApi, + path_params: RequestPathParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def delete_order( self: BaseApi, path_params: RequestPathParams = frozendict.frozendict(), @@ -159,7 +187,7 @@ class ApiFordelete(BaseApi): @typing.overload def delete( - self: api_client.Api, + self: BaseApi, path_params: RequestPathParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -172,7 +200,7 @@ class ApiFordelete(BaseApi): @typing.overload def delete( - self: api_client.Api, + self: BaseApi, path_params: RequestPathParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -180,6 +208,20 @@ class ApiFordelete(BaseApi): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def delete( + self: BaseApi, + path_params: RequestPathParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def delete( self: BaseApi, path_params: RequestPathParams = frozendict.frozendict(), diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/store_order_order_id/get.py b/samples/openapi3/client/petstore/python/petstore_api/paths/store_order_order_id/get.py index af765169139..fede7756435 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/store_order_order_id/get.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/store_order_order_id/get.py @@ -151,6 +151,22 @@ def _get_order_by_id_oapg( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def _get_order_by_id_oapg( + self: api_client.Api, + path_params: RequestPathParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _get_order_by_id_oapg( self: api_client.Api, path_params: RequestPathParams = frozendict.frozendict(), @@ -220,7 +236,7 @@ class GetOrderById(BaseApi): @typing.overload def get_order_by_id( - self: api_client.Api, + self: BaseApi, path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -235,7 +251,7 @@ def get_order_by_id( @typing.overload def get_order_by_id( - self: api_client.Api, + self: BaseApi, path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -244,6 +260,22 @@ def get_order_by_id( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def get_order_by_id( + self: BaseApi, + path_params: RequestPathParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def get_order_by_id( self: BaseApi, path_params: RequestPathParams = frozendict.frozendict(), @@ -271,7 +303,7 @@ class ApiForget(BaseApi): @typing.overload def get( - self: api_client.Api, + self: BaseApi, path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -286,7 +318,7 @@ def get( @typing.overload def get( - self: api_client.Api, + self: BaseApi, path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -295,6 +327,22 @@ def get( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def get( + self: BaseApi, + path_params: RequestPathParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def get( self: BaseApi, path_params: RequestPathParams = frozendict.frozendict(), diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/store_order_order_id/get.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/store_order_order_id/get.pyi index be4e47489d4..9af96a421ff 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/store_order_order_id/get.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/store_order_order_id/get.pyi @@ -70,6 +70,22 @@ class BaseApi(api_client.Api): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def _get_order_by_id_oapg( + self: api_client.Api, + path_params: RequestPathParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _get_order_by_id_oapg( self: api_client.Api, path_params: RequestPathParams = frozendict.frozendict(), @@ -139,7 +155,7 @@ class GetOrderById(BaseApi): @typing.overload def get_order_by_id( - self: api_client.Api, + self: BaseApi, path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -154,7 +170,7 @@ class GetOrderById(BaseApi): @typing.overload def get_order_by_id( - self: api_client.Api, + self: BaseApi, path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -163,6 +179,22 @@ class GetOrderById(BaseApi): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def get_order_by_id( + self: BaseApi, + path_params: RequestPathParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def get_order_by_id( self: BaseApi, path_params: RequestPathParams = frozendict.frozendict(), @@ -190,7 +222,7 @@ class ApiForget(BaseApi): @typing.overload def get( - self: api_client.Api, + self: BaseApi, path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -205,7 +237,7 @@ class ApiForget(BaseApi): @typing.overload def get( - self: api_client.Api, + self: BaseApi, path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -214,6 +246,22 @@ class ApiForget(BaseApi): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def get( + self: BaseApi, + path_params: RequestPathParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def get( self: BaseApi, path_params: RequestPathParams = frozendict.frozendict(), diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/user/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/user/post.py index 44ef27c3cff..7cf4fe31dc7 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/user/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/user/post.py @@ -83,6 +83,20 @@ def _create_user_oapg( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def _create_user_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseForDefault, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _create_user_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -150,7 +164,7 @@ class CreateUser(BaseApi): @typing.overload def create_user( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], content_type: str = 'application/json', stream: bool = False, @@ -163,7 +177,7 @@ def create_user( @typing.overload def create_user( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], content_type: str = 'application/json', stream: bool = False, @@ -172,6 +186,20 @@ def create_user( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def create_user( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseForDefault, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def create_user( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -197,7 +225,7 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], content_type: str = 'application/json', stream: bool = False, @@ -210,7 +238,7 @@ def post( @typing.overload def post( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], content_type: str = 'application/json', stream: bool = False, @@ -219,6 +247,20 @@ def post( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseForDefault, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/user/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/user/post.pyi index 9160ec01d30..bdca2572f9b 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/user/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/user/post.pyi @@ -57,6 +57,20 @@ class BaseApi(api_client.Api): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def _create_user_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseForDefault, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _create_user_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -124,7 +138,7 @@ class CreateUser(BaseApi): @typing.overload def create_user( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], content_type: str = 'application/json', stream: bool = False, @@ -137,7 +151,7 @@ class CreateUser(BaseApi): @typing.overload def create_user( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], content_type: str = 'application/json', stream: bool = False, @@ -146,6 +160,20 @@ class CreateUser(BaseApi): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def create_user( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseForDefault, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def create_user( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -171,7 +199,7 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], content_type: str = 'application/json', stream: bool = False, @@ -184,7 +212,7 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], content_type: str = 'application/json', stream: bool = False, @@ -193,6 +221,20 @@ class ApiForpost(BaseApi): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseForDefault, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/user_create_with_array/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/user_create_with_array/post.py index ba082b5b9e3..f90bf89339b 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/user_create_with_array/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/user_create_with_array/post.py @@ -108,6 +108,20 @@ def _create_users_with_array_input_oapg( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def _create_users_with_array_input_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseForDefault, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _create_users_with_array_input_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], @@ -175,7 +189,7 @@ class CreateUsersWithArrayInput(BaseApi): @typing.overload def create_users_with_array_input( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], content_type: str = 'application/json', stream: bool = False, @@ -188,7 +202,7 @@ def create_users_with_array_input( @typing.overload def create_users_with_array_input( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], content_type: str = 'application/json', stream: bool = False, @@ -197,6 +211,20 @@ def create_users_with_array_input( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def create_users_with_array_input( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseForDefault, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def create_users_with_array_input( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], @@ -222,7 +250,7 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], content_type: str = 'application/json', stream: bool = False, @@ -235,7 +263,7 @@ def post( @typing.overload def post( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], content_type: str = 'application/json', stream: bool = False, @@ -244,6 +272,20 @@ def post( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseForDefault, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/user_create_with_array/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/user_create_with_array/post.pyi index cd7d3ac9948..7586ca9364a 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/user_create_with_array/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/user_create_with_array/post.pyi @@ -82,6 +82,20 @@ class BaseApi(api_client.Api): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def _create_users_with_array_input_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseForDefault, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _create_users_with_array_input_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], @@ -149,7 +163,7 @@ class CreateUsersWithArrayInput(BaseApi): @typing.overload def create_users_with_array_input( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], content_type: str = 'application/json', stream: bool = False, @@ -162,7 +176,7 @@ class CreateUsersWithArrayInput(BaseApi): @typing.overload def create_users_with_array_input( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], content_type: str = 'application/json', stream: bool = False, @@ -171,6 +185,20 @@ class CreateUsersWithArrayInput(BaseApi): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def create_users_with_array_input( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseForDefault, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def create_users_with_array_input( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], @@ -196,7 +224,7 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], content_type: str = 'application/json', stream: bool = False, @@ -209,7 +237,7 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], content_type: str = 'application/json', stream: bool = False, @@ -218,6 +246,20 @@ class ApiForpost(BaseApi): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseForDefault, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/user_create_with_list/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/user_create_with_list/post.py index 576f1c023db..9917d6adfd9 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/user_create_with_list/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/user_create_with_list/post.py @@ -108,6 +108,20 @@ def _create_users_with_list_input_oapg( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def _create_users_with_list_input_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseForDefault, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _create_users_with_list_input_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], @@ -175,7 +189,7 @@ class CreateUsersWithListInput(BaseApi): @typing.overload def create_users_with_list_input( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], content_type: str = 'application/json', stream: bool = False, @@ -188,7 +202,7 @@ def create_users_with_list_input( @typing.overload def create_users_with_list_input( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], content_type: str = 'application/json', stream: bool = False, @@ -197,6 +211,20 @@ def create_users_with_list_input( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def create_users_with_list_input( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseForDefault, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def create_users_with_list_input( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], @@ -222,7 +250,7 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], content_type: str = 'application/json', stream: bool = False, @@ -235,7 +263,7 @@ def post( @typing.overload def post( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], content_type: str = 'application/json', stream: bool = False, @@ -244,6 +272,20 @@ def post( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseForDefault, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/user_create_with_list/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/user_create_with_list/post.pyi index b27116eda1d..d13d627dda1 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/user_create_with_list/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/user_create_with_list/post.pyi @@ -82,6 +82,20 @@ class BaseApi(api_client.Api): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def _create_users_with_list_input_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseForDefault, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _create_users_with_list_input_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], @@ -149,7 +163,7 @@ class CreateUsersWithListInput(BaseApi): @typing.overload def create_users_with_list_input( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], content_type: str = 'application/json', stream: bool = False, @@ -162,7 +176,7 @@ class CreateUsersWithListInput(BaseApi): @typing.overload def create_users_with_list_input( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], content_type: str = 'application/json', stream: bool = False, @@ -171,6 +185,20 @@ class CreateUsersWithListInput(BaseApi): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def create_users_with_list_input( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseForDefault, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def create_users_with_list_input( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], @@ -196,7 +224,7 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], content_type: str = 'application/json', stream: bool = False, @@ -209,7 +237,7 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], content_type: str = 'application/json', stream: bool = False, @@ -218,6 +246,20 @@ class ApiForpost(BaseApi): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseForDefault, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/user_login/get.py b/samples/openapi3/client/petstore/python/petstore_api/paths/user_login/get.py index 2264f7fa0b1..b3cdc1da253 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/user_login/get.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/user_login/get.py @@ -158,6 +158,21 @@ def _login_user_oapg( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def _login_user_oapg( + self: api_client.Api, + query_params: RequestQueryParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _login_user_oapg( self: api_client.Api, query_params: RequestQueryParams = frozendict.frozendict(), @@ -227,7 +242,7 @@ class LoginUser(BaseApi): @typing.overload def login_user( - self: api_client.Api, + self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -241,7 +256,7 @@ def login_user( @typing.overload def login_user( - self: api_client.Api, + self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -250,6 +265,21 @@ def login_user( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def login_user( + self: BaseApi, + query_params: RequestQueryParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def login_user( self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), @@ -276,7 +306,7 @@ class ApiForget(BaseApi): @typing.overload def get( - self: api_client.Api, + self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -290,7 +320,7 @@ def get( @typing.overload def get( - self: api_client.Api, + self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -299,6 +329,21 @@ def get( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def get( + self: BaseApi, + query_params: RequestQueryParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def get( self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/user_login/get.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/user_login/get.pyi index 0ac2ce80dbb..12d12885ae4 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/user_login/get.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/user_login/get.pyi @@ -65,6 +65,21 @@ class BaseApi(api_client.Api): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def _login_user_oapg( + self: api_client.Api, + query_params: RequestQueryParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _login_user_oapg( self: api_client.Api, query_params: RequestQueryParams = frozendict.frozendict(), @@ -134,7 +149,7 @@ class LoginUser(BaseApi): @typing.overload def login_user( - self: api_client.Api, + self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -148,7 +163,7 @@ class LoginUser(BaseApi): @typing.overload def login_user( - self: api_client.Api, + self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -157,6 +172,21 @@ class LoginUser(BaseApi): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def login_user( + self: BaseApi, + query_params: RequestQueryParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def login_user( self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), @@ -183,7 +213,7 @@ class ApiForget(BaseApi): @typing.overload def get( - self: api_client.Api, + self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -197,7 +227,7 @@ class ApiForget(BaseApi): @typing.overload def get( - self: api_client.Api, + self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -206,6 +236,21 @@ class ApiForget(BaseApi): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def get( + self: BaseApi, + query_params: RequestQueryParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def get( self: BaseApi, query_params: RequestQueryParams = frozendict.frozendict(), diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/user_logout/get.py b/samples/openapi3/client/petstore/python/petstore_api/paths/user_logout/get.py index 55b1326c11c..f089b713816 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/user_logout/get.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/user_logout/get.py @@ -65,6 +65,18 @@ def _logout_user_oapg( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def _logout_user_oapg( + self: api_client.Api, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseForDefault, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _logout_user_oapg( self: api_client.Api, stream: bool = False, @@ -114,7 +126,7 @@ class LogoutUser(BaseApi): @typing.overload def logout_user( - self: api_client.Api, + self: BaseApi, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, @@ -125,13 +137,25 @@ def logout_user( @typing.overload def logout_user( - self: api_client.Api, + self: BaseApi, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[True] = True, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def logout_user( + self: BaseApi, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseForDefault, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def logout_user( self: BaseApi, stream: bool = False, @@ -153,7 +177,7 @@ class ApiForget(BaseApi): @typing.overload def get( - self: api_client.Api, + self: BaseApi, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, @@ -164,13 +188,25 @@ def get( @typing.overload def get( - self: api_client.Api, + self: BaseApi, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[True] = True, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def get( + self: BaseApi, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseForDefault, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def get( self: BaseApi, stream: bool = False, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/user_logout/get.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/user_logout/get.pyi index 9da5f14510d..f2c3c333fdf 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/user_logout/get.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/user_logout/get.pyi @@ -48,6 +48,18 @@ class BaseApi(api_client.Api): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def _logout_user_oapg( + self: api_client.Api, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseForDefault, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _logout_user_oapg( self: api_client.Api, stream: bool = False, @@ -97,7 +109,7 @@ class LogoutUser(BaseApi): @typing.overload def logout_user( - self: api_client.Api, + self: BaseApi, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, @@ -108,13 +120,25 @@ class LogoutUser(BaseApi): @typing.overload def logout_user( - self: api_client.Api, + self: BaseApi, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[True] = True, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def logout_user( + self: BaseApi, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseForDefault, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def logout_user( self: BaseApi, stream: bool = False, @@ -136,7 +160,7 @@ class ApiForget(BaseApi): @typing.overload def get( - self: api_client.Api, + self: BaseApi, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, @@ -147,13 +171,25 @@ class ApiForget(BaseApi): @typing.overload def get( - self: api_client.Api, + self: BaseApi, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[True] = True, ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def get( + self: BaseApi, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseForDefault, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def get( self: BaseApi, stream: bool = False, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/delete.py b/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/delete.py index 93ff904ee34..ad23120a564 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/delete.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/delete.py @@ -107,6 +107,20 @@ def _delete_user_oapg( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def _delete_user_oapg( + self: api_client.Api, + path_params: RequestPathParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _delete_user_oapg( self: api_client.Api, path_params: RequestPathParams = frozendict.frozendict(), @@ -168,7 +182,7 @@ class DeleteUser(BaseApi): @typing.overload def delete_user( - self: api_client.Api, + self: BaseApi, path_params: RequestPathParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -181,7 +195,7 @@ def delete_user( @typing.overload def delete_user( - self: api_client.Api, + self: BaseApi, path_params: RequestPathParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -189,6 +203,20 @@ def delete_user( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def delete_user( + self: BaseApi, + path_params: RequestPathParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def delete_user( self: BaseApi, path_params: RequestPathParams = frozendict.frozendict(), @@ -213,7 +241,7 @@ class ApiFordelete(BaseApi): @typing.overload def delete( - self: api_client.Api, + self: BaseApi, path_params: RequestPathParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -226,7 +254,7 @@ def delete( @typing.overload def delete( - self: api_client.Api, + self: BaseApi, path_params: RequestPathParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -234,6 +262,20 @@ def delete( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def delete( + self: BaseApi, + path_params: RequestPathParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def delete( self: BaseApi, path_params: RequestPathParams = frozendict.frozendict(), diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/delete.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/delete.pyi index 89a2d30cc18..bf96604fe21 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/delete.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/delete.pyi @@ -53,6 +53,20 @@ class BaseApi(api_client.Api): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def _delete_user_oapg( + self: api_client.Api, + path_params: RequestPathParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _delete_user_oapg( self: api_client.Api, path_params: RequestPathParams = frozendict.frozendict(), @@ -114,7 +128,7 @@ class DeleteUser(BaseApi): @typing.overload def delete_user( - self: api_client.Api, + self: BaseApi, path_params: RequestPathParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -127,7 +141,7 @@ class DeleteUser(BaseApi): @typing.overload def delete_user( - self: api_client.Api, + self: BaseApi, path_params: RequestPathParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -135,6 +149,20 @@ class DeleteUser(BaseApi): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def delete_user( + self: BaseApi, + path_params: RequestPathParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def delete_user( self: BaseApi, path_params: RequestPathParams = frozendict.frozendict(), @@ -159,7 +187,7 @@ class ApiFordelete(BaseApi): @typing.overload def delete( - self: api_client.Api, + self: BaseApi, path_params: RequestPathParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -172,7 +200,7 @@ class ApiFordelete(BaseApi): @typing.overload def delete( - self: api_client.Api, + self: BaseApi, path_params: RequestPathParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -180,6 +208,20 @@ class ApiFordelete(BaseApi): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def delete( + self: BaseApi, + path_params: RequestPathParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def delete( self: BaseApi, path_params: RequestPathParams = frozendict.frozendict(), diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/get.py b/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/get.py index a65ce998dbc..4d2b88518f7 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/get.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/get.py @@ -141,6 +141,22 @@ def _get_user_by_name_oapg( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def _get_user_by_name_oapg( + self: api_client.Api, + path_params: RequestPathParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _get_user_by_name_oapg( self: api_client.Api, path_params: RequestPathParams = frozendict.frozendict(), @@ -210,7 +226,7 @@ class GetUserByName(BaseApi): @typing.overload def get_user_by_name( - self: api_client.Api, + self: BaseApi, path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -225,7 +241,7 @@ def get_user_by_name( @typing.overload def get_user_by_name( - self: api_client.Api, + self: BaseApi, path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -234,6 +250,22 @@ def get_user_by_name( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def get_user_by_name( + self: BaseApi, + path_params: RequestPathParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def get_user_by_name( self: BaseApi, path_params: RequestPathParams = frozendict.frozendict(), @@ -261,7 +293,7 @@ class ApiForget(BaseApi): @typing.overload def get( - self: api_client.Api, + self: BaseApi, path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -276,7 +308,7 @@ def get( @typing.overload def get( - self: api_client.Api, + self: BaseApi, path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -285,6 +317,22 @@ def get( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def get( + self: BaseApi, + path_params: RequestPathParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def get( self: BaseApi, path_params: RequestPathParams = frozendict.frozendict(), diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/get.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/get.pyi index 45cb1787fb3..18ba77028d7 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/get.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/get.pyi @@ -65,6 +65,22 @@ class BaseApi(api_client.Api): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def _get_user_by_name_oapg( + self: api_client.Api, + path_params: RequestPathParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _get_user_by_name_oapg( self: api_client.Api, path_params: RequestPathParams = frozendict.frozendict(), @@ -134,7 +150,7 @@ class GetUserByName(BaseApi): @typing.overload def get_user_by_name( - self: api_client.Api, + self: BaseApi, path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -149,7 +165,7 @@ class GetUserByName(BaseApi): @typing.overload def get_user_by_name( - self: api_client.Api, + self: BaseApi, path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -158,6 +174,22 @@ class GetUserByName(BaseApi): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def get_user_by_name( + self: BaseApi, + path_params: RequestPathParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def get_user_by_name( self: BaseApi, path_params: RequestPathParams = frozendict.frozendict(), @@ -185,7 +217,7 @@ class ApiForget(BaseApi): @typing.overload def get( - self: api_client.Api, + self: BaseApi, path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -200,7 +232,7 @@ class ApiForget(BaseApi): @typing.overload def get( - self: api_client.Api, + self: BaseApi, path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -209,6 +241,22 @@ class ApiForget(BaseApi): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def get( + self: BaseApi, + path_params: RequestPathParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def get( self: BaseApi, path_params: RequestPathParams = frozendict.frozendict(), diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/put.py b/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/put.py index effef4dd97e..af7f73a043c 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/put.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/put.py @@ -125,6 +125,22 @@ def _update_user_oapg( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def _update_user_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + path_params: RequestPathParams = frozendict.frozendict(), + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _update_user_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -204,7 +220,7 @@ class UpdateUser(BaseApi): @typing.overload def update_user( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], path_params: RequestPathParams = frozendict.frozendict(), content_type: str = 'application/json', @@ -219,7 +235,7 @@ def update_user( @typing.overload def update_user( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], path_params: RequestPathParams = frozendict.frozendict(), content_type: str = 'application/json', @@ -229,6 +245,22 @@ def update_user( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def update_user( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + path_params: RequestPathParams = frozendict.frozendict(), + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def update_user( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -257,7 +289,7 @@ class ApiForput(BaseApi): @typing.overload def put( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], path_params: RequestPathParams = frozendict.frozendict(), content_type: str = 'application/json', @@ -272,7 +304,7 @@ def put( @typing.overload def put( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], path_params: RequestPathParams = frozendict.frozendict(), content_type: str = 'application/json', @@ -282,6 +314,22 @@ def put( ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def put( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + path_params: RequestPathParams = frozendict.frozendict(), + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def put( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/put.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/put.pyi index c07c302153b..c509c3c896b 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/put.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/put.pyi @@ -62,6 +62,22 @@ class BaseApi(api_client.Api): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def _update_user_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + path_params: RequestPathParams = frozendict.frozendict(), + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _update_user_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -141,7 +157,7 @@ class UpdateUser(BaseApi): @typing.overload def update_user( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], path_params: RequestPathParams = frozendict.frozendict(), content_type: str = 'application/json', @@ -156,7 +172,7 @@ class UpdateUser(BaseApi): @typing.overload def update_user( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], path_params: RequestPathParams = frozendict.frozendict(), content_type: str = 'application/json', @@ -166,6 +182,22 @@ class UpdateUser(BaseApi): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def update_user( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + path_params: RequestPathParams = frozendict.frozendict(), + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def update_user( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -194,7 +226,7 @@ class ApiForput(BaseApi): @typing.overload def put( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], path_params: RequestPathParams = frozendict.frozendict(), content_type: str = 'application/json', @@ -209,7 +241,7 @@ class ApiForput(BaseApi): @typing.overload def put( - self: api_client.Api, + self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], path_params: RequestPathParams = frozendict.frozendict(), content_type: str = 'application/json', @@ -219,6 +251,22 @@ class ApiForput(BaseApi): ) -> api_client.ApiResponseWithoutDeserialization: ... + @typing.overload + def put( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + path_params: RequestPathParams = frozendict.frozendict(), + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def put( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], From 2cdfded070038970cc146e2aaf7833f2ee104771 Mon Sep 17 00:00:00 2001 From: Elton Chou Date: Sat, 1 Oct 2022 15:54:26 +0800 Subject: [PATCH 03/11] Fix generic type --- .../src/main/resources/python/api_client.handlebars | 5 +++-- .../client/petstore/python/petstore_api/api_client.py | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/modules/openapi-json-schema-generator/src/main/resources/python/api_client.handlebars b/modules/openapi-json-schema-generator/src/main/resources/python/api_client.handlebars index 37fb4cae99d..f8a5bde65a6 100644 --- a/modules/openapi-json-schema-generator/src/main/resources/python/api_client.handlebars +++ b/modules/openapi-json-schema-generator/src/main/resources/python/api_client.handlebars @@ -814,10 +814,11 @@ class JSONDetector: Response_T = typing.TypeVar("Response_T", bound=ApiResponse) -class OpenApiResponse(JSONDetector): - __filename_content_disposition_pattern = re.compile('filename="(.+?)"') +class OpenApiResponse(JSONDetector, typing.Generic[Response_T]): response_cls: typing.Type[Response_T] + __filename_content_disposition_pattern = re.compile('filename="(.+?)"') + def __init__( self, response_cls: typing.Type[Response_T] = ApiResponse, diff --git a/samples/openapi3/client/petstore/python/petstore_api/api_client.py b/samples/openapi3/client/petstore/python/petstore_api/api_client.py index 879977f4374..d362db1a8dc 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/api_client.py +++ b/samples/openapi3/client/petstore/python/petstore_api/api_client.py @@ -818,10 +818,11 @@ def _content_type_is_json(cls, content_type: str) -> bool: Response_T = typing.TypeVar("Response_T", bound=ApiResponse) -class OpenApiResponse(JSONDetector): - __filename_content_disposition_pattern = re.compile('filename="(.+?)"') +class OpenApiResponse(JSONDetector, typing.Generic[Response_T]): response_cls: typing.Type[Response_T] + __filename_content_disposition_pattern = re.compile('filename="(.+?)"') + def __init__( self, response_cls: typing.Type[Response_T] = ApiResponse, From f02129651eab94b8ffc29cbf55806a16d595c742 Mon Sep 17 00:00:00 2001 From: Elton Chou Date: Sun, 2 Oct 2022 02:15:14 +0800 Subject: [PATCH 04/11] Update samples --- .../python/unit_test_api/api_client.py | 9 +- .../post.py | 120 +++++++++++++++++- .../post.pyi | 120 +++++++++++++++++- .../post.py | 120 +++++++++++++++++- .../post.pyi | 120 +++++++++++++++++- .../post.py | 120 +++++++++++++++++- .../post.pyi | 120 +++++++++++++++++- .../post.py | 120 +++++++++++++++++- .../post.pyi | 120 +++++++++++++++++- .../post.py | 120 +++++++++++++++++- .../post.pyi | 120 +++++++++++++++++- .../post.py | 120 +++++++++++++++++- .../post.pyi | 120 +++++++++++++++++- .../post.py | 120 +++++++++++++++++- .../post.pyi | 120 +++++++++++++++++- .../post.py | 120 +++++++++++++++++- .../post.pyi | 120 +++++++++++++++++- .../post.py | 120 +++++++++++++++++- .../post.pyi | 120 +++++++++++++++++- .../post.py | 120 +++++++++++++++++- .../post.pyi | 120 +++++++++++++++++- .../post.py | 120 +++++++++++++++++- .../post.pyi | 120 +++++++++++++++++- .../post.py | 120 +++++++++++++++++- .../post.pyi | 120 +++++++++++++++++- .../post.py | 120 +++++++++++++++++- .../post.pyi | 120 +++++++++++++++++- .../post.py | 120 +++++++++++++++++- .../post.pyi | 120 +++++++++++++++++- .../post.py | 120 +++++++++++++++++- .../post.pyi | 120 +++++++++++++++++- .../post.py | 120 +++++++++++++++++- .../post.pyi | 120 +++++++++++++++++- .../post.py | 120 +++++++++++++++++- .../post.pyi | 120 +++++++++++++++++- .../post.py | 120 +++++++++++++++++- .../post.pyi | 120 +++++++++++++++++- .../post.py | 120 +++++++++++++++++- .../post.pyi | 120 +++++++++++++++++- .../post.py | 120 +++++++++++++++++- .../post.pyi | 120 +++++++++++++++++- .../post.py | 120 +++++++++++++++++- .../post.pyi | 120 +++++++++++++++++- .../post.py | 120 +++++++++++++++++- .../post.pyi | 120 +++++++++++++++++- .../post.py | 120 +++++++++++++++++- .../post.pyi | 120 +++++++++++++++++- .../post.py | 120 +++++++++++++++++- .../post.pyi | 120 +++++++++++++++++- .../post.py | 120 +++++++++++++++++- .../post.pyi | 120 +++++++++++++++++- .../post.py | 120 +++++++++++++++++- .../post.pyi | 120 +++++++++++++++++- .../post.py | 120 +++++++++++++++++- .../post.pyi | 120 +++++++++++++++++- .../post.py | 120 +++++++++++++++++- .../post.pyi | 120 +++++++++++++++++- .../post.py | 120 +++++++++++++++++- .../post.pyi | 120 +++++++++++++++++- .../post.py | 120 +++++++++++++++++- .../post.pyi | 120 +++++++++++++++++- .../post.py | 120 +++++++++++++++++- .../post.pyi | 120 +++++++++++++++++- .../post.py | 120 +++++++++++++++++- .../post.pyi | 120 +++++++++++++++++- .../post.py | 120 +++++++++++++++++- .../post.pyi | 120 +++++++++++++++++- .../post.py | 120 +++++++++++++++++- .../post.pyi | 120 +++++++++++++++++- .../post.py | 120 +++++++++++++++++- .../post.pyi | 120 +++++++++++++++++- .../post.py | 120 +++++++++++++++++- .../post.pyi | 120 +++++++++++++++++- .../post.py | 120 +++++++++++++++++- .../post.pyi | 120 +++++++++++++++++- .../post.py | 120 +++++++++++++++++- .../post.pyi | 120 +++++++++++++++++- .../post.py | 120 +++++++++++++++++- .../post.pyi | 120 +++++++++++++++++- .../post.py | 120 +++++++++++++++++- .../post.pyi | 120 +++++++++++++++++- .../post.py | 120 +++++++++++++++++- .../post.pyi | 120 +++++++++++++++++- .../post.py | 120 +++++++++++++++++- .../post.pyi | 120 +++++++++++++++++- .../post.py | 120 +++++++++++++++++- .../post.pyi | 120 +++++++++++++++++- .../post.py | 120 +++++++++++++++++- .../post.pyi | 120 +++++++++++++++++- .../post.py | 120 +++++++++++++++++- .../post.pyi | 120 +++++++++++++++++- .../post.py | 120 +++++++++++++++++- .../post.pyi | 120 +++++++++++++++++- .../post.py | 120 +++++++++++++++++- .../post.pyi | 120 +++++++++++++++++- .../post.py | 120 +++++++++++++++++- .../post.pyi | 120 +++++++++++++++++- .../post.py | 120 +++++++++++++++++- .../post.pyi | 120 +++++++++++++++++- .../post.py | 120 +++++++++++++++++- .../post.pyi | 120 +++++++++++++++++- .../post.py | 120 +++++++++++++++++- .../post.pyi | 120 +++++++++++++++++- .../post.py | 120 +++++++++++++++++- .../post.pyi | 120 +++++++++++++++++- .../post.py | 120 +++++++++++++++++- .../post.pyi | 120 +++++++++++++++++- .../post.py | 120 +++++++++++++++++- .../post.pyi | 120 +++++++++++++++++- .../post.py | 120 +++++++++++++++++- .../post.pyi | 120 +++++++++++++++++- .../post.py | 120 +++++++++++++++++- .../post.pyi | 120 +++++++++++++++++- .../post.py | 120 +++++++++++++++++- .../post.pyi | 120 +++++++++++++++++- .../post.py | 120 +++++++++++++++++- .../post.pyi | 120 +++++++++++++++++- .../post.py | 120 +++++++++++++++++- .../post.pyi | 120 +++++++++++++++++- .../post.py | 120 +++++++++++++++++- .../post.pyi | 120 +++++++++++++++++- .../post.py | 120 +++++++++++++++++- .../post.pyi | 120 +++++++++++++++++- .../post.py | 120 +++++++++++++++++- .../post.pyi | 120 +++++++++++++++++- .../post.py | 120 +++++++++++++++++- .../post.pyi | 120 +++++++++++++++++- .../post.py | 120 +++++++++++++++++- .../post.pyi | 120 +++++++++++++++++- .../post.py | 120 +++++++++++++++++- .../post.pyi | 120 +++++++++++++++++- .../post.py | 120 +++++++++++++++++- .../post.pyi | 120 +++++++++++++++++- .../post.py | 120 +++++++++++++++++- .../post.pyi | 120 +++++++++++++++++- .../post.py | 120 +++++++++++++++++- .../post.pyi | 120 +++++++++++++++++- .../post.py | 120 +++++++++++++++++- .../post.pyi | 120 +++++++++++++++++- .../post.py | 120 +++++++++++++++++- .../post.pyi | 120 +++++++++++++++++- .../post.py | 120 +++++++++++++++++- .../post.pyi | 120 +++++++++++++++++- .../post.py | 120 +++++++++++++++++- .../post.pyi | 120 +++++++++++++++++- .../post.py | 120 +++++++++++++++++- .../post.pyi | 120 +++++++++++++++++- .../post.py | 120 +++++++++++++++++- .../post.pyi | 120 +++++++++++++++++- .../post.py | 120 +++++++++++++++++- .../post.pyi | 120 +++++++++++++++++- .../post.py | 120 +++++++++++++++++- .../post.pyi | 120 +++++++++++++++++- .../post.py | 120 +++++++++++++++++- .../post.pyi | 120 +++++++++++++++++- .../post.py | 120 +++++++++++++++++- .../post.pyi | 120 +++++++++++++++++- .../post.py | 120 +++++++++++++++++- .../post.pyi | 120 +++++++++++++++++- .../post.py | 120 +++++++++++++++++- .../post.pyi | 120 +++++++++++++++++- .../post.py | 120 +++++++++++++++++- .../post.pyi | 120 +++++++++++++++++- .../post.py | 120 +++++++++++++++++- .../post.pyi | 120 +++++++++++++++++- .../post.py | 120 +++++++++++++++++- .../post.pyi | 120 +++++++++++++++++- .../post.py | 120 +++++++++++++++++- .../post.pyi | 120 +++++++++++++++++- .../post.py | 120 +++++++++++++++++- .../post.pyi | 120 +++++++++++++++++- .../post.py | 120 +++++++++++++++++- .../post.pyi | 120 +++++++++++++++++- .../post.py | 120 +++++++++++++++++- .../post.pyi | 120 +++++++++++++++++- .../post.py | 111 +++++++++++++++- .../post.pyi | 111 +++++++++++++++- .../post.py | 111 +++++++++++++++- .../post.pyi | 111 +++++++++++++++- .../post.py | 111 +++++++++++++++- .../post.pyi | 111 +++++++++++++++- .../post.py | 111 +++++++++++++++- .../post.pyi | 111 +++++++++++++++- .../post.py | 111 +++++++++++++++- .../post.pyi | 111 +++++++++++++++- .../post.py | 111 +++++++++++++++- .../post.pyi | 111 +++++++++++++++- .../post.py | 111 +++++++++++++++- .../post.pyi | 111 +++++++++++++++- .../post.py | 111 +++++++++++++++- .../post.pyi | 111 +++++++++++++++- .../post.py | 111 +++++++++++++++- .../post.pyi | 111 +++++++++++++++- .../post.py | 111 +++++++++++++++- .../post.pyi | 111 +++++++++++++++- .../post.py | 111 +++++++++++++++- .../post.pyi | 111 +++++++++++++++- .../post.py | 111 +++++++++++++++- .../post.pyi | 111 +++++++++++++++- .../post.py | 111 +++++++++++++++- .../post.pyi | 111 +++++++++++++++- .../post.py | 111 +++++++++++++++- .../post.pyi | 111 +++++++++++++++- .../post.py | 111 +++++++++++++++- .../post.pyi | 111 +++++++++++++++- .../post.py | 111 +++++++++++++++- .../post.pyi | 111 +++++++++++++++- .../post.py | 111 +++++++++++++++- .../post.pyi | 111 +++++++++++++++- .../post.py | 111 +++++++++++++++- .../post.pyi | 111 +++++++++++++++- .../post.py | 111 +++++++++++++++- .../post.pyi | 111 +++++++++++++++- .../post.py | 111 +++++++++++++++- .../post.pyi | 111 +++++++++++++++- .../post.py | 111 +++++++++++++++- .../post.pyi | 111 +++++++++++++++- .../post.py | 111 +++++++++++++++- .../post.pyi | 111 +++++++++++++++- .../post.py | 111 +++++++++++++++- .../post.pyi | 111 +++++++++++++++- .../post.py | 111 +++++++++++++++- .../post.pyi | 111 +++++++++++++++- .../post.py | 111 +++++++++++++++- .../post.pyi | 111 +++++++++++++++- .../post.py | 111 +++++++++++++++- .../post.pyi | 111 +++++++++++++++- .../post.py | 111 +++++++++++++++- .../post.pyi | 111 +++++++++++++++- .../post.py | 111 +++++++++++++++- .../post.pyi | 111 +++++++++++++++- .../post.py | 111 +++++++++++++++- .../post.pyi | 111 +++++++++++++++- .../post.py | 111 +++++++++++++++- .../post.pyi | 111 +++++++++++++++- .../post.py | 111 +++++++++++++++- .../post.pyi | 111 +++++++++++++++- .../post.py | 111 +++++++++++++++- .../post.pyi | 111 +++++++++++++++- .../post.py | 111 +++++++++++++++- .../post.pyi | 111 +++++++++++++++- .../post.py | 111 +++++++++++++++- .../post.pyi | 111 +++++++++++++++- .../post.py | 111 +++++++++++++++- .../post.pyi | 111 +++++++++++++++- .../post.py | 111 +++++++++++++++- .../post.pyi | 111 +++++++++++++++- .../post.py | 111 +++++++++++++++- .../post.pyi | 111 +++++++++++++++- .../post.py | 111 +++++++++++++++- .../post.pyi | 111 +++++++++++++++- .../post.py | 111 +++++++++++++++- .../post.pyi | 111 +++++++++++++++- .../post.py | 111 +++++++++++++++- .../post.pyi | 111 +++++++++++++++- .../post.py | 111 +++++++++++++++- .../post.pyi | 111 +++++++++++++++- .../post.py | 111 +++++++++++++++- .../post.pyi | 111 +++++++++++++++- .../post.py | 111 +++++++++++++++- .../post.pyi | 111 +++++++++++++++- .../post.py | 111 +++++++++++++++- .../post.pyi | 111 +++++++++++++++- .../post.py | 111 +++++++++++++++- .../post.pyi | 111 +++++++++++++++- .../post.py | 111 +++++++++++++++- .../post.pyi | 111 +++++++++++++++- .../post.py | 111 +++++++++++++++- .../post.pyi | 111 +++++++++++++++- .../post.py | 111 +++++++++++++++- .../post.pyi | 111 +++++++++++++++- .../post.py | 111 +++++++++++++++- .../post.pyi | 111 +++++++++++++++- .../post.py | 111 +++++++++++++++- .../post.pyi | 111 +++++++++++++++- .../post.py | 111 +++++++++++++++- .../post.pyi | 111 +++++++++++++++- .../post.py | 111 +++++++++++++++- .../post.pyi | 111 +++++++++++++++- .../post.py | 111 +++++++++++++++- .../post.pyi | 111 +++++++++++++++- .../post.py | 111 +++++++++++++++- .../post.pyi | 111 +++++++++++++++- .../post.py | 111 +++++++++++++++- .../post.pyi | 111 +++++++++++++++- .../post.py | 111 +++++++++++++++- .../post.pyi | 111 +++++++++++++++- .../post.py | 111 +++++++++++++++- .../post.pyi | 111 +++++++++++++++- .../post.py | 111 +++++++++++++++- .../post.pyi | 111 +++++++++++++++- .../post.py | 111 +++++++++++++++- .../post.pyi | 111 +++++++++++++++- .../post.py | 111 +++++++++++++++- .../post.pyi | 111 +++++++++++++++- .../post.py | 111 +++++++++++++++- .../post.pyi | 111 +++++++++++++++- .../post.py | 111 +++++++++++++++- .../post.pyi | 111 +++++++++++++++- .../post.py | 111 +++++++++++++++- .../post.pyi | 111 +++++++++++++++- .../post.py | 111 +++++++++++++++- .../post.pyi | 111 +++++++++++++++- .../post.py | 111 +++++++++++++++- .../post.pyi | 111 +++++++++++++++- .../post.py | 111 +++++++++++++++- .../post.pyi | 111 +++++++++++++++- .../post.py | 111 +++++++++++++++- .../post.pyi | 111 +++++++++++++++- .../post.py | 111 +++++++++++++++- .../post.pyi | 111 +++++++++++++++- .../post.py | 111 +++++++++++++++- .../post.pyi | 111 +++++++++++++++- .../post.py | 111 +++++++++++++++- .../post.pyi | 111 +++++++++++++++- .../post.py | 111 +++++++++++++++- .../post.pyi | 111 +++++++++++++++- .../post.py | 111 +++++++++++++++- .../post.pyi | 111 +++++++++++++++- .../post.py | 111 +++++++++++++++- .../post.pyi | 111 +++++++++++++++- .../post.py | 111 +++++++++++++++- .../post.pyi | 111 +++++++++++++++- .../post.py | 111 +++++++++++++++- .../post.pyi | 111 +++++++++++++++- .../post.py | 111 +++++++++++++++- .../post.pyi | 111 +++++++++++++++- .../post.py | 111 +++++++++++++++- .../post.pyi | 111 +++++++++++++++- .../post.py | 111 +++++++++++++++- .../post.pyi | 111 +++++++++++++++- .../post.py | 111 +++++++++++++++- .../post.pyi | 111 +++++++++++++++- .../post.py | 111 +++++++++++++++- .../post.pyi | 111 +++++++++++++++- .../post.py | 111 +++++++++++++++- .../post.pyi | 111 +++++++++++++++- .../post.py | 111 +++++++++++++++- .../post.pyi | 111 +++++++++++++++- .../post.py | 111 +++++++++++++++- .../post.pyi | 111 +++++++++++++++- .../post.py | 111 +++++++++++++++- .../post.pyi | 111 +++++++++++++++- .../post.py | 111 +++++++++++++++- .../post.pyi | 111 +++++++++++++++- .../post.py | 111 +++++++++++++++- .../post.pyi | 111 +++++++++++++++- .../post.py | 111 +++++++++++++++- .../post.pyi | 111 +++++++++++++++- 349 files changed, 39156 insertions(+), 1047 deletions(-) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/api_client.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/api_client.py index e1de9fcc9c6..d07a56a5083 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/api_client.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/api_client.py @@ -816,13 +816,16 @@ def _content_type_is_json(cls, content_type: str) -> bool: return True return False +Response_T = typing.TypeVar("Response_T", bound=ApiResponse) + +class OpenApiResponse(JSONDetector, typing.Generic[Response_T]): + response_cls: typing.Type[Response_T] -class OpenApiResponse(JSONDetector): __filename_content_disposition_pattern = re.compile('filename="(.+?)"') def __init__( self, - response_cls: typing.Type[ApiResponse] = ApiResponse, + response_cls: typing.Type[Response_T] = ApiResponse, content: typing.Optional[typing.Dict[str, MediaType]] = None, headers: typing.Optional[typing.List[HeaderParameter]] = None, ): @@ -907,7 +910,7 @@ def __deserialize_multipart_form_data( for part in msg.get_payload() } - def deserialize(self, response: urllib3.HTTPResponse, configuration: Configuration) -> ApiResponse: + def deserialize(self, response: urllib3.HTTPResponse, configuration: Configuration) -> Response_T: content_type = response.getheader('content-type') deserialized_body = unset streamed = response.supports_chunked_reads() diff --git a/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 b/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 index 9d181743b1c..ad9a472bb05 100644 --- a/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 +++ b/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 @@ -59,6 +59,31 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_additionalproperties_allows_a_schema_which_should_validate_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_additionalproperties_allows_a_schema_which_should_validate_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_additionalproperties_allows_a_schema_which_should_validate_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -67,7 +92,20 @@ def _post_additionalproperties_allows_a_schema_which_should_validate_request_bod timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_additionalproperties_allows_a_schema_which_should_validate_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -119,6 +157,44 @@ class instances class PostAdditionalpropertiesAllowsASchemaWhichShouldValidateRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_additionalproperties_allows_a_schema_which_should_validate_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_additionalproperties_allows_a_schema_which_should_validate_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_additionalproperties_allows_a_schema_which_should_validate_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_additionalproperties_allows_a_schema_which_should_validate_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -127,7 +203,7 @@ def post_additionalproperties_allows_a_schema_which_should_validate_request_body timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_additionalproperties_allows_a_schema_which_should_validate_request_body_oapg( @@ -142,6 +218,44 @@ def post_additionalproperties_allows_a_schema_which_should_validate_request_body class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -150,7 +264,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_additionalproperties_allows_a_schema_which_should_validate_request_body_oapg( diff --git a/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 b/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 index 25e7fbd7895..919e22c2767 100644 --- a/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 +++ b/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 @@ -33,6 +33,31 @@ SchemaForRequestBodyApplicationJson = AdditionalpropertiesAllowsASchemaWhichShou class BaseApi(api_client.Api): + @typing.overload + def _post_additionalproperties_allows_a_schema_which_should_validate_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_additionalproperties_allows_a_schema_which_should_validate_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_additionalproperties_allows_a_schema_which_should_validate_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -41,7 +66,20 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_additionalproperties_allows_a_schema_which_should_validate_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -93,6 +131,44 @@ class BaseApi(api_client.Api): class PostAdditionalpropertiesAllowsASchemaWhichShouldValidateRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_additionalproperties_allows_a_schema_which_should_validate_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_additionalproperties_allows_a_schema_which_should_validate_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_additionalproperties_allows_a_schema_which_should_validate_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_additionalproperties_allows_a_schema_which_should_validate_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -101,7 +177,7 @@ class PostAdditionalpropertiesAllowsASchemaWhichShouldValidateRequestBody(BaseAp timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_additionalproperties_allows_a_schema_which_should_validate_request_body_oapg( @@ -116,6 +192,44 @@ class PostAdditionalpropertiesAllowsASchemaWhichShouldValidateRequestBody(BaseAp class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -124,7 +238,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_additionalproperties_allows_a_schema_which_should_validate_request_body_oapg( diff --git a/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 b/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 index 6b6aad1b775..9ef2a4b0540 100644 --- a/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 +++ b/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 @@ -59,6 +59,31 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_additionalproperties_are_allowed_by_default_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_additionalproperties_are_allowed_by_default_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_additionalproperties_are_allowed_by_default_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -67,7 +92,20 @@ def _post_additionalproperties_are_allowed_by_default_request_body_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_additionalproperties_are_allowed_by_default_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -119,6 +157,44 @@ class instances class PostAdditionalpropertiesAreAllowedByDefaultRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_additionalproperties_are_allowed_by_default_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_additionalproperties_are_allowed_by_default_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_additionalproperties_are_allowed_by_default_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_additionalproperties_are_allowed_by_default_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -127,7 +203,7 @@ def post_additionalproperties_are_allowed_by_default_request_body( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_additionalproperties_are_allowed_by_default_request_body_oapg( @@ -142,6 +218,44 @@ def post_additionalproperties_are_allowed_by_default_request_body( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -150,7 +264,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_additionalproperties_are_allowed_by_default_request_body_oapg( diff --git a/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 b/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 index b072f5769c2..27df8ebfd9e 100644 --- a/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 +++ b/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 @@ -33,6 +33,31 @@ SchemaForRequestBodyApplicationJson = AdditionalpropertiesAreAllowedByDefault class BaseApi(api_client.Api): + @typing.overload + def _post_additionalproperties_are_allowed_by_default_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_additionalproperties_are_allowed_by_default_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_additionalproperties_are_allowed_by_default_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -41,7 +66,20 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_additionalproperties_are_allowed_by_default_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -93,6 +131,44 @@ class BaseApi(api_client.Api): class PostAdditionalpropertiesAreAllowedByDefaultRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_additionalproperties_are_allowed_by_default_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_additionalproperties_are_allowed_by_default_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_additionalproperties_are_allowed_by_default_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_additionalproperties_are_allowed_by_default_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -101,7 +177,7 @@ class PostAdditionalpropertiesAreAllowedByDefaultRequestBody(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_additionalproperties_are_allowed_by_default_request_body_oapg( @@ -116,6 +192,44 @@ class PostAdditionalpropertiesAreAllowedByDefaultRequestBody(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -124,7 +238,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_additionalproperties_are_allowed_by_default_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post.py index b5f0df3456a..5ec90b556e6 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post.py @@ -59,6 +59,31 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_additionalproperties_can_exist_by_itself_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_additionalproperties_can_exist_by_itself_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_additionalproperties_can_exist_by_itself_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -67,7 +92,20 @@ def _post_additionalproperties_can_exist_by_itself_request_body_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_additionalproperties_can_exist_by_itself_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -119,6 +157,44 @@ class instances class PostAdditionalpropertiesCanExistByItselfRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_additionalproperties_can_exist_by_itself_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_additionalproperties_can_exist_by_itself_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_additionalproperties_can_exist_by_itself_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_additionalproperties_can_exist_by_itself_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -127,7 +203,7 @@ def post_additionalproperties_can_exist_by_itself_request_body( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_additionalproperties_can_exist_by_itself_request_body_oapg( @@ -142,6 +218,44 @@ def post_additionalproperties_can_exist_by_itself_request_body( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -150,7 +264,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_additionalproperties_can_exist_by_itself_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post.pyi index d575d1c6850..a58d3b99bb2 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post.pyi @@ -33,6 +33,31 @@ SchemaForRequestBodyApplicationJson = AdditionalpropertiesCanExistByItself class BaseApi(api_client.Api): + @typing.overload + def _post_additionalproperties_can_exist_by_itself_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_additionalproperties_can_exist_by_itself_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_additionalproperties_can_exist_by_itself_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -41,7 +66,20 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_additionalproperties_can_exist_by_itself_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -93,6 +131,44 @@ class BaseApi(api_client.Api): class PostAdditionalpropertiesCanExistByItselfRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_additionalproperties_can_exist_by_itself_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_additionalproperties_can_exist_by_itself_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_additionalproperties_can_exist_by_itself_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_additionalproperties_can_exist_by_itself_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -101,7 +177,7 @@ class PostAdditionalpropertiesCanExistByItselfRequestBody(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_additionalproperties_can_exist_by_itself_request_body_oapg( @@ -116,6 +192,44 @@ class PostAdditionalpropertiesCanExistByItselfRequestBody(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -124,7 +238,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_additionalproperties_can_exist_by_itself_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_should_not_look_in_applicators_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_should_not_look_in_applicators_request_body/post.py index b13a4db5f81..bbb5ed5e127 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_should_not_look_in_applicators_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_should_not_look_in_applicators_request_body/post.py @@ -59,6 +59,31 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_additionalproperties_should_not_look_in_applicators_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_additionalproperties_should_not_look_in_applicators_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_additionalproperties_should_not_look_in_applicators_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -67,7 +92,20 @@ def _post_additionalproperties_should_not_look_in_applicators_request_body_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_additionalproperties_should_not_look_in_applicators_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -119,6 +157,44 @@ class instances class PostAdditionalpropertiesShouldNotLookInApplicatorsRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_additionalproperties_should_not_look_in_applicators_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_additionalproperties_should_not_look_in_applicators_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_additionalproperties_should_not_look_in_applicators_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_additionalproperties_should_not_look_in_applicators_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -127,7 +203,7 @@ def post_additionalproperties_should_not_look_in_applicators_request_body( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_additionalproperties_should_not_look_in_applicators_request_body_oapg( @@ -142,6 +218,44 @@ def post_additionalproperties_should_not_look_in_applicators_request_body( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -150,7 +264,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_additionalproperties_should_not_look_in_applicators_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_should_not_look_in_applicators_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_should_not_look_in_applicators_request_body/post.pyi index 758b4e14580..4ae645ede0f 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_should_not_look_in_applicators_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_should_not_look_in_applicators_request_body/post.pyi @@ -33,6 +33,31 @@ SchemaForRequestBodyApplicationJson = AdditionalpropertiesShouldNotLookInApplica class BaseApi(api_client.Api): + @typing.overload + def _post_additionalproperties_should_not_look_in_applicators_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_additionalproperties_should_not_look_in_applicators_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_additionalproperties_should_not_look_in_applicators_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -41,7 +66,20 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_additionalproperties_should_not_look_in_applicators_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -93,6 +131,44 @@ class BaseApi(api_client.Api): class PostAdditionalpropertiesShouldNotLookInApplicatorsRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_additionalproperties_should_not_look_in_applicators_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_additionalproperties_should_not_look_in_applicators_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_additionalproperties_should_not_look_in_applicators_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_additionalproperties_should_not_look_in_applicators_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -101,7 +177,7 @@ class PostAdditionalpropertiesShouldNotLookInApplicatorsRequestBody(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_additionalproperties_should_not_look_in_applicators_request_body_oapg( @@ -116,6 +192,44 @@ class PostAdditionalpropertiesShouldNotLookInApplicatorsRequestBody(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -124,7 +238,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_additionalproperties_should_not_look_in_applicators_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post.py index ed580b82ab2..6a6f1bd5bf7 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post.py @@ -59,6 +59,31 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_allof_combined_with_anyof_oneof_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_allof_combined_with_anyof_oneof_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_allof_combined_with_anyof_oneof_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -67,7 +92,20 @@ def _post_allof_combined_with_anyof_oneof_request_body_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_allof_combined_with_anyof_oneof_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -119,6 +157,44 @@ class instances class PostAllofCombinedWithAnyofOneofRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_allof_combined_with_anyof_oneof_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_allof_combined_with_anyof_oneof_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_allof_combined_with_anyof_oneof_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_allof_combined_with_anyof_oneof_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -127,7 +203,7 @@ def post_allof_combined_with_anyof_oneof_request_body( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_allof_combined_with_anyof_oneof_request_body_oapg( @@ -142,6 +218,44 @@ def post_allof_combined_with_anyof_oneof_request_body( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -150,7 +264,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_allof_combined_with_anyof_oneof_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post.pyi index d499a70ec06..0b5a1be0bbc 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post.pyi @@ -33,6 +33,31 @@ SchemaForRequestBodyApplicationJson = AllofCombinedWithAnyofOneof class BaseApi(api_client.Api): + @typing.overload + def _post_allof_combined_with_anyof_oneof_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_allof_combined_with_anyof_oneof_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_allof_combined_with_anyof_oneof_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -41,7 +66,20 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_allof_combined_with_anyof_oneof_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -93,6 +131,44 @@ class BaseApi(api_client.Api): class PostAllofCombinedWithAnyofOneofRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_allof_combined_with_anyof_oneof_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_allof_combined_with_anyof_oneof_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_allof_combined_with_anyof_oneof_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_allof_combined_with_anyof_oneof_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -101,7 +177,7 @@ class PostAllofCombinedWithAnyofOneofRequestBody(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_allof_combined_with_anyof_oneof_request_body_oapg( @@ -116,6 +192,44 @@ class PostAllofCombinedWithAnyofOneofRequestBody(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -124,7 +238,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_allof_combined_with_anyof_oneof_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_request_body/post.py index 4eb46ceb57a..51550fb73bb 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_request_body/post.py @@ -59,6 +59,31 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_allof_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_allof_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_allof_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -67,7 +92,20 @@ def _post_allof_request_body_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_allof_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -119,6 +157,44 @@ class instances class PostAllofRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_allof_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_allof_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_allof_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_allof_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -127,7 +203,7 @@ def post_allof_request_body( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_allof_request_body_oapg( @@ -142,6 +218,44 @@ def post_allof_request_body( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -150,7 +264,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_allof_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_request_body/post.pyi index 60ba6149f6d..c9727570a31 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_request_body/post.pyi @@ -33,6 +33,31 @@ SchemaForRequestBodyApplicationJson = Allof class BaseApi(api_client.Api): + @typing.overload + def _post_allof_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_allof_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_allof_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -41,7 +66,20 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_allof_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -93,6 +131,44 @@ class BaseApi(api_client.Api): class PostAllofRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_allof_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_allof_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_allof_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_allof_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -101,7 +177,7 @@ class PostAllofRequestBody(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_allof_request_body_oapg( @@ -116,6 +192,44 @@ class PostAllofRequestBody(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -124,7 +238,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_allof_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_simple_types_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_simple_types_request_body/post.py index 4e2ae80d04e..067f83b7cf0 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_simple_types_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_simple_types_request_body/post.py @@ -59,6 +59,31 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_allof_simple_types_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_allof_simple_types_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_allof_simple_types_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -67,7 +92,20 @@ def _post_allof_simple_types_request_body_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_allof_simple_types_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -119,6 +157,44 @@ class instances class PostAllofSimpleTypesRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_allof_simple_types_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_allof_simple_types_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_allof_simple_types_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_allof_simple_types_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -127,7 +203,7 @@ def post_allof_simple_types_request_body( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_allof_simple_types_request_body_oapg( @@ -142,6 +218,44 @@ def post_allof_simple_types_request_body( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -150,7 +264,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_allof_simple_types_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_simple_types_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_simple_types_request_body/post.pyi index e071ea77f17..dcda4c17e85 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_simple_types_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_simple_types_request_body/post.pyi @@ -33,6 +33,31 @@ SchemaForRequestBodyApplicationJson = AllofSimpleTypes class BaseApi(api_client.Api): + @typing.overload + def _post_allof_simple_types_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_allof_simple_types_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_allof_simple_types_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -41,7 +66,20 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_allof_simple_types_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -93,6 +131,44 @@ class BaseApi(api_client.Api): class PostAllofSimpleTypesRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_allof_simple_types_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_allof_simple_types_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_allof_simple_types_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_allof_simple_types_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -101,7 +177,7 @@ class PostAllofSimpleTypesRequestBody(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_allof_simple_types_request_body_oapg( @@ -116,6 +192,44 @@ class PostAllofSimpleTypesRequestBody(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -124,7 +238,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_allof_simple_types_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_base_schema_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_base_schema_request_body/post.py index 93d1a9272c8..5a0c9b04c7f 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_base_schema_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_base_schema_request_body/post.py @@ -59,6 +59,31 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_allof_with_base_schema_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_allof_with_base_schema_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_allof_with_base_schema_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -67,7 +92,20 @@ def _post_allof_with_base_schema_request_body_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_allof_with_base_schema_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -119,6 +157,44 @@ class instances class PostAllofWithBaseSchemaRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_allof_with_base_schema_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_allof_with_base_schema_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_allof_with_base_schema_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_allof_with_base_schema_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -127,7 +203,7 @@ def post_allof_with_base_schema_request_body( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_allof_with_base_schema_request_body_oapg( @@ -142,6 +218,44 @@ def post_allof_with_base_schema_request_body( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -150,7 +264,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_allof_with_base_schema_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_base_schema_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_base_schema_request_body/post.pyi index e44333eddad..50238230626 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_base_schema_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_base_schema_request_body/post.pyi @@ -33,6 +33,31 @@ SchemaForRequestBodyApplicationJson = AllofWithBaseSchema class BaseApi(api_client.Api): + @typing.overload + def _post_allof_with_base_schema_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_allof_with_base_schema_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_allof_with_base_schema_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -41,7 +66,20 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_allof_with_base_schema_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -93,6 +131,44 @@ class BaseApi(api_client.Api): class PostAllofWithBaseSchemaRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_allof_with_base_schema_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_allof_with_base_schema_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_allof_with_base_schema_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_allof_with_base_schema_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -101,7 +177,7 @@ class PostAllofWithBaseSchemaRequestBody(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_allof_with_base_schema_request_body_oapg( @@ -116,6 +192,44 @@ class PostAllofWithBaseSchemaRequestBody(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -124,7 +238,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_allof_with_base_schema_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_one_empty_schema_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_one_empty_schema_request_body/post.py index 82f3d209656..3ba28823aa0 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_one_empty_schema_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_one_empty_schema_request_body/post.py @@ -59,6 +59,31 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_allof_with_one_empty_schema_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_allof_with_one_empty_schema_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_allof_with_one_empty_schema_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -67,7 +92,20 @@ def _post_allof_with_one_empty_schema_request_body_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_allof_with_one_empty_schema_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -119,6 +157,44 @@ class instances class PostAllofWithOneEmptySchemaRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_allof_with_one_empty_schema_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_allof_with_one_empty_schema_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_allof_with_one_empty_schema_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_allof_with_one_empty_schema_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -127,7 +203,7 @@ def post_allof_with_one_empty_schema_request_body( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_allof_with_one_empty_schema_request_body_oapg( @@ -142,6 +218,44 @@ def post_allof_with_one_empty_schema_request_body( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -150,7 +264,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_allof_with_one_empty_schema_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_one_empty_schema_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_one_empty_schema_request_body/post.pyi index 06fd162a1f8..5fe9c9fe2cf 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_one_empty_schema_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_one_empty_schema_request_body/post.pyi @@ -33,6 +33,31 @@ SchemaForRequestBodyApplicationJson = AllofWithOneEmptySchema class BaseApi(api_client.Api): + @typing.overload + def _post_allof_with_one_empty_schema_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_allof_with_one_empty_schema_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_allof_with_one_empty_schema_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -41,7 +66,20 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_allof_with_one_empty_schema_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -93,6 +131,44 @@ class BaseApi(api_client.Api): class PostAllofWithOneEmptySchemaRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_allof_with_one_empty_schema_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_allof_with_one_empty_schema_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_allof_with_one_empty_schema_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_allof_with_one_empty_schema_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -101,7 +177,7 @@ class PostAllofWithOneEmptySchemaRequestBody(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_allof_with_one_empty_schema_request_body_oapg( @@ -116,6 +192,44 @@ class PostAllofWithOneEmptySchemaRequestBody(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -124,7 +238,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_allof_with_one_empty_schema_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post.py index f20c2387cf2..caec07c871a 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post.py @@ -59,6 +59,31 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_allof_with_the_first_empty_schema_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_allof_with_the_first_empty_schema_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_allof_with_the_first_empty_schema_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -67,7 +92,20 @@ def _post_allof_with_the_first_empty_schema_request_body_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_allof_with_the_first_empty_schema_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -119,6 +157,44 @@ class instances class PostAllofWithTheFirstEmptySchemaRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_allof_with_the_first_empty_schema_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_allof_with_the_first_empty_schema_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_allof_with_the_first_empty_schema_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_allof_with_the_first_empty_schema_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -127,7 +203,7 @@ def post_allof_with_the_first_empty_schema_request_body( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_allof_with_the_first_empty_schema_request_body_oapg( @@ -142,6 +218,44 @@ def post_allof_with_the_first_empty_schema_request_body( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -150,7 +264,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_allof_with_the_first_empty_schema_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post.pyi index 1a72c9b8ae7..7ca0d1373b6 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post.pyi @@ -33,6 +33,31 @@ SchemaForRequestBodyApplicationJson = AllofWithTheFirstEmptySchema class BaseApi(api_client.Api): + @typing.overload + def _post_allof_with_the_first_empty_schema_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_allof_with_the_first_empty_schema_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_allof_with_the_first_empty_schema_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -41,7 +66,20 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_allof_with_the_first_empty_schema_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -93,6 +131,44 @@ class BaseApi(api_client.Api): class PostAllofWithTheFirstEmptySchemaRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_allof_with_the_first_empty_schema_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_allof_with_the_first_empty_schema_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_allof_with_the_first_empty_schema_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_allof_with_the_first_empty_schema_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -101,7 +177,7 @@ class PostAllofWithTheFirstEmptySchemaRequestBody(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_allof_with_the_first_empty_schema_request_body_oapg( @@ -116,6 +192,44 @@ class PostAllofWithTheFirstEmptySchemaRequestBody(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -124,7 +238,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_allof_with_the_first_empty_schema_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post.py index 20eb1788e2f..9046c0c244f 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post.py @@ -59,6 +59,31 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_allof_with_the_last_empty_schema_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_allof_with_the_last_empty_schema_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_allof_with_the_last_empty_schema_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -67,7 +92,20 @@ def _post_allof_with_the_last_empty_schema_request_body_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_allof_with_the_last_empty_schema_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -119,6 +157,44 @@ class instances class PostAllofWithTheLastEmptySchemaRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_allof_with_the_last_empty_schema_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_allof_with_the_last_empty_schema_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_allof_with_the_last_empty_schema_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_allof_with_the_last_empty_schema_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -127,7 +203,7 @@ def post_allof_with_the_last_empty_schema_request_body( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_allof_with_the_last_empty_schema_request_body_oapg( @@ -142,6 +218,44 @@ def post_allof_with_the_last_empty_schema_request_body( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -150,7 +264,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_allof_with_the_last_empty_schema_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post.pyi index 176c4f8b2cb..bb974bf9b42 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post.pyi @@ -33,6 +33,31 @@ SchemaForRequestBodyApplicationJson = AllofWithTheLastEmptySchema class BaseApi(api_client.Api): + @typing.overload + def _post_allof_with_the_last_empty_schema_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_allof_with_the_last_empty_schema_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_allof_with_the_last_empty_schema_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -41,7 +66,20 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_allof_with_the_last_empty_schema_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -93,6 +131,44 @@ class BaseApi(api_client.Api): class PostAllofWithTheLastEmptySchemaRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_allof_with_the_last_empty_schema_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_allof_with_the_last_empty_schema_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_allof_with_the_last_empty_schema_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_allof_with_the_last_empty_schema_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -101,7 +177,7 @@ class PostAllofWithTheLastEmptySchemaRequestBody(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_allof_with_the_last_empty_schema_request_body_oapg( @@ -116,6 +192,44 @@ class PostAllofWithTheLastEmptySchemaRequestBody(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -124,7 +238,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_allof_with_the_last_empty_schema_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post.py index 5f554b1a1d9..286a8403896 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post.py @@ -59,6 +59,31 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_allof_with_two_empty_schemas_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_allof_with_two_empty_schemas_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_allof_with_two_empty_schemas_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -67,7 +92,20 @@ def _post_allof_with_two_empty_schemas_request_body_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_allof_with_two_empty_schemas_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -119,6 +157,44 @@ class instances class PostAllofWithTwoEmptySchemasRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_allof_with_two_empty_schemas_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_allof_with_two_empty_schemas_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_allof_with_two_empty_schemas_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_allof_with_two_empty_schemas_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -127,7 +203,7 @@ def post_allof_with_two_empty_schemas_request_body( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_allof_with_two_empty_schemas_request_body_oapg( @@ -142,6 +218,44 @@ def post_allof_with_two_empty_schemas_request_body( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -150,7 +264,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_allof_with_two_empty_schemas_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post.pyi index 19a2d2faa39..726e607c704 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post.pyi @@ -33,6 +33,31 @@ SchemaForRequestBodyApplicationJson = AllofWithTwoEmptySchemas class BaseApi(api_client.Api): + @typing.overload + def _post_allof_with_two_empty_schemas_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_allof_with_two_empty_schemas_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_allof_with_two_empty_schemas_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -41,7 +66,20 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_allof_with_two_empty_schemas_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -93,6 +131,44 @@ class BaseApi(api_client.Api): class PostAllofWithTwoEmptySchemasRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_allof_with_two_empty_schemas_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_allof_with_two_empty_schemas_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_allof_with_two_empty_schemas_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_allof_with_two_empty_schemas_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -101,7 +177,7 @@ class PostAllofWithTwoEmptySchemasRequestBody(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_allof_with_two_empty_schemas_request_body_oapg( @@ -116,6 +192,44 @@ class PostAllofWithTwoEmptySchemasRequestBody(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -124,7 +238,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_allof_with_two_empty_schemas_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_complex_types_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_complex_types_request_body/post.py index 0352c3702f9..3131ebf5714 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_complex_types_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_complex_types_request_body/post.py @@ -59,6 +59,31 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_anyof_complex_types_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_anyof_complex_types_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_anyof_complex_types_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -67,7 +92,20 @@ def _post_anyof_complex_types_request_body_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_anyof_complex_types_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -119,6 +157,44 @@ class instances class PostAnyofComplexTypesRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_anyof_complex_types_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_anyof_complex_types_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_anyof_complex_types_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_anyof_complex_types_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -127,7 +203,7 @@ def post_anyof_complex_types_request_body( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_anyof_complex_types_request_body_oapg( @@ -142,6 +218,44 @@ def post_anyof_complex_types_request_body( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -150,7 +264,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_anyof_complex_types_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_complex_types_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_complex_types_request_body/post.pyi index 192aa4f69c2..6a327efff90 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_complex_types_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_complex_types_request_body/post.pyi @@ -33,6 +33,31 @@ SchemaForRequestBodyApplicationJson = AnyofComplexTypes class BaseApi(api_client.Api): + @typing.overload + def _post_anyof_complex_types_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_anyof_complex_types_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_anyof_complex_types_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -41,7 +66,20 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_anyof_complex_types_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -93,6 +131,44 @@ class BaseApi(api_client.Api): class PostAnyofComplexTypesRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_anyof_complex_types_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_anyof_complex_types_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_anyof_complex_types_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_anyof_complex_types_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -101,7 +177,7 @@ class PostAnyofComplexTypesRequestBody(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_anyof_complex_types_request_body_oapg( @@ -116,6 +192,44 @@ class PostAnyofComplexTypesRequestBody(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -124,7 +238,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_anyof_complex_types_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_request_body/post.py index e3cdd801ce3..8ce4296f110 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_request_body/post.py @@ -59,6 +59,31 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_anyof_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_anyof_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_anyof_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -67,7 +92,20 @@ def _post_anyof_request_body_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_anyof_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -119,6 +157,44 @@ class instances class PostAnyofRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_anyof_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_anyof_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_anyof_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_anyof_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -127,7 +203,7 @@ def post_anyof_request_body( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_anyof_request_body_oapg( @@ -142,6 +218,44 @@ def post_anyof_request_body( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -150,7 +264,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_anyof_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_request_body/post.pyi index 0f5688da5f0..a2988592dcb 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_request_body/post.pyi @@ -33,6 +33,31 @@ SchemaForRequestBodyApplicationJson = Anyof class BaseApi(api_client.Api): + @typing.overload + def _post_anyof_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_anyof_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_anyof_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -41,7 +66,20 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_anyof_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -93,6 +131,44 @@ class BaseApi(api_client.Api): class PostAnyofRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_anyof_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_anyof_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_anyof_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_anyof_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -101,7 +177,7 @@ class PostAnyofRequestBody(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_anyof_request_body_oapg( @@ -116,6 +192,44 @@ class PostAnyofRequestBody(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -124,7 +238,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_anyof_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_with_base_schema_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_with_base_schema_request_body/post.py index 6291b17d5db..7256aef1ef1 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_with_base_schema_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_with_base_schema_request_body/post.py @@ -59,6 +59,31 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_anyof_with_base_schema_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_anyof_with_base_schema_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_anyof_with_base_schema_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -67,7 +92,20 @@ def _post_anyof_with_base_schema_request_body_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_anyof_with_base_schema_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -119,6 +157,44 @@ class instances class PostAnyofWithBaseSchemaRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_anyof_with_base_schema_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_anyof_with_base_schema_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_anyof_with_base_schema_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_anyof_with_base_schema_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -127,7 +203,7 @@ def post_anyof_with_base_schema_request_body( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_anyof_with_base_schema_request_body_oapg( @@ -142,6 +218,44 @@ def post_anyof_with_base_schema_request_body( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -150,7 +264,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_anyof_with_base_schema_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_with_base_schema_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_with_base_schema_request_body/post.pyi index 550f76088a4..3025f688460 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_with_base_schema_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_with_base_schema_request_body/post.pyi @@ -33,6 +33,31 @@ SchemaForRequestBodyApplicationJson = AnyofWithBaseSchema class BaseApi(api_client.Api): + @typing.overload + def _post_anyof_with_base_schema_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_anyof_with_base_schema_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_anyof_with_base_schema_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -41,7 +66,20 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_anyof_with_base_schema_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -93,6 +131,44 @@ class BaseApi(api_client.Api): class PostAnyofWithBaseSchemaRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_anyof_with_base_schema_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_anyof_with_base_schema_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_anyof_with_base_schema_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_anyof_with_base_schema_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -101,7 +177,7 @@ class PostAnyofWithBaseSchemaRequestBody(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_anyof_with_base_schema_request_body_oapg( @@ -116,6 +192,44 @@ class PostAnyofWithBaseSchemaRequestBody(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -124,7 +238,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_anyof_with_base_schema_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_with_one_empty_schema_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_with_one_empty_schema_request_body/post.py index 7a0c2e75cb5..2a32844ed8d 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_with_one_empty_schema_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_with_one_empty_schema_request_body/post.py @@ -59,6 +59,31 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_anyof_with_one_empty_schema_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_anyof_with_one_empty_schema_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_anyof_with_one_empty_schema_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -67,7 +92,20 @@ def _post_anyof_with_one_empty_schema_request_body_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_anyof_with_one_empty_schema_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -119,6 +157,44 @@ class instances class PostAnyofWithOneEmptySchemaRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_anyof_with_one_empty_schema_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_anyof_with_one_empty_schema_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_anyof_with_one_empty_schema_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_anyof_with_one_empty_schema_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -127,7 +203,7 @@ def post_anyof_with_one_empty_schema_request_body( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_anyof_with_one_empty_schema_request_body_oapg( @@ -142,6 +218,44 @@ def post_anyof_with_one_empty_schema_request_body( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -150,7 +264,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_anyof_with_one_empty_schema_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_with_one_empty_schema_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_with_one_empty_schema_request_body/post.pyi index bdffc46e920..d14b78e30c8 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_with_one_empty_schema_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_with_one_empty_schema_request_body/post.pyi @@ -33,6 +33,31 @@ SchemaForRequestBodyApplicationJson = AnyofWithOneEmptySchema class BaseApi(api_client.Api): + @typing.overload + def _post_anyof_with_one_empty_schema_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_anyof_with_one_empty_schema_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_anyof_with_one_empty_schema_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -41,7 +66,20 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_anyof_with_one_empty_schema_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -93,6 +131,44 @@ class BaseApi(api_client.Api): class PostAnyofWithOneEmptySchemaRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_anyof_with_one_empty_schema_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_anyof_with_one_empty_schema_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_anyof_with_one_empty_schema_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_anyof_with_one_empty_schema_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -101,7 +177,7 @@ class PostAnyofWithOneEmptySchemaRequestBody(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_anyof_with_one_empty_schema_request_body_oapg( @@ -116,6 +192,44 @@ class PostAnyofWithOneEmptySchemaRequestBody(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -124,7 +238,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_anyof_with_one_empty_schema_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post.py index 0ea29561b94..32e2db24e5c 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post.py @@ -59,6 +59,31 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_array_type_matches_arrays_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_array_type_matches_arrays_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_array_type_matches_arrays_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -67,7 +92,20 @@ def _post_array_type_matches_arrays_request_body_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_array_type_matches_arrays_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -119,6 +157,44 @@ class instances class PostArrayTypeMatchesArraysRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_array_type_matches_arrays_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_array_type_matches_arrays_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_array_type_matches_arrays_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_array_type_matches_arrays_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -127,7 +203,7 @@ def post_array_type_matches_arrays_request_body( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_array_type_matches_arrays_request_body_oapg( @@ -142,6 +218,44 @@ def post_array_type_matches_arrays_request_body( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -150,7 +264,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_array_type_matches_arrays_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post.pyi index eb6d81170cd..e910489bff4 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post.pyi @@ -33,6 +33,31 @@ SchemaForRequestBodyApplicationJson = ArrayTypeMatchesArrays class BaseApi(api_client.Api): + @typing.overload + def _post_array_type_matches_arrays_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_array_type_matches_arrays_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_array_type_matches_arrays_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -41,7 +66,20 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_array_type_matches_arrays_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -93,6 +131,44 @@ class BaseApi(api_client.Api): class PostArrayTypeMatchesArraysRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_array_type_matches_arrays_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_array_type_matches_arrays_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_array_type_matches_arrays_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_array_type_matches_arrays_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -101,7 +177,7 @@ class PostArrayTypeMatchesArraysRequestBody(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_array_type_matches_arrays_request_body_oapg( @@ -116,6 +192,44 @@ class PostArrayTypeMatchesArraysRequestBody(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -124,7 +238,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_array_type_matches_arrays_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_boolean_type_matches_booleans_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_boolean_type_matches_booleans_request_body/post.py index 169b8b2a458..37a1d196b8c 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_boolean_type_matches_booleans_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_boolean_type_matches_booleans_request_body/post.py @@ -57,6 +57,31 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_boolean_type_matches_booleans_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, bool, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_boolean_type_matches_booleans_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, bool, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_boolean_type_matches_booleans_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, bool, ], @@ -65,7 +90,20 @@ def _post_boolean_type_matches_booleans_request_body_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_boolean_type_matches_booleans_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, bool, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -117,6 +155,44 @@ class instances class PostBooleanTypeMatchesBooleansRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_boolean_type_matches_booleans_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, bool, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_boolean_type_matches_booleans_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, bool, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_boolean_type_matches_booleans_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, bool, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_boolean_type_matches_booleans_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, bool, ], @@ -125,7 +201,7 @@ def post_boolean_type_matches_booleans_request_body( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_boolean_type_matches_booleans_request_body_oapg( @@ -140,6 +216,44 @@ def post_boolean_type_matches_booleans_request_body( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, bool, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, bool, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, bool, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, bool, ], @@ -148,7 +262,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_boolean_type_matches_booleans_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_boolean_type_matches_booleans_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_boolean_type_matches_booleans_request_body/post.pyi index d925f9924b0..6a0fe5541c1 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_boolean_type_matches_booleans_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_boolean_type_matches_booleans_request_body/post.pyi @@ -31,6 +31,31 @@ SchemaForRequestBodyApplicationJson = schemas.BoolSchema class BaseApi(api_client.Api): + @typing.overload + def _post_boolean_type_matches_booleans_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, bool, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_boolean_type_matches_booleans_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, bool, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_boolean_type_matches_booleans_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, bool, ], @@ -39,7 +64,20 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_boolean_type_matches_booleans_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, bool, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -91,6 +129,44 @@ class BaseApi(api_client.Api): class PostBooleanTypeMatchesBooleansRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_boolean_type_matches_booleans_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, bool, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_boolean_type_matches_booleans_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, bool, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_boolean_type_matches_booleans_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, bool, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_boolean_type_matches_booleans_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, bool, ], @@ -99,7 +175,7 @@ class PostBooleanTypeMatchesBooleansRequestBody(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_boolean_type_matches_booleans_request_body_oapg( @@ -114,6 +190,44 @@ class PostBooleanTypeMatchesBooleansRequestBody(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, bool, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, bool, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, bool, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, bool, ], @@ -122,7 +236,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_boolean_type_matches_booleans_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_int_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_int_request_body/post.py index d85026f9e85..2ea6a000c20 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_int_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_int_request_body/post.py @@ -59,6 +59,31 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_by_int_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_by_int_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_by_int_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -67,7 +92,20 @@ def _post_by_int_request_body_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_by_int_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -119,6 +157,44 @@ class instances class PostByIntRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_by_int_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_by_int_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_by_int_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_by_int_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -127,7 +203,7 @@ def post_by_int_request_body( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_by_int_request_body_oapg( @@ -142,6 +218,44 @@ def post_by_int_request_body( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -150,7 +264,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_by_int_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_int_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_int_request_body/post.pyi index 8c041d1c729..1abac10f02e 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_int_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_int_request_body/post.pyi @@ -33,6 +33,31 @@ SchemaForRequestBodyApplicationJson = ByInt class BaseApi(api_client.Api): + @typing.overload + def _post_by_int_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_by_int_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_by_int_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -41,7 +66,20 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_by_int_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -93,6 +131,44 @@ class BaseApi(api_client.Api): class PostByIntRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_by_int_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_by_int_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_by_int_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_by_int_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -101,7 +177,7 @@ class PostByIntRequestBody(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_by_int_request_body_oapg( @@ -116,6 +192,44 @@ class PostByIntRequestBody(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -124,7 +238,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_by_int_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_number_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_number_request_body/post.py index 94ae9d6b9dd..edb82dd228d 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_number_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_number_request_body/post.py @@ -59,6 +59,31 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_by_number_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_by_number_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_by_number_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -67,7 +92,20 @@ def _post_by_number_request_body_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_by_number_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -119,6 +157,44 @@ class instances class PostByNumberRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_by_number_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_by_number_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_by_number_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_by_number_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -127,7 +203,7 @@ def post_by_number_request_body( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_by_number_request_body_oapg( @@ -142,6 +218,44 @@ def post_by_number_request_body( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -150,7 +264,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_by_number_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_number_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_number_request_body/post.pyi index 3993efa159e..703b98f665c 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_number_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_number_request_body/post.pyi @@ -33,6 +33,31 @@ SchemaForRequestBodyApplicationJson = ByNumber class BaseApi(api_client.Api): + @typing.overload + def _post_by_number_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_by_number_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_by_number_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -41,7 +66,20 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_by_number_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -93,6 +131,44 @@ class BaseApi(api_client.Api): class PostByNumberRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_by_number_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_by_number_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_by_number_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_by_number_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -101,7 +177,7 @@ class PostByNumberRequestBody(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_by_number_request_body_oapg( @@ -116,6 +192,44 @@ class PostByNumberRequestBody(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -124,7 +238,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_by_number_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_small_number_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_small_number_request_body/post.py index 0910a13fa3b..160d3a75ab8 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_small_number_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_small_number_request_body/post.py @@ -59,6 +59,31 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_by_small_number_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_by_small_number_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_by_small_number_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -67,7 +92,20 @@ def _post_by_small_number_request_body_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_by_small_number_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -119,6 +157,44 @@ class instances class PostBySmallNumberRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_by_small_number_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_by_small_number_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_by_small_number_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_by_small_number_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -127,7 +203,7 @@ def post_by_small_number_request_body( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_by_small_number_request_body_oapg( @@ -142,6 +218,44 @@ def post_by_small_number_request_body( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -150,7 +264,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_by_small_number_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_small_number_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_small_number_request_body/post.pyi index 36d5e3ab300..d8c40e9931b 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_small_number_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_small_number_request_body/post.pyi @@ -33,6 +33,31 @@ SchemaForRequestBodyApplicationJson = BySmallNumber class BaseApi(api_client.Api): + @typing.overload + def _post_by_small_number_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_by_small_number_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_by_small_number_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -41,7 +66,20 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_by_small_number_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -93,6 +131,44 @@ class BaseApi(api_client.Api): class PostBySmallNumberRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_by_small_number_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_by_small_number_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_by_small_number_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_by_small_number_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -101,7 +177,7 @@ class PostBySmallNumberRequestBody(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_by_small_number_request_body_oapg( @@ -116,6 +192,44 @@ class PostBySmallNumberRequestBody(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -124,7 +238,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_by_small_number_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_date_time_format_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_date_time_format_request_body/post.py index 91a8f4e79e0..0dab618888a 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_date_time_format_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_date_time_format_request_body/post.py @@ -80,6 +80,31 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_date_time_format_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_date_time_format_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_date_time_format_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], @@ -88,7 +113,20 @@ def _post_date_time_format_request_body_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_date_time_format_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -140,6 +178,44 @@ class instances class PostDateTimeFormatRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_date_time_format_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_date_time_format_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_date_time_format_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_date_time_format_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], @@ -148,7 +224,7 @@ def post_date_time_format_request_body( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_date_time_format_request_body_oapg( @@ -163,6 +239,44 @@ def post_date_time_format_request_body( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], @@ -171,7 +285,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_date_time_format_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_date_time_format_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_date_time_format_request_body/post.pyi index 3b4aa6f83e8..70cad94af25 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_date_time_format_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_date_time_format_request_body/post.pyi @@ -54,6 +54,31 @@ class SchemaForRequestBodyApplicationJson( class BaseApi(api_client.Api): + @typing.overload + def _post_date_time_format_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_date_time_format_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_date_time_format_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], @@ -62,7 +87,20 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_date_time_format_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -114,6 +152,44 @@ class BaseApi(api_client.Api): class PostDateTimeFormatRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_date_time_format_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_date_time_format_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_date_time_format_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_date_time_format_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], @@ -122,7 +198,7 @@ class PostDateTimeFormatRequestBody(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_date_time_format_request_body_oapg( @@ -137,6 +213,44 @@ class PostDateTimeFormatRequestBody(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], @@ -145,7 +259,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_date_time_format_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_email_format_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_email_format_request_body/post.py index 61318d6c154..4bd894ac7db 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_email_format_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_email_format_request_body/post.py @@ -79,6 +79,31 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_email_format_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_email_format_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_email_format_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], @@ -87,7 +112,20 @@ def _post_email_format_request_body_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_email_format_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -139,6 +177,44 @@ class instances class PostEmailFormatRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_email_format_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_email_format_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_email_format_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_email_format_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], @@ -147,7 +223,7 @@ def post_email_format_request_body( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_email_format_request_body_oapg( @@ -162,6 +238,44 @@ def post_email_format_request_body( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], @@ -170,7 +284,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_email_format_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_email_format_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_email_format_request_body/post.pyi index 58a00c65573..26dd3d1b04f 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_email_format_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_email_format_request_body/post.pyi @@ -53,6 +53,31 @@ class SchemaForRequestBodyApplicationJson( class BaseApi(api_client.Api): + @typing.overload + def _post_email_format_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_email_format_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_email_format_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], @@ -61,7 +86,20 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_email_format_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -113,6 +151,44 @@ class BaseApi(api_client.Api): class PostEmailFormatRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_email_format_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_email_format_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_email_format_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_email_format_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], @@ -121,7 +197,7 @@ class PostEmailFormatRequestBody(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_email_format_request_body_oapg( @@ -136,6 +212,44 @@ class PostEmailFormatRequestBody(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], @@ -144,7 +258,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_email_format_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post.py index 70c9c4adb44..10047d90181 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post.py @@ -59,6 +59,31 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_enum_with0_does_not_match_false_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_enum_with0_does_not_match_false_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_enum_with0_does_not_match_false_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -67,7 +92,20 @@ def _post_enum_with0_does_not_match_false_request_body_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_enum_with0_does_not_match_false_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -119,6 +157,44 @@ class instances class PostEnumWith0DoesNotMatchFalseRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_enum_with0_does_not_match_false_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_enum_with0_does_not_match_false_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_enum_with0_does_not_match_false_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_enum_with0_does_not_match_false_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -127,7 +203,7 @@ def post_enum_with0_does_not_match_false_request_body( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_enum_with0_does_not_match_false_request_body_oapg( @@ -142,6 +218,44 @@ def post_enum_with0_does_not_match_false_request_body( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -150,7 +264,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_enum_with0_does_not_match_false_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post.pyi index e55ac837734..d4f801495e5 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post.pyi @@ -33,6 +33,31 @@ SchemaForRequestBodyApplicationJson = EnumWith0DoesNotMatchFalse class BaseApi(api_client.Api): + @typing.overload + def _post_enum_with0_does_not_match_false_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_enum_with0_does_not_match_false_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_enum_with0_does_not_match_false_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -41,7 +66,20 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_enum_with0_does_not_match_false_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -93,6 +131,44 @@ class BaseApi(api_client.Api): class PostEnumWith0DoesNotMatchFalseRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_enum_with0_does_not_match_false_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_enum_with0_does_not_match_false_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_enum_with0_does_not_match_false_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_enum_with0_does_not_match_false_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -101,7 +177,7 @@ class PostEnumWith0DoesNotMatchFalseRequestBody(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_enum_with0_does_not_match_false_request_body_oapg( @@ -116,6 +192,44 @@ class PostEnumWith0DoesNotMatchFalseRequestBody(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -124,7 +238,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_enum_with0_does_not_match_false_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with1_does_not_match_true_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with1_does_not_match_true_request_body/post.py index 3dd0079389c..15d5b96ff0c 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with1_does_not_match_true_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with1_does_not_match_true_request_body/post.py @@ -59,6 +59,31 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_enum_with1_does_not_match_true_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_enum_with1_does_not_match_true_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_enum_with1_does_not_match_true_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -67,7 +92,20 @@ def _post_enum_with1_does_not_match_true_request_body_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_enum_with1_does_not_match_true_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -119,6 +157,44 @@ class instances class PostEnumWith1DoesNotMatchTrueRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_enum_with1_does_not_match_true_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_enum_with1_does_not_match_true_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_enum_with1_does_not_match_true_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_enum_with1_does_not_match_true_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -127,7 +203,7 @@ def post_enum_with1_does_not_match_true_request_body( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_enum_with1_does_not_match_true_request_body_oapg( @@ -142,6 +218,44 @@ def post_enum_with1_does_not_match_true_request_body( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -150,7 +264,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_enum_with1_does_not_match_true_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with1_does_not_match_true_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with1_does_not_match_true_request_body/post.pyi index ab02d1d291a..6282749456b 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with1_does_not_match_true_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with1_does_not_match_true_request_body/post.pyi @@ -33,6 +33,31 @@ SchemaForRequestBodyApplicationJson = EnumWith1DoesNotMatchTrue class BaseApi(api_client.Api): + @typing.overload + def _post_enum_with1_does_not_match_true_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_enum_with1_does_not_match_true_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_enum_with1_does_not_match_true_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -41,7 +66,20 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_enum_with1_does_not_match_true_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -93,6 +131,44 @@ class BaseApi(api_client.Api): class PostEnumWith1DoesNotMatchTrueRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_enum_with1_does_not_match_true_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_enum_with1_does_not_match_true_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_enum_with1_does_not_match_true_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_enum_with1_does_not_match_true_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -101,7 +177,7 @@ class PostEnumWith1DoesNotMatchTrueRequestBody(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_enum_with1_does_not_match_true_request_body_oapg( @@ -116,6 +192,44 @@ class PostEnumWith1DoesNotMatchTrueRequestBody(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -124,7 +238,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_enum_with1_does_not_match_true_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_escaped_characters_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_escaped_characters_request_body/post.py index c494044acbb..b3c60ded73f 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_escaped_characters_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_escaped_characters_request_body/post.py @@ -59,6 +59,31 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_enum_with_escaped_characters_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_enum_with_escaped_characters_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_enum_with_escaped_characters_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -67,7 +92,20 @@ def _post_enum_with_escaped_characters_request_body_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_enum_with_escaped_characters_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -119,6 +157,44 @@ class instances class PostEnumWithEscapedCharactersRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_enum_with_escaped_characters_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_enum_with_escaped_characters_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_enum_with_escaped_characters_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_enum_with_escaped_characters_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -127,7 +203,7 @@ def post_enum_with_escaped_characters_request_body( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_enum_with_escaped_characters_request_body_oapg( @@ -142,6 +218,44 @@ def post_enum_with_escaped_characters_request_body( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -150,7 +264,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_enum_with_escaped_characters_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_escaped_characters_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_escaped_characters_request_body/post.pyi index 1176a75ee70..8d2e3daa4c4 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_escaped_characters_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_escaped_characters_request_body/post.pyi @@ -33,6 +33,31 @@ SchemaForRequestBodyApplicationJson = EnumWithEscapedCharacters class BaseApi(api_client.Api): + @typing.overload + def _post_enum_with_escaped_characters_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_enum_with_escaped_characters_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_enum_with_escaped_characters_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -41,7 +66,20 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_enum_with_escaped_characters_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -93,6 +131,44 @@ class BaseApi(api_client.Api): class PostEnumWithEscapedCharactersRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_enum_with_escaped_characters_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_enum_with_escaped_characters_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_enum_with_escaped_characters_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_enum_with_escaped_characters_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -101,7 +177,7 @@ class PostEnumWithEscapedCharactersRequestBody(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_enum_with_escaped_characters_request_body_oapg( @@ -116,6 +192,44 @@ class PostEnumWithEscapedCharactersRequestBody(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -124,7 +238,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_enum_with_escaped_characters_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_false_does_not_match0_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_false_does_not_match0_request_body/post.py index 402f766def6..f996c4291ea 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_false_does_not_match0_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_false_does_not_match0_request_body/post.py @@ -59,6 +59,31 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_enum_with_false_does_not_match0_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_enum_with_false_does_not_match0_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_enum_with_false_does_not_match0_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -67,7 +92,20 @@ def _post_enum_with_false_does_not_match0_request_body_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_enum_with_false_does_not_match0_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -119,6 +157,44 @@ class instances class PostEnumWithFalseDoesNotMatch0RequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_enum_with_false_does_not_match0_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_enum_with_false_does_not_match0_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_enum_with_false_does_not_match0_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_enum_with_false_does_not_match0_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -127,7 +203,7 @@ def post_enum_with_false_does_not_match0_request_body( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_enum_with_false_does_not_match0_request_body_oapg( @@ -142,6 +218,44 @@ def post_enum_with_false_does_not_match0_request_body( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -150,7 +264,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_enum_with_false_does_not_match0_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_false_does_not_match0_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_false_does_not_match0_request_body/post.pyi index 557cd7d28f9..ea9a84ea09a 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_false_does_not_match0_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_false_does_not_match0_request_body/post.pyi @@ -33,6 +33,31 @@ SchemaForRequestBodyApplicationJson = EnumWithFalseDoesNotMatch0 class BaseApi(api_client.Api): + @typing.overload + def _post_enum_with_false_does_not_match0_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_enum_with_false_does_not_match0_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_enum_with_false_does_not_match0_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -41,7 +66,20 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_enum_with_false_does_not_match0_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -93,6 +131,44 @@ class BaseApi(api_client.Api): class PostEnumWithFalseDoesNotMatch0RequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_enum_with_false_does_not_match0_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_enum_with_false_does_not_match0_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_enum_with_false_does_not_match0_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_enum_with_false_does_not_match0_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -101,7 +177,7 @@ class PostEnumWithFalseDoesNotMatch0RequestBody(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_enum_with_false_does_not_match0_request_body_oapg( @@ -116,6 +192,44 @@ class PostEnumWithFalseDoesNotMatch0RequestBody(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -124,7 +238,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_enum_with_false_does_not_match0_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_true_does_not_match1_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_true_does_not_match1_request_body/post.py index 67e63b0793f..091a6e2e881 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_true_does_not_match1_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_true_does_not_match1_request_body/post.py @@ -59,6 +59,31 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_enum_with_true_does_not_match1_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_enum_with_true_does_not_match1_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_enum_with_true_does_not_match1_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -67,7 +92,20 @@ def _post_enum_with_true_does_not_match1_request_body_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_enum_with_true_does_not_match1_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -119,6 +157,44 @@ class instances class PostEnumWithTrueDoesNotMatch1RequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_enum_with_true_does_not_match1_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_enum_with_true_does_not_match1_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_enum_with_true_does_not_match1_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_enum_with_true_does_not_match1_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -127,7 +203,7 @@ def post_enum_with_true_does_not_match1_request_body( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_enum_with_true_does_not_match1_request_body_oapg( @@ -142,6 +218,44 @@ def post_enum_with_true_does_not_match1_request_body( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -150,7 +264,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_enum_with_true_does_not_match1_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_true_does_not_match1_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_true_does_not_match1_request_body/post.pyi index 9dca08f0d85..3c8522ff484 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_true_does_not_match1_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_true_does_not_match1_request_body/post.pyi @@ -33,6 +33,31 @@ SchemaForRequestBodyApplicationJson = EnumWithTrueDoesNotMatch1 class BaseApi(api_client.Api): + @typing.overload + def _post_enum_with_true_does_not_match1_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_enum_with_true_does_not_match1_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_enum_with_true_does_not_match1_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -41,7 +66,20 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_enum_with_true_does_not_match1_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -93,6 +131,44 @@ class BaseApi(api_client.Api): class PostEnumWithTrueDoesNotMatch1RequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_enum_with_true_does_not_match1_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_enum_with_true_does_not_match1_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_enum_with_true_does_not_match1_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_enum_with_true_does_not_match1_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -101,7 +177,7 @@ class PostEnumWithTrueDoesNotMatch1RequestBody(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_enum_with_true_does_not_match1_request_body_oapg( @@ -116,6 +192,44 @@ class PostEnumWithTrueDoesNotMatch1RequestBody(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -124,7 +238,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_enum_with_true_does_not_match1_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post.py index 0027bd0edda..da7b6731817 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post.py @@ -59,6 +59,31 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_enums_in_properties_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_enums_in_properties_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_enums_in_properties_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -67,7 +92,20 @@ def _post_enums_in_properties_request_body_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_enums_in_properties_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -119,6 +157,44 @@ class instances class PostEnumsInPropertiesRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_enums_in_properties_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_enums_in_properties_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_enums_in_properties_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_enums_in_properties_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -127,7 +203,7 @@ def post_enums_in_properties_request_body( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_enums_in_properties_request_body_oapg( @@ -142,6 +218,44 @@ def post_enums_in_properties_request_body( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -150,7 +264,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_enums_in_properties_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post.pyi index 7068a12c3f7..c613b2a013a 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post.pyi @@ -33,6 +33,31 @@ SchemaForRequestBodyApplicationJson = EnumsInProperties class BaseApi(api_client.Api): + @typing.overload + def _post_enums_in_properties_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_enums_in_properties_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_enums_in_properties_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -41,7 +66,20 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_enums_in_properties_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -93,6 +131,44 @@ class BaseApi(api_client.Api): class PostEnumsInPropertiesRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_enums_in_properties_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_enums_in_properties_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_enums_in_properties_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_enums_in_properties_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -101,7 +177,7 @@ class PostEnumsInPropertiesRequestBody(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_enums_in_properties_request_body_oapg( @@ -116,6 +192,44 @@ class PostEnumsInPropertiesRequestBody(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -124,7 +238,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_enums_in_properties_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_forbidden_property_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_forbidden_property_request_body/post.py index 48139406bbe..02973a8577c 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_forbidden_property_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_forbidden_property_request_body/post.py @@ -59,6 +59,31 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_forbidden_property_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_forbidden_property_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_forbidden_property_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -67,7 +92,20 @@ def _post_forbidden_property_request_body_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_forbidden_property_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -119,6 +157,44 @@ class instances class PostForbiddenPropertyRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_forbidden_property_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_forbidden_property_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_forbidden_property_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_forbidden_property_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -127,7 +203,7 @@ def post_forbidden_property_request_body( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_forbidden_property_request_body_oapg( @@ -142,6 +218,44 @@ def post_forbidden_property_request_body( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -150,7 +264,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_forbidden_property_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_forbidden_property_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_forbidden_property_request_body/post.pyi index d9a90d32798..c2bba9c6673 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_forbidden_property_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_forbidden_property_request_body/post.pyi @@ -33,6 +33,31 @@ SchemaForRequestBodyApplicationJson = ForbiddenProperty class BaseApi(api_client.Api): + @typing.overload + def _post_forbidden_property_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_forbidden_property_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_forbidden_property_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -41,7 +66,20 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_forbidden_property_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -93,6 +131,44 @@ class BaseApi(api_client.Api): class PostForbiddenPropertyRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_forbidden_property_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_forbidden_property_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_forbidden_property_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_forbidden_property_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -101,7 +177,7 @@ class PostForbiddenPropertyRequestBody(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_forbidden_property_request_body_oapg( @@ -116,6 +192,44 @@ class PostForbiddenPropertyRequestBody(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -124,7 +238,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_forbidden_property_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_hostname_format_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_hostname_format_request_body/post.py index 75bca7a9bdc..88dee0dadde 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_hostname_format_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_hostname_format_request_body/post.py @@ -79,6 +79,31 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_hostname_format_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_hostname_format_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_hostname_format_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], @@ -87,7 +112,20 @@ def _post_hostname_format_request_body_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_hostname_format_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -139,6 +177,44 @@ class instances class PostHostnameFormatRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_hostname_format_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_hostname_format_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_hostname_format_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_hostname_format_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], @@ -147,7 +223,7 @@ def post_hostname_format_request_body( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_hostname_format_request_body_oapg( @@ -162,6 +238,44 @@ def post_hostname_format_request_body( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], @@ -170,7 +284,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_hostname_format_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_hostname_format_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_hostname_format_request_body/post.pyi index ef40355adc4..9f4d07563e1 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_hostname_format_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_hostname_format_request_body/post.pyi @@ -53,6 +53,31 @@ class SchemaForRequestBodyApplicationJson( class BaseApi(api_client.Api): + @typing.overload + def _post_hostname_format_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_hostname_format_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_hostname_format_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], @@ -61,7 +86,20 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_hostname_format_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -113,6 +151,44 @@ class BaseApi(api_client.Api): class PostHostnameFormatRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_hostname_format_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_hostname_format_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_hostname_format_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_hostname_format_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], @@ -121,7 +197,7 @@ class PostHostnameFormatRequestBody(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_hostname_format_request_body_oapg( @@ -136,6 +212,44 @@ class PostHostnameFormatRequestBody(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], @@ -144,7 +258,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_hostname_format_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post.py index 1c0ac97d064..0220e9c7554 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post.py @@ -57,6 +57,31 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_integer_type_matches_integers_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, decimal.Decimal, int, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_integer_type_matches_integers_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, decimal.Decimal, int, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_integer_type_matches_integers_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, decimal.Decimal, int, ], @@ -65,7 +90,20 @@ def _post_integer_type_matches_integers_request_body_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_integer_type_matches_integers_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, decimal.Decimal, int, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -117,6 +155,44 @@ class instances class PostIntegerTypeMatchesIntegersRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_integer_type_matches_integers_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, decimal.Decimal, int, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_integer_type_matches_integers_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, decimal.Decimal, int, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_integer_type_matches_integers_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, decimal.Decimal, int, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_integer_type_matches_integers_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, decimal.Decimal, int, ], @@ -125,7 +201,7 @@ def post_integer_type_matches_integers_request_body( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_integer_type_matches_integers_request_body_oapg( @@ -140,6 +216,44 @@ def post_integer_type_matches_integers_request_body( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, decimal.Decimal, int, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, decimal.Decimal, int, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, decimal.Decimal, int, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, decimal.Decimal, int, ], @@ -148,7 +262,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_integer_type_matches_integers_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post.pyi index 7dd7bffef9e..81462af11d1 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post.pyi @@ -31,6 +31,31 @@ SchemaForRequestBodyApplicationJson = schemas.IntSchema class BaseApi(api_client.Api): + @typing.overload + def _post_integer_type_matches_integers_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, decimal.Decimal, int, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_integer_type_matches_integers_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, decimal.Decimal, int, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_integer_type_matches_integers_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, decimal.Decimal, int, ], @@ -39,7 +64,20 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_integer_type_matches_integers_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, decimal.Decimal, int, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -91,6 +129,44 @@ class BaseApi(api_client.Api): class PostIntegerTypeMatchesIntegersRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_integer_type_matches_integers_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, decimal.Decimal, int, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_integer_type_matches_integers_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, decimal.Decimal, int, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_integer_type_matches_integers_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, decimal.Decimal, int, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_integer_type_matches_integers_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, decimal.Decimal, int, ], @@ -99,7 +175,7 @@ class PostIntegerTypeMatchesIntegersRequestBody(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_integer_type_matches_integers_request_body_oapg( @@ -114,6 +190,44 @@ class PostIntegerTypeMatchesIntegersRequestBody(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, decimal.Decimal, int, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, decimal.Decimal, int, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, decimal.Decimal, int, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, decimal.Decimal, int, ], @@ -122,7 +236,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_integer_type_matches_integers_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body/post.py index 849040ab750..bc43fff9da0 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body/post.py @@ -59,6 +59,31 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -67,7 +92,20 @@ def _post_invalid_instance_should_not_raise_error_when_float_division_inf_reques timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -119,6 +157,44 @@ class instances class PostInvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInfRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -127,7 +203,7 @@ def post_invalid_instance_should_not_raise_error_when_float_division_inf_request timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body_oapg( @@ -142,6 +218,44 @@ def post_invalid_instance_should_not_raise_error_when_float_division_inf_request class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -150,7 +264,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body/post.pyi index f6b9fe70ca2..77acdccea43 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body/post.pyi @@ -33,6 +33,31 @@ SchemaForRequestBodyApplicationJson = InvalidInstanceShouldNotRaiseErrorWhenFloa class BaseApi(api_client.Api): + @typing.overload + def _post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -41,7 +66,20 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -93,6 +131,44 @@ class BaseApi(api_client.Api): class PostInvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInfRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -101,7 +177,7 @@ class PostInvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInfRequestBody(Base timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body_oapg( @@ -116,6 +192,44 @@ class PostInvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInfRequestBody(Base class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -124,7 +238,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_invalid_string_value_for_default_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_invalid_string_value_for_default_request_body/post.py index 024b72c736a..d246fc7a5e4 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_invalid_string_value_for_default_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_invalid_string_value_for_default_request_body/post.py @@ -59,6 +59,31 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_invalid_string_value_for_default_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_invalid_string_value_for_default_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_invalid_string_value_for_default_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -67,7 +92,20 @@ def _post_invalid_string_value_for_default_request_body_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_invalid_string_value_for_default_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -119,6 +157,44 @@ class instances class PostInvalidStringValueForDefaultRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_invalid_string_value_for_default_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_invalid_string_value_for_default_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_invalid_string_value_for_default_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_invalid_string_value_for_default_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -127,7 +203,7 @@ def post_invalid_string_value_for_default_request_body( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_invalid_string_value_for_default_request_body_oapg( @@ -142,6 +218,44 @@ def post_invalid_string_value_for_default_request_body( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -150,7 +264,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_invalid_string_value_for_default_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_invalid_string_value_for_default_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_invalid_string_value_for_default_request_body/post.pyi index 43cd727410a..5abb7516496 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_invalid_string_value_for_default_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_invalid_string_value_for_default_request_body/post.pyi @@ -33,6 +33,31 @@ SchemaForRequestBodyApplicationJson = InvalidStringValueForDefault class BaseApi(api_client.Api): + @typing.overload + def _post_invalid_string_value_for_default_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_invalid_string_value_for_default_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_invalid_string_value_for_default_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -41,7 +66,20 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_invalid_string_value_for_default_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -93,6 +131,44 @@ class BaseApi(api_client.Api): class PostInvalidStringValueForDefaultRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_invalid_string_value_for_default_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_invalid_string_value_for_default_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_invalid_string_value_for_default_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_invalid_string_value_for_default_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -101,7 +177,7 @@ class PostInvalidStringValueForDefaultRequestBody(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_invalid_string_value_for_default_request_body_oapg( @@ -116,6 +192,44 @@ class PostInvalidStringValueForDefaultRequestBody(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -124,7 +238,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_invalid_string_value_for_default_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ipv4_format_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ipv4_format_request_body/post.py index 39e10fae46e..bc9766ea4cc 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ipv4_format_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ipv4_format_request_body/post.py @@ -79,6 +79,31 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_ipv4_format_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_ipv4_format_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_ipv4_format_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], @@ -87,7 +112,20 @@ def _post_ipv4_format_request_body_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_ipv4_format_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -139,6 +177,44 @@ class instances class PostIpv4FormatRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_ipv4_format_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_ipv4_format_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_ipv4_format_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_ipv4_format_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], @@ -147,7 +223,7 @@ def post_ipv4_format_request_body( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_ipv4_format_request_body_oapg( @@ -162,6 +238,44 @@ def post_ipv4_format_request_body( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], @@ -170,7 +284,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_ipv4_format_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ipv4_format_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ipv4_format_request_body/post.pyi index 3aba71094cd..5a612d67826 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ipv4_format_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ipv4_format_request_body/post.pyi @@ -53,6 +53,31 @@ class SchemaForRequestBodyApplicationJson( class BaseApi(api_client.Api): + @typing.overload + def _post_ipv4_format_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_ipv4_format_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_ipv4_format_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], @@ -61,7 +86,20 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_ipv4_format_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -113,6 +151,44 @@ class BaseApi(api_client.Api): class PostIpv4FormatRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_ipv4_format_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_ipv4_format_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_ipv4_format_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_ipv4_format_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], @@ -121,7 +197,7 @@ class PostIpv4FormatRequestBody(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_ipv4_format_request_body_oapg( @@ -136,6 +212,44 @@ class PostIpv4FormatRequestBody(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], @@ -144,7 +258,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_ipv4_format_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ipv6_format_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ipv6_format_request_body/post.py index c2195715687..5e40d534e55 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ipv6_format_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ipv6_format_request_body/post.py @@ -79,6 +79,31 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_ipv6_format_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_ipv6_format_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_ipv6_format_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], @@ -87,7 +112,20 @@ def _post_ipv6_format_request_body_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_ipv6_format_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -139,6 +177,44 @@ class instances class PostIpv6FormatRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_ipv6_format_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_ipv6_format_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_ipv6_format_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_ipv6_format_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], @@ -147,7 +223,7 @@ def post_ipv6_format_request_body( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_ipv6_format_request_body_oapg( @@ -162,6 +238,44 @@ def post_ipv6_format_request_body( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], @@ -170,7 +284,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_ipv6_format_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ipv6_format_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ipv6_format_request_body/post.pyi index da20f09b8bf..101be22c24a 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ipv6_format_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ipv6_format_request_body/post.pyi @@ -53,6 +53,31 @@ class SchemaForRequestBodyApplicationJson( class BaseApi(api_client.Api): + @typing.overload + def _post_ipv6_format_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_ipv6_format_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_ipv6_format_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], @@ -61,7 +86,20 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_ipv6_format_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -113,6 +151,44 @@ class BaseApi(api_client.Api): class PostIpv6FormatRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_ipv6_format_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_ipv6_format_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_ipv6_format_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_ipv6_format_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], @@ -121,7 +197,7 @@ class PostIpv6FormatRequestBody(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_ipv6_format_request_body_oapg( @@ -136,6 +212,44 @@ class PostIpv6FormatRequestBody(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], @@ -144,7 +258,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_ipv6_format_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post.py index 86c63e8613d..4029648143e 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post.py @@ -79,6 +79,31 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_json_pointer_format_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_json_pointer_format_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_json_pointer_format_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], @@ -87,7 +112,20 @@ def _post_json_pointer_format_request_body_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_json_pointer_format_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -139,6 +177,44 @@ class instances class PostJsonPointerFormatRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_json_pointer_format_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_json_pointer_format_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_json_pointer_format_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_json_pointer_format_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], @@ -147,7 +223,7 @@ def post_json_pointer_format_request_body( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_json_pointer_format_request_body_oapg( @@ -162,6 +238,44 @@ def post_json_pointer_format_request_body( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], @@ -170,7 +284,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_json_pointer_format_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post.pyi index cf655dc8344..dd338d2b745 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post.pyi @@ -53,6 +53,31 @@ class SchemaForRequestBodyApplicationJson( class BaseApi(api_client.Api): + @typing.overload + def _post_json_pointer_format_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_json_pointer_format_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_json_pointer_format_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], @@ -61,7 +86,20 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_json_pointer_format_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -113,6 +151,44 @@ class BaseApi(api_client.Api): class PostJsonPointerFormatRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_json_pointer_format_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_json_pointer_format_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_json_pointer_format_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_json_pointer_format_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], @@ -121,7 +197,7 @@ class PostJsonPointerFormatRequestBody(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_json_pointer_format_request_body_oapg( @@ -136,6 +212,44 @@ class PostJsonPointerFormatRequestBody(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], @@ -144,7 +258,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_json_pointer_format_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maximum_validation_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maximum_validation_request_body/post.py index acc6b58ca35..c2802178ba5 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maximum_validation_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maximum_validation_request_body/post.py @@ -59,6 +59,31 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_maximum_validation_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_maximum_validation_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_maximum_validation_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -67,7 +92,20 @@ def _post_maximum_validation_request_body_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_maximum_validation_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -119,6 +157,44 @@ class instances class PostMaximumValidationRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_maximum_validation_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_maximum_validation_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_maximum_validation_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_maximum_validation_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -127,7 +203,7 @@ def post_maximum_validation_request_body( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_maximum_validation_request_body_oapg( @@ -142,6 +218,44 @@ def post_maximum_validation_request_body( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -150,7 +264,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_maximum_validation_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maximum_validation_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maximum_validation_request_body/post.pyi index a0fe21e85a9..c7ed21f2364 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maximum_validation_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maximum_validation_request_body/post.pyi @@ -33,6 +33,31 @@ SchemaForRequestBodyApplicationJson = MaximumValidation class BaseApi(api_client.Api): + @typing.overload + def _post_maximum_validation_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_maximum_validation_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_maximum_validation_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -41,7 +66,20 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_maximum_validation_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -93,6 +131,44 @@ class BaseApi(api_client.Api): class PostMaximumValidationRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_maximum_validation_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_maximum_validation_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_maximum_validation_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_maximum_validation_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -101,7 +177,7 @@ class PostMaximumValidationRequestBody(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_maximum_validation_request_body_oapg( @@ -116,6 +192,44 @@ class PostMaximumValidationRequestBody(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -124,7 +238,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_maximum_validation_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post.py index c4be0df8c1d..72658c4838e 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post.py @@ -59,6 +59,31 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_maximum_validation_with_unsigned_integer_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_maximum_validation_with_unsigned_integer_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_maximum_validation_with_unsigned_integer_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -67,7 +92,20 @@ def _post_maximum_validation_with_unsigned_integer_request_body_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_maximum_validation_with_unsigned_integer_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -119,6 +157,44 @@ class instances class PostMaximumValidationWithUnsignedIntegerRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_maximum_validation_with_unsigned_integer_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_maximum_validation_with_unsigned_integer_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_maximum_validation_with_unsigned_integer_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_maximum_validation_with_unsigned_integer_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -127,7 +203,7 @@ def post_maximum_validation_with_unsigned_integer_request_body( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_maximum_validation_with_unsigned_integer_request_body_oapg( @@ -142,6 +218,44 @@ def post_maximum_validation_with_unsigned_integer_request_body( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -150,7 +264,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_maximum_validation_with_unsigned_integer_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post.pyi index bfa19c4e273..5ed672e1e72 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post.pyi @@ -33,6 +33,31 @@ SchemaForRequestBodyApplicationJson = MaximumValidationWithUnsignedInteger class BaseApi(api_client.Api): + @typing.overload + def _post_maximum_validation_with_unsigned_integer_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_maximum_validation_with_unsigned_integer_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_maximum_validation_with_unsigned_integer_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -41,7 +66,20 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_maximum_validation_with_unsigned_integer_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -93,6 +131,44 @@ class BaseApi(api_client.Api): class PostMaximumValidationWithUnsignedIntegerRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_maximum_validation_with_unsigned_integer_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_maximum_validation_with_unsigned_integer_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_maximum_validation_with_unsigned_integer_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_maximum_validation_with_unsigned_integer_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -101,7 +177,7 @@ class PostMaximumValidationWithUnsignedIntegerRequestBody(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_maximum_validation_with_unsigned_integer_request_body_oapg( @@ -116,6 +192,44 @@ class PostMaximumValidationWithUnsignedIntegerRequestBody(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -124,7 +238,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_maximum_validation_with_unsigned_integer_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post.py index 791e11c7e18..37df60ebcfb 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post.py @@ -59,6 +59,31 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_maxitems_validation_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_maxitems_validation_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_maxitems_validation_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -67,7 +92,20 @@ def _post_maxitems_validation_request_body_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_maxitems_validation_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -119,6 +157,44 @@ class instances class PostMaxitemsValidationRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_maxitems_validation_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_maxitems_validation_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_maxitems_validation_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_maxitems_validation_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -127,7 +203,7 @@ def post_maxitems_validation_request_body( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_maxitems_validation_request_body_oapg( @@ -142,6 +218,44 @@ def post_maxitems_validation_request_body( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -150,7 +264,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_maxitems_validation_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post.pyi index 7ebf68559e8..901982a6634 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post.pyi @@ -33,6 +33,31 @@ SchemaForRequestBodyApplicationJson = MaxitemsValidation class BaseApi(api_client.Api): + @typing.overload + def _post_maxitems_validation_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_maxitems_validation_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_maxitems_validation_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -41,7 +66,20 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_maxitems_validation_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -93,6 +131,44 @@ class BaseApi(api_client.Api): class PostMaxitemsValidationRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_maxitems_validation_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_maxitems_validation_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_maxitems_validation_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_maxitems_validation_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -101,7 +177,7 @@ class PostMaxitemsValidationRequestBody(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_maxitems_validation_request_body_oapg( @@ -116,6 +192,44 @@ class PostMaxitemsValidationRequestBody(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -124,7 +238,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_maxitems_validation_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post.py index 82baa3c6f74..86588dc829e 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post.py @@ -59,6 +59,31 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_maxlength_validation_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_maxlength_validation_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_maxlength_validation_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -67,7 +92,20 @@ def _post_maxlength_validation_request_body_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_maxlength_validation_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -119,6 +157,44 @@ class instances class PostMaxlengthValidationRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_maxlength_validation_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_maxlength_validation_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_maxlength_validation_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_maxlength_validation_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -127,7 +203,7 @@ def post_maxlength_validation_request_body( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_maxlength_validation_request_body_oapg( @@ -142,6 +218,44 @@ def post_maxlength_validation_request_body( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -150,7 +264,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_maxlength_validation_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post.pyi index 389fa871253..509355f6506 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post.pyi @@ -33,6 +33,31 @@ SchemaForRequestBodyApplicationJson = MaxlengthValidation class BaseApi(api_client.Api): + @typing.overload + def _post_maxlength_validation_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_maxlength_validation_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_maxlength_validation_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -41,7 +66,20 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_maxlength_validation_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -93,6 +131,44 @@ class BaseApi(api_client.Api): class PostMaxlengthValidationRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_maxlength_validation_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_maxlength_validation_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_maxlength_validation_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_maxlength_validation_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -101,7 +177,7 @@ class PostMaxlengthValidationRequestBody(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_maxlength_validation_request_body_oapg( @@ -116,6 +192,44 @@ class PostMaxlengthValidationRequestBody(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -124,7 +238,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_maxlength_validation_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post.py index 0079983d6be..916400bf202 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post.py @@ -59,6 +59,31 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_maxproperties0_means_the_object_is_empty_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_maxproperties0_means_the_object_is_empty_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_maxproperties0_means_the_object_is_empty_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -67,7 +92,20 @@ def _post_maxproperties0_means_the_object_is_empty_request_body_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_maxproperties0_means_the_object_is_empty_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -119,6 +157,44 @@ class instances class PostMaxproperties0MeansTheObjectIsEmptyRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_maxproperties0_means_the_object_is_empty_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_maxproperties0_means_the_object_is_empty_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_maxproperties0_means_the_object_is_empty_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_maxproperties0_means_the_object_is_empty_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -127,7 +203,7 @@ def post_maxproperties0_means_the_object_is_empty_request_body( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_maxproperties0_means_the_object_is_empty_request_body_oapg( @@ -142,6 +218,44 @@ def post_maxproperties0_means_the_object_is_empty_request_body( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -150,7 +264,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_maxproperties0_means_the_object_is_empty_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post.pyi index 8b95b9db9ae..2d36c5259d2 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post.pyi @@ -33,6 +33,31 @@ SchemaForRequestBodyApplicationJson = Maxproperties0MeansTheObjectIsEmpty class BaseApi(api_client.Api): + @typing.overload + def _post_maxproperties0_means_the_object_is_empty_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_maxproperties0_means_the_object_is_empty_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_maxproperties0_means_the_object_is_empty_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -41,7 +66,20 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_maxproperties0_means_the_object_is_empty_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -93,6 +131,44 @@ class BaseApi(api_client.Api): class PostMaxproperties0MeansTheObjectIsEmptyRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_maxproperties0_means_the_object_is_empty_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_maxproperties0_means_the_object_is_empty_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_maxproperties0_means_the_object_is_empty_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_maxproperties0_means_the_object_is_empty_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -101,7 +177,7 @@ class PostMaxproperties0MeansTheObjectIsEmptyRequestBody(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_maxproperties0_means_the_object_is_empty_request_body_oapg( @@ -116,6 +192,44 @@ class PostMaxproperties0MeansTheObjectIsEmptyRequestBody(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -124,7 +238,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_maxproperties0_means_the_object_is_empty_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post.py index 302911bb647..79c5d1b08a6 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post.py @@ -59,6 +59,31 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_maxproperties_validation_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_maxproperties_validation_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_maxproperties_validation_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -67,7 +92,20 @@ def _post_maxproperties_validation_request_body_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_maxproperties_validation_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -119,6 +157,44 @@ class instances class PostMaxpropertiesValidationRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_maxproperties_validation_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_maxproperties_validation_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_maxproperties_validation_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_maxproperties_validation_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -127,7 +203,7 @@ def post_maxproperties_validation_request_body( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_maxproperties_validation_request_body_oapg( @@ -142,6 +218,44 @@ def post_maxproperties_validation_request_body( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -150,7 +264,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_maxproperties_validation_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post.pyi index d2d653f7f85..60dcdeed414 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post.pyi @@ -33,6 +33,31 @@ SchemaForRequestBodyApplicationJson = MaxpropertiesValidation class BaseApi(api_client.Api): + @typing.overload + def _post_maxproperties_validation_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_maxproperties_validation_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_maxproperties_validation_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -41,7 +66,20 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_maxproperties_validation_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -93,6 +131,44 @@ class BaseApi(api_client.Api): class PostMaxpropertiesValidationRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_maxproperties_validation_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_maxproperties_validation_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_maxproperties_validation_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_maxproperties_validation_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -101,7 +177,7 @@ class PostMaxpropertiesValidationRequestBody(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_maxproperties_validation_request_body_oapg( @@ -116,6 +192,44 @@ class PostMaxpropertiesValidationRequestBody(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -124,7 +238,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_maxproperties_validation_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minimum_validation_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minimum_validation_request_body/post.py index 2a163fda70d..1e4aa10df83 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minimum_validation_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minimum_validation_request_body/post.py @@ -59,6 +59,31 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_minimum_validation_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_minimum_validation_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_minimum_validation_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -67,7 +92,20 @@ def _post_minimum_validation_request_body_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_minimum_validation_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -119,6 +157,44 @@ class instances class PostMinimumValidationRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_minimum_validation_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_minimum_validation_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_minimum_validation_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_minimum_validation_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -127,7 +203,7 @@ def post_minimum_validation_request_body( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_minimum_validation_request_body_oapg( @@ -142,6 +218,44 @@ def post_minimum_validation_request_body( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -150,7 +264,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_minimum_validation_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minimum_validation_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minimum_validation_request_body/post.pyi index e9a2ca6e690..70193d1610e 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minimum_validation_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minimum_validation_request_body/post.pyi @@ -33,6 +33,31 @@ SchemaForRequestBodyApplicationJson = MinimumValidation class BaseApi(api_client.Api): + @typing.overload + def _post_minimum_validation_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_minimum_validation_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_minimum_validation_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -41,7 +66,20 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_minimum_validation_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -93,6 +131,44 @@ class BaseApi(api_client.Api): class PostMinimumValidationRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_minimum_validation_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_minimum_validation_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_minimum_validation_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_minimum_validation_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -101,7 +177,7 @@ class PostMinimumValidationRequestBody(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_minimum_validation_request_body_oapg( @@ -116,6 +192,44 @@ class PostMinimumValidationRequestBody(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -124,7 +238,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_minimum_validation_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post.py index ab89cbd51ae..2306cce1aa7 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post.py @@ -59,6 +59,31 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_minimum_validation_with_signed_integer_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_minimum_validation_with_signed_integer_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_minimum_validation_with_signed_integer_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -67,7 +92,20 @@ def _post_minimum_validation_with_signed_integer_request_body_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_minimum_validation_with_signed_integer_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -119,6 +157,44 @@ class instances class PostMinimumValidationWithSignedIntegerRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_minimum_validation_with_signed_integer_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_minimum_validation_with_signed_integer_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_minimum_validation_with_signed_integer_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_minimum_validation_with_signed_integer_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -127,7 +203,7 @@ def post_minimum_validation_with_signed_integer_request_body( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_minimum_validation_with_signed_integer_request_body_oapg( @@ -142,6 +218,44 @@ def post_minimum_validation_with_signed_integer_request_body( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -150,7 +264,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_minimum_validation_with_signed_integer_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post.pyi index 122e426ea13..440e9b16193 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post.pyi @@ -33,6 +33,31 @@ SchemaForRequestBodyApplicationJson = MinimumValidationWithSignedInteger class BaseApi(api_client.Api): + @typing.overload + def _post_minimum_validation_with_signed_integer_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_minimum_validation_with_signed_integer_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_minimum_validation_with_signed_integer_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -41,7 +66,20 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_minimum_validation_with_signed_integer_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -93,6 +131,44 @@ class BaseApi(api_client.Api): class PostMinimumValidationWithSignedIntegerRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_minimum_validation_with_signed_integer_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_minimum_validation_with_signed_integer_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_minimum_validation_with_signed_integer_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_minimum_validation_with_signed_integer_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -101,7 +177,7 @@ class PostMinimumValidationWithSignedIntegerRequestBody(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_minimum_validation_with_signed_integer_request_body_oapg( @@ -116,6 +192,44 @@ class PostMinimumValidationWithSignedIntegerRequestBody(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -124,7 +238,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_minimum_validation_with_signed_integer_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minitems_validation_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minitems_validation_request_body/post.py index 790e6b1f164..c61b9574a1f 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minitems_validation_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minitems_validation_request_body/post.py @@ -59,6 +59,31 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_minitems_validation_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_minitems_validation_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_minitems_validation_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -67,7 +92,20 @@ def _post_minitems_validation_request_body_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_minitems_validation_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -119,6 +157,44 @@ class instances class PostMinitemsValidationRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_minitems_validation_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_minitems_validation_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_minitems_validation_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_minitems_validation_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -127,7 +203,7 @@ def post_minitems_validation_request_body( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_minitems_validation_request_body_oapg( @@ -142,6 +218,44 @@ def post_minitems_validation_request_body( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -150,7 +264,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_minitems_validation_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minitems_validation_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minitems_validation_request_body/post.pyi index 5ac55630f3e..f06ac188a9a 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minitems_validation_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minitems_validation_request_body/post.pyi @@ -33,6 +33,31 @@ SchemaForRequestBodyApplicationJson = MinitemsValidation class BaseApi(api_client.Api): + @typing.overload + def _post_minitems_validation_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_minitems_validation_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_minitems_validation_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -41,7 +66,20 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_minitems_validation_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -93,6 +131,44 @@ class BaseApi(api_client.Api): class PostMinitemsValidationRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_minitems_validation_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_minitems_validation_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_minitems_validation_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_minitems_validation_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -101,7 +177,7 @@ class PostMinitemsValidationRequestBody(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_minitems_validation_request_body_oapg( @@ -116,6 +192,44 @@ class PostMinitemsValidationRequestBody(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -124,7 +238,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_minitems_validation_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minlength_validation_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minlength_validation_request_body/post.py index 5dab68c54bb..4677753488c 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minlength_validation_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minlength_validation_request_body/post.py @@ -59,6 +59,31 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_minlength_validation_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_minlength_validation_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_minlength_validation_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -67,7 +92,20 @@ def _post_minlength_validation_request_body_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_minlength_validation_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -119,6 +157,44 @@ class instances class PostMinlengthValidationRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_minlength_validation_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_minlength_validation_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_minlength_validation_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_minlength_validation_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -127,7 +203,7 @@ def post_minlength_validation_request_body( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_minlength_validation_request_body_oapg( @@ -142,6 +218,44 @@ def post_minlength_validation_request_body( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -150,7 +264,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_minlength_validation_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minlength_validation_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minlength_validation_request_body/post.pyi index efbd2d45237..70d0692be80 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minlength_validation_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minlength_validation_request_body/post.pyi @@ -33,6 +33,31 @@ SchemaForRequestBodyApplicationJson = MinlengthValidation class BaseApi(api_client.Api): + @typing.overload + def _post_minlength_validation_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_minlength_validation_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_minlength_validation_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -41,7 +66,20 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_minlength_validation_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -93,6 +131,44 @@ class BaseApi(api_client.Api): class PostMinlengthValidationRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_minlength_validation_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_minlength_validation_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_minlength_validation_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_minlength_validation_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -101,7 +177,7 @@ class PostMinlengthValidationRequestBody(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_minlength_validation_request_body_oapg( @@ -116,6 +192,44 @@ class PostMinlengthValidationRequestBody(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -124,7 +238,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_minlength_validation_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post.py index 330ee1d7047..2d5bcf20051 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post.py @@ -59,6 +59,31 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_minproperties_validation_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_minproperties_validation_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_minproperties_validation_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -67,7 +92,20 @@ def _post_minproperties_validation_request_body_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_minproperties_validation_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -119,6 +157,44 @@ class instances class PostMinpropertiesValidationRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_minproperties_validation_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_minproperties_validation_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_minproperties_validation_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_minproperties_validation_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -127,7 +203,7 @@ def post_minproperties_validation_request_body( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_minproperties_validation_request_body_oapg( @@ -142,6 +218,44 @@ def post_minproperties_validation_request_body( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -150,7 +264,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_minproperties_validation_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post.pyi index a92e09bb858..2477f7d549a 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post.pyi @@ -33,6 +33,31 @@ SchemaForRequestBodyApplicationJson = MinpropertiesValidation class BaseApi(api_client.Api): + @typing.overload + def _post_minproperties_validation_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_minproperties_validation_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_minproperties_validation_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -41,7 +66,20 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_minproperties_validation_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -93,6 +131,44 @@ class BaseApi(api_client.Api): class PostMinpropertiesValidationRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_minproperties_validation_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_minproperties_validation_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_minproperties_validation_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_minproperties_validation_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -101,7 +177,7 @@ class PostMinpropertiesValidationRequestBody(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_minproperties_validation_request_body_oapg( @@ -116,6 +192,44 @@ class PostMinpropertiesValidationRequestBody(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -124,7 +238,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_minproperties_validation_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post.py index 7bb6109e924..0f1a6e76e81 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post.py @@ -59,6 +59,31 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_nested_allof_to_check_validation_semantics_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_nested_allof_to_check_validation_semantics_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_nested_allof_to_check_validation_semantics_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -67,7 +92,20 @@ def _post_nested_allof_to_check_validation_semantics_request_body_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_nested_allof_to_check_validation_semantics_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -119,6 +157,44 @@ class instances class PostNestedAllofToCheckValidationSemanticsRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_nested_allof_to_check_validation_semantics_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_nested_allof_to_check_validation_semantics_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_nested_allof_to_check_validation_semantics_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_nested_allof_to_check_validation_semantics_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -127,7 +203,7 @@ def post_nested_allof_to_check_validation_semantics_request_body( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_nested_allof_to_check_validation_semantics_request_body_oapg( @@ -142,6 +218,44 @@ def post_nested_allof_to_check_validation_semantics_request_body( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -150,7 +264,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_nested_allof_to_check_validation_semantics_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post.pyi index 7958e9d7d5d..603bafde3c9 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post.pyi @@ -33,6 +33,31 @@ SchemaForRequestBodyApplicationJson = NestedAllofToCheckValidationSemantics class BaseApi(api_client.Api): + @typing.overload + def _post_nested_allof_to_check_validation_semantics_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_nested_allof_to_check_validation_semantics_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_nested_allof_to_check_validation_semantics_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -41,7 +66,20 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_nested_allof_to_check_validation_semantics_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -93,6 +131,44 @@ class BaseApi(api_client.Api): class PostNestedAllofToCheckValidationSemanticsRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_nested_allof_to_check_validation_semantics_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_nested_allof_to_check_validation_semantics_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_nested_allof_to_check_validation_semantics_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_nested_allof_to_check_validation_semantics_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -101,7 +177,7 @@ class PostNestedAllofToCheckValidationSemanticsRequestBody(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_nested_allof_to_check_validation_semantics_request_body_oapg( @@ -116,6 +192,44 @@ class PostNestedAllofToCheckValidationSemanticsRequestBody(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -124,7 +238,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_nested_allof_to_check_validation_semantics_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post.py index 4779c8462af..66fe1bfdf7d 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post.py @@ -59,6 +59,31 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_nested_anyof_to_check_validation_semantics_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_nested_anyof_to_check_validation_semantics_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_nested_anyof_to_check_validation_semantics_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -67,7 +92,20 @@ def _post_nested_anyof_to_check_validation_semantics_request_body_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_nested_anyof_to_check_validation_semantics_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -119,6 +157,44 @@ class instances class PostNestedAnyofToCheckValidationSemanticsRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_nested_anyof_to_check_validation_semantics_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_nested_anyof_to_check_validation_semantics_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_nested_anyof_to_check_validation_semantics_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_nested_anyof_to_check_validation_semantics_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -127,7 +203,7 @@ def post_nested_anyof_to_check_validation_semantics_request_body( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_nested_anyof_to_check_validation_semantics_request_body_oapg( @@ -142,6 +218,44 @@ def post_nested_anyof_to_check_validation_semantics_request_body( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -150,7 +264,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_nested_anyof_to_check_validation_semantics_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post.pyi index 6e9b84a1841..154acaadedd 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post.pyi @@ -33,6 +33,31 @@ SchemaForRequestBodyApplicationJson = NestedAnyofToCheckValidationSemantics class BaseApi(api_client.Api): + @typing.overload + def _post_nested_anyof_to_check_validation_semantics_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_nested_anyof_to_check_validation_semantics_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_nested_anyof_to_check_validation_semantics_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -41,7 +66,20 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_nested_anyof_to_check_validation_semantics_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -93,6 +131,44 @@ class BaseApi(api_client.Api): class PostNestedAnyofToCheckValidationSemanticsRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_nested_anyof_to_check_validation_semantics_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_nested_anyof_to_check_validation_semantics_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_nested_anyof_to_check_validation_semantics_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_nested_anyof_to_check_validation_semantics_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -101,7 +177,7 @@ class PostNestedAnyofToCheckValidationSemanticsRequestBody(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_nested_anyof_to_check_validation_semantics_request_body_oapg( @@ -116,6 +192,44 @@ class PostNestedAnyofToCheckValidationSemanticsRequestBody(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -124,7 +238,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_nested_anyof_to_check_validation_semantics_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_items_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_items_request_body/post.py index c7755c17e60..d58df883e32 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_items_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_items_request_body/post.py @@ -59,6 +59,31 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_nested_items_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_nested_items_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_nested_items_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -67,7 +92,20 @@ def _post_nested_items_request_body_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_nested_items_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -119,6 +157,44 @@ class instances class PostNestedItemsRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_nested_items_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_nested_items_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_nested_items_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_nested_items_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -127,7 +203,7 @@ def post_nested_items_request_body( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_nested_items_request_body_oapg( @@ -142,6 +218,44 @@ def post_nested_items_request_body( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -150,7 +264,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_nested_items_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_items_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_items_request_body/post.pyi index 6e7649ccf3b..2a7d71b3eef 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_items_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_items_request_body/post.pyi @@ -33,6 +33,31 @@ SchemaForRequestBodyApplicationJson = NestedItems class BaseApi(api_client.Api): + @typing.overload + def _post_nested_items_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_nested_items_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_nested_items_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -41,7 +66,20 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_nested_items_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -93,6 +131,44 @@ class BaseApi(api_client.Api): class PostNestedItemsRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_nested_items_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_nested_items_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_nested_items_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_nested_items_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -101,7 +177,7 @@ class PostNestedItemsRequestBody(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_nested_items_request_body_oapg( @@ -116,6 +192,44 @@ class PostNestedItemsRequestBody(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -124,7 +238,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_nested_items_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post.py index f730d31d605..e6b87a9864a 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post.py @@ -59,6 +59,31 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_nested_oneof_to_check_validation_semantics_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_nested_oneof_to_check_validation_semantics_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_nested_oneof_to_check_validation_semantics_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -67,7 +92,20 @@ def _post_nested_oneof_to_check_validation_semantics_request_body_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_nested_oneof_to_check_validation_semantics_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -119,6 +157,44 @@ class instances class PostNestedOneofToCheckValidationSemanticsRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_nested_oneof_to_check_validation_semantics_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_nested_oneof_to_check_validation_semantics_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_nested_oneof_to_check_validation_semantics_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_nested_oneof_to_check_validation_semantics_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -127,7 +203,7 @@ def post_nested_oneof_to_check_validation_semantics_request_body( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_nested_oneof_to_check_validation_semantics_request_body_oapg( @@ -142,6 +218,44 @@ def post_nested_oneof_to_check_validation_semantics_request_body( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -150,7 +264,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_nested_oneof_to_check_validation_semantics_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post.pyi index 61ea779a722..69fc29e7950 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post.pyi @@ -33,6 +33,31 @@ SchemaForRequestBodyApplicationJson = NestedOneofToCheckValidationSemantics class BaseApi(api_client.Api): + @typing.overload + def _post_nested_oneof_to_check_validation_semantics_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_nested_oneof_to_check_validation_semantics_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_nested_oneof_to_check_validation_semantics_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -41,7 +66,20 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_nested_oneof_to_check_validation_semantics_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -93,6 +131,44 @@ class BaseApi(api_client.Api): class PostNestedOneofToCheckValidationSemanticsRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_nested_oneof_to_check_validation_semantics_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_nested_oneof_to_check_validation_semantics_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_nested_oneof_to_check_validation_semantics_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_nested_oneof_to_check_validation_semantics_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -101,7 +177,7 @@ class PostNestedOneofToCheckValidationSemanticsRequestBody(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_nested_oneof_to_check_validation_semantics_request_body_oapg( @@ -116,6 +192,44 @@ class PostNestedOneofToCheckValidationSemanticsRequestBody(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -124,7 +238,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_nested_oneof_to_check_validation_semantics_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post.py index 2d230e0cfb4..ec1601abfb7 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post.py @@ -128,6 +128,31 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_not_more_complex_schema_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_not_more_complex_schema_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_not_more_complex_schema_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], @@ -136,7 +161,20 @@ def _post_not_more_complex_schema_request_body_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_not_more_complex_schema_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -188,6 +226,44 @@ class instances class PostNotMoreComplexSchemaRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_not_more_complex_schema_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_not_more_complex_schema_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_not_more_complex_schema_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_not_more_complex_schema_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], @@ -196,7 +272,7 @@ def post_not_more_complex_schema_request_body( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_not_more_complex_schema_request_body_oapg( @@ -211,6 +287,44 @@ def post_not_more_complex_schema_request_body( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], @@ -219,7 +333,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_not_more_complex_schema_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post.pyi index 584ba00cf8e..74cb16a7167 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post.pyi @@ -102,6 +102,31 @@ class SchemaForRequestBodyApplicationJson( class BaseApi(api_client.Api): + @typing.overload + def _post_not_more_complex_schema_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_not_more_complex_schema_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_not_more_complex_schema_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], @@ -110,7 +135,20 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_not_more_complex_schema_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -162,6 +200,44 @@ class BaseApi(api_client.Api): class PostNotMoreComplexSchemaRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_not_more_complex_schema_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_not_more_complex_schema_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_not_more_complex_schema_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_not_more_complex_schema_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], @@ -170,7 +246,7 @@ class PostNotMoreComplexSchemaRequestBody(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_not_more_complex_schema_request_body_oapg( @@ -185,6 +261,44 @@ class PostNotMoreComplexSchemaRequestBody(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], @@ -193,7 +307,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_not_more_complex_schema_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_not_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_not_request_body/post.py index e7d0b186922..2efb4ce5601 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_not_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_not_request_body/post.py @@ -79,6 +79,31 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_not_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_not_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_not_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], @@ -87,7 +112,20 @@ def _post_not_request_body_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_not_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -139,6 +177,44 @@ class instances class PostNotRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_not_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_not_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_not_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_not_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], @@ -147,7 +223,7 @@ def post_not_request_body( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_not_request_body_oapg( @@ -162,6 +238,44 @@ def post_not_request_body( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], @@ -170,7 +284,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_not_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_not_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_not_request_body/post.pyi index b791ed43f46..3b0d40f042a 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_not_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_not_request_body/post.pyi @@ -53,6 +53,31 @@ class SchemaForRequestBodyApplicationJson( class BaseApi(api_client.Api): + @typing.overload + def _post_not_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_not_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_not_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], @@ -61,7 +86,20 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_not_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -113,6 +151,44 @@ class BaseApi(api_client.Api): class PostNotRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_not_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_not_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_not_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_not_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], @@ -121,7 +197,7 @@ class PostNotRequestBody(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_not_request_body_oapg( @@ -136,6 +212,44 @@ class PostNotRequestBody(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], @@ -144,7 +258,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_not_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post.py index 649b84303c0..fa0b0aea10b 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post.py @@ -59,6 +59,31 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_nul_characters_in_strings_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_nul_characters_in_strings_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_nul_characters_in_strings_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -67,7 +92,20 @@ def _post_nul_characters_in_strings_request_body_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_nul_characters_in_strings_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -119,6 +157,44 @@ class instances class PostNulCharactersInStringsRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_nul_characters_in_strings_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_nul_characters_in_strings_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_nul_characters_in_strings_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_nul_characters_in_strings_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -127,7 +203,7 @@ def post_nul_characters_in_strings_request_body( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_nul_characters_in_strings_request_body_oapg( @@ -142,6 +218,44 @@ def post_nul_characters_in_strings_request_body( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -150,7 +264,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_nul_characters_in_strings_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post.pyi index 87a26d9477e..29d828a730e 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post.pyi @@ -33,6 +33,31 @@ SchemaForRequestBodyApplicationJson = NulCharactersInStrings class BaseApi(api_client.Api): + @typing.overload + def _post_nul_characters_in_strings_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_nul_characters_in_strings_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_nul_characters_in_strings_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -41,7 +66,20 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_nul_characters_in_strings_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -93,6 +131,44 @@ class BaseApi(api_client.Api): class PostNulCharactersInStringsRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_nul_characters_in_strings_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_nul_characters_in_strings_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_nul_characters_in_strings_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_nul_characters_in_strings_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -101,7 +177,7 @@ class PostNulCharactersInStringsRequestBody(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_nul_characters_in_strings_request_body_oapg( @@ -116,6 +192,44 @@ class PostNulCharactersInStringsRequestBody(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -124,7 +238,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_nul_characters_in_strings_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post.py index 84484c13f69..e93e3bcd912 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post.py @@ -57,6 +57,31 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_null_type_matches_only_the_null_object_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, None, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_null_type_matches_only_the_null_object_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, None, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_null_type_matches_only_the_null_object_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, None, ], @@ -65,7 +90,20 @@ def _post_null_type_matches_only_the_null_object_request_body_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_null_type_matches_only_the_null_object_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, None, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -117,6 +155,44 @@ class instances class PostNullTypeMatchesOnlyTheNullObjectRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_null_type_matches_only_the_null_object_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, None, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_null_type_matches_only_the_null_object_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, None, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_null_type_matches_only_the_null_object_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, None, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_null_type_matches_only_the_null_object_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, None, ], @@ -125,7 +201,7 @@ def post_null_type_matches_only_the_null_object_request_body( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_null_type_matches_only_the_null_object_request_body_oapg( @@ -140,6 +216,44 @@ def post_null_type_matches_only_the_null_object_request_body( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, None, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, None, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, None, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, None, ], @@ -148,7 +262,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_null_type_matches_only_the_null_object_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post.pyi index 750f0f65ada..e100a4d94c7 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post.pyi @@ -31,6 +31,31 @@ SchemaForRequestBodyApplicationJson = schemas.NoneSchema class BaseApi(api_client.Api): + @typing.overload + def _post_null_type_matches_only_the_null_object_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, None, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_null_type_matches_only_the_null_object_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, None, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_null_type_matches_only_the_null_object_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, None, ], @@ -39,7 +64,20 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_null_type_matches_only_the_null_object_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, None, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -91,6 +129,44 @@ class BaseApi(api_client.Api): class PostNullTypeMatchesOnlyTheNullObjectRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_null_type_matches_only_the_null_object_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, None, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_null_type_matches_only_the_null_object_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, None, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_null_type_matches_only_the_null_object_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, None, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_null_type_matches_only_the_null_object_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, None, ], @@ -99,7 +175,7 @@ class PostNullTypeMatchesOnlyTheNullObjectRequestBody(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_null_type_matches_only_the_null_object_request_body_oapg( @@ -114,6 +190,44 @@ class PostNullTypeMatchesOnlyTheNullObjectRequestBody(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, None, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, None, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, None, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, None, ], @@ -122,7 +236,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_null_type_matches_only_the_null_object_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post.py index 2629e127692..a9c8ac6344c 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post.py @@ -57,6 +57,31 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_number_type_matches_numbers_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, decimal.Decimal, int, float, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_number_type_matches_numbers_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, decimal.Decimal, int, float, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_number_type_matches_numbers_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, decimal.Decimal, int, float, ], @@ -65,7 +90,20 @@ def _post_number_type_matches_numbers_request_body_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_number_type_matches_numbers_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, decimal.Decimal, int, float, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -117,6 +155,44 @@ class instances class PostNumberTypeMatchesNumbersRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_number_type_matches_numbers_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, decimal.Decimal, int, float, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_number_type_matches_numbers_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, decimal.Decimal, int, float, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_number_type_matches_numbers_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, decimal.Decimal, int, float, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_number_type_matches_numbers_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, decimal.Decimal, int, float, ], @@ -125,7 +201,7 @@ def post_number_type_matches_numbers_request_body( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_number_type_matches_numbers_request_body_oapg( @@ -140,6 +216,44 @@ def post_number_type_matches_numbers_request_body( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, decimal.Decimal, int, float, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, decimal.Decimal, int, float, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, decimal.Decimal, int, float, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, decimal.Decimal, int, float, ], @@ -148,7 +262,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_number_type_matches_numbers_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post.pyi index 38e54c85a2a..f647aa1565e 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post.pyi @@ -31,6 +31,31 @@ SchemaForRequestBodyApplicationJson = schemas.NumberSchema class BaseApi(api_client.Api): + @typing.overload + def _post_number_type_matches_numbers_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, decimal.Decimal, int, float, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_number_type_matches_numbers_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, decimal.Decimal, int, float, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_number_type_matches_numbers_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, decimal.Decimal, int, float, ], @@ -39,7 +64,20 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_number_type_matches_numbers_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, decimal.Decimal, int, float, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -91,6 +129,44 @@ class BaseApi(api_client.Api): class PostNumberTypeMatchesNumbersRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_number_type_matches_numbers_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, decimal.Decimal, int, float, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_number_type_matches_numbers_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, decimal.Decimal, int, float, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_number_type_matches_numbers_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, decimal.Decimal, int, float, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_number_type_matches_numbers_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, decimal.Decimal, int, float, ], @@ -99,7 +175,7 @@ class PostNumberTypeMatchesNumbersRequestBody(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_number_type_matches_numbers_request_body_oapg( @@ -114,6 +190,44 @@ class PostNumberTypeMatchesNumbersRequestBody(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, decimal.Decimal, int, float, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, decimal.Decimal, int, float, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, decimal.Decimal, int, float, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, decimal.Decimal, int, float, ], @@ -122,7 +236,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_number_type_matches_numbers_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post.py index 84ca8ee87d3..61a27c0759b 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post.py @@ -59,6 +59,31 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_object_properties_validation_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_object_properties_validation_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_object_properties_validation_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -67,7 +92,20 @@ def _post_object_properties_validation_request_body_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_object_properties_validation_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -119,6 +157,44 @@ class instances class PostObjectPropertiesValidationRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_object_properties_validation_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_object_properties_validation_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_object_properties_validation_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_object_properties_validation_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -127,7 +203,7 @@ def post_object_properties_validation_request_body( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_object_properties_validation_request_body_oapg( @@ -142,6 +218,44 @@ def post_object_properties_validation_request_body( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -150,7 +264,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_object_properties_validation_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post.pyi index 8890fcc4f9c..52b08e61279 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post.pyi @@ -33,6 +33,31 @@ SchemaForRequestBodyApplicationJson = ObjectPropertiesValidation class BaseApi(api_client.Api): + @typing.overload + def _post_object_properties_validation_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_object_properties_validation_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_object_properties_validation_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -41,7 +66,20 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_object_properties_validation_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -93,6 +131,44 @@ class BaseApi(api_client.Api): class PostObjectPropertiesValidationRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_object_properties_validation_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_object_properties_validation_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_object_properties_validation_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_object_properties_validation_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -101,7 +177,7 @@ class PostObjectPropertiesValidationRequestBody(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_object_properties_validation_request_body_oapg( @@ -116,6 +192,44 @@ class PostObjectPropertiesValidationRequestBody(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -124,7 +238,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_object_properties_validation_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post.py index 2b0ee548440..30e906bbd97 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post.py @@ -57,6 +57,31 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_object_type_matches_objects_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_object_type_matches_objects_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_object_type_matches_objects_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, ], @@ -65,7 +90,20 @@ def _post_object_type_matches_objects_request_body_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_object_type_matches_objects_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -117,6 +155,44 @@ class instances class PostObjectTypeMatchesObjectsRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_object_type_matches_objects_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_object_type_matches_objects_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_object_type_matches_objects_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_object_type_matches_objects_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, ], @@ -125,7 +201,7 @@ def post_object_type_matches_objects_request_body( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_object_type_matches_objects_request_body_oapg( @@ -140,6 +216,44 @@ def post_object_type_matches_objects_request_body( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, ], @@ -148,7 +262,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_object_type_matches_objects_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post.pyi index 0220145ecb8..7c7c511c7ac 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post.pyi @@ -31,6 +31,31 @@ SchemaForRequestBodyApplicationJson = schemas.DictSchema class BaseApi(api_client.Api): + @typing.overload + def _post_object_type_matches_objects_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_object_type_matches_objects_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_object_type_matches_objects_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, ], @@ -39,7 +64,20 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_object_type_matches_objects_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -91,6 +129,44 @@ class BaseApi(api_client.Api): class PostObjectTypeMatchesObjectsRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_object_type_matches_objects_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_object_type_matches_objects_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_object_type_matches_objects_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_object_type_matches_objects_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, ], @@ -99,7 +175,7 @@ class PostObjectTypeMatchesObjectsRequestBody(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_object_type_matches_objects_request_body_oapg( @@ -114,6 +190,44 @@ class PostObjectTypeMatchesObjectsRequestBody(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, ], @@ -122,7 +236,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_object_type_matches_objects_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post.py index e73ff6bb6c8..1d50064c396 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post.py @@ -59,6 +59,31 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_oneof_complex_types_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_oneof_complex_types_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_oneof_complex_types_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -67,7 +92,20 @@ def _post_oneof_complex_types_request_body_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_oneof_complex_types_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -119,6 +157,44 @@ class instances class PostOneofComplexTypesRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_oneof_complex_types_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_oneof_complex_types_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_oneof_complex_types_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_oneof_complex_types_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -127,7 +203,7 @@ def post_oneof_complex_types_request_body( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_oneof_complex_types_request_body_oapg( @@ -142,6 +218,44 @@ def post_oneof_complex_types_request_body( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -150,7 +264,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_oneof_complex_types_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post.pyi index d2638823948..f6c2fae585c 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post.pyi @@ -33,6 +33,31 @@ SchemaForRequestBodyApplicationJson = OneofComplexTypes class BaseApi(api_client.Api): + @typing.overload + def _post_oneof_complex_types_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_oneof_complex_types_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_oneof_complex_types_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -41,7 +66,20 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_oneof_complex_types_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -93,6 +131,44 @@ class BaseApi(api_client.Api): class PostOneofComplexTypesRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_oneof_complex_types_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_oneof_complex_types_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_oneof_complex_types_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_oneof_complex_types_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -101,7 +177,7 @@ class PostOneofComplexTypesRequestBody(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_oneof_complex_types_request_body_oapg( @@ -116,6 +192,44 @@ class PostOneofComplexTypesRequestBody(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -124,7 +238,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_oneof_complex_types_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_request_body/post.py index 3cd6520a22e..c12247a7e8e 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_request_body/post.py @@ -59,6 +59,31 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_oneof_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_oneof_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_oneof_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -67,7 +92,20 @@ def _post_oneof_request_body_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_oneof_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -119,6 +157,44 @@ class instances class PostOneofRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_oneof_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_oneof_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_oneof_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_oneof_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -127,7 +203,7 @@ def post_oneof_request_body( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_oneof_request_body_oapg( @@ -142,6 +218,44 @@ def post_oneof_request_body( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -150,7 +264,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_oneof_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_request_body/post.pyi index 5d3b6b34a0e..a5e7b4ba6e3 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_request_body/post.pyi @@ -33,6 +33,31 @@ SchemaForRequestBodyApplicationJson = Oneof class BaseApi(api_client.Api): + @typing.overload + def _post_oneof_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_oneof_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_oneof_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -41,7 +66,20 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_oneof_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -93,6 +131,44 @@ class BaseApi(api_client.Api): class PostOneofRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_oneof_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_oneof_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_oneof_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_oneof_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -101,7 +177,7 @@ class PostOneofRequestBody(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_oneof_request_body_oapg( @@ -116,6 +192,44 @@ class PostOneofRequestBody(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -124,7 +238,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_oneof_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post.py index 62a4284268f..fe9c2be7b78 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post.py @@ -59,6 +59,31 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_oneof_with_base_schema_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_oneof_with_base_schema_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_oneof_with_base_schema_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -67,7 +92,20 @@ def _post_oneof_with_base_schema_request_body_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_oneof_with_base_schema_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -119,6 +157,44 @@ class instances class PostOneofWithBaseSchemaRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_oneof_with_base_schema_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_oneof_with_base_schema_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_oneof_with_base_schema_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_oneof_with_base_schema_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -127,7 +203,7 @@ def post_oneof_with_base_schema_request_body( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_oneof_with_base_schema_request_body_oapg( @@ -142,6 +218,44 @@ def post_oneof_with_base_schema_request_body( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -150,7 +264,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_oneof_with_base_schema_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post.pyi index eeb2e4277be..c45785f8a18 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post.pyi @@ -33,6 +33,31 @@ SchemaForRequestBodyApplicationJson = OneofWithBaseSchema class BaseApi(api_client.Api): + @typing.overload + def _post_oneof_with_base_schema_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_oneof_with_base_schema_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_oneof_with_base_schema_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -41,7 +66,20 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_oneof_with_base_schema_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -93,6 +131,44 @@ class BaseApi(api_client.Api): class PostOneofWithBaseSchemaRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_oneof_with_base_schema_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_oneof_with_base_schema_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_oneof_with_base_schema_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_oneof_with_base_schema_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -101,7 +177,7 @@ class PostOneofWithBaseSchemaRequestBody(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_oneof_with_base_schema_request_body_oapg( @@ -116,6 +192,44 @@ class PostOneofWithBaseSchemaRequestBody(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -124,7 +238,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_oneof_with_base_schema_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post.py index dc18b181d77..8a6b023c64a 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post.py @@ -59,6 +59,31 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_oneof_with_empty_schema_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_oneof_with_empty_schema_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_oneof_with_empty_schema_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -67,7 +92,20 @@ def _post_oneof_with_empty_schema_request_body_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_oneof_with_empty_schema_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -119,6 +157,44 @@ class instances class PostOneofWithEmptySchemaRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_oneof_with_empty_schema_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_oneof_with_empty_schema_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_oneof_with_empty_schema_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_oneof_with_empty_schema_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -127,7 +203,7 @@ def post_oneof_with_empty_schema_request_body( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_oneof_with_empty_schema_request_body_oapg( @@ -142,6 +218,44 @@ def post_oneof_with_empty_schema_request_body( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -150,7 +264,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_oneof_with_empty_schema_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post.pyi index 93b507c78ab..5633a68eb0a 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post.pyi @@ -33,6 +33,31 @@ SchemaForRequestBodyApplicationJson = OneofWithEmptySchema class BaseApi(api_client.Api): + @typing.overload + def _post_oneof_with_empty_schema_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_oneof_with_empty_schema_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_oneof_with_empty_schema_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -41,7 +66,20 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_oneof_with_empty_schema_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -93,6 +131,44 @@ class BaseApi(api_client.Api): class PostOneofWithEmptySchemaRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_oneof_with_empty_schema_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_oneof_with_empty_schema_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_oneof_with_empty_schema_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_oneof_with_empty_schema_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -101,7 +177,7 @@ class PostOneofWithEmptySchemaRequestBody(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_oneof_with_empty_schema_request_body_oapg( @@ -116,6 +192,44 @@ class PostOneofWithEmptySchemaRequestBody(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -124,7 +238,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_oneof_with_empty_schema_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post.py index 30049110ff0..8250028a15a 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post.py @@ -59,6 +59,31 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_oneof_with_required_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_oneof_with_required_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_oneof_with_required_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -67,7 +92,20 @@ def _post_oneof_with_required_request_body_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_oneof_with_required_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -119,6 +157,44 @@ class instances class PostOneofWithRequiredRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_oneof_with_required_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_oneof_with_required_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_oneof_with_required_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_oneof_with_required_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -127,7 +203,7 @@ def post_oneof_with_required_request_body( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_oneof_with_required_request_body_oapg( @@ -142,6 +218,44 @@ def post_oneof_with_required_request_body( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -150,7 +264,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_oneof_with_required_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post.pyi index 330e13c653b..42e7ed5e9df 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post.pyi @@ -33,6 +33,31 @@ SchemaForRequestBodyApplicationJson = OneofWithRequired class BaseApi(api_client.Api): + @typing.overload + def _post_oneof_with_required_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_oneof_with_required_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_oneof_with_required_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -41,7 +66,20 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_oneof_with_required_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -93,6 +131,44 @@ class BaseApi(api_client.Api): class PostOneofWithRequiredRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_oneof_with_required_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_oneof_with_required_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_oneof_with_required_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_oneof_with_required_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -101,7 +177,7 @@ class PostOneofWithRequiredRequestBody(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_oneof_with_required_request_body_oapg( @@ -116,6 +192,44 @@ class PostOneofWithRequiredRequestBody(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -124,7 +238,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_oneof_with_required_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post.py index e9f5746f22c..fc2a3b9dc93 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post.py @@ -59,6 +59,31 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_pattern_is_not_anchored_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_pattern_is_not_anchored_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_pattern_is_not_anchored_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -67,7 +92,20 @@ def _post_pattern_is_not_anchored_request_body_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_pattern_is_not_anchored_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -119,6 +157,44 @@ class instances class PostPatternIsNotAnchoredRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_pattern_is_not_anchored_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_pattern_is_not_anchored_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_pattern_is_not_anchored_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_pattern_is_not_anchored_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -127,7 +203,7 @@ def post_pattern_is_not_anchored_request_body( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_pattern_is_not_anchored_request_body_oapg( @@ -142,6 +218,44 @@ def post_pattern_is_not_anchored_request_body( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -150,7 +264,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_pattern_is_not_anchored_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post.pyi index 72d9dc32bb5..71ca36a89d7 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post.pyi @@ -33,6 +33,31 @@ SchemaForRequestBodyApplicationJson = PatternIsNotAnchored class BaseApi(api_client.Api): + @typing.overload + def _post_pattern_is_not_anchored_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_pattern_is_not_anchored_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_pattern_is_not_anchored_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -41,7 +66,20 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_pattern_is_not_anchored_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -93,6 +131,44 @@ class BaseApi(api_client.Api): class PostPatternIsNotAnchoredRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_pattern_is_not_anchored_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_pattern_is_not_anchored_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_pattern_is_not_anchored_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_pattern_is_not_anchored_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -101,7 +177,7 @@ class PostPatternIsNotAnchoredRequestBody(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_pattern_is_not_anchored_request_body_oapg( @@ -116,6 +192,44 @@ class PostPatternIsNotAnchoredRequestBody(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -124,7 +238,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_pattern_is_not_anchored_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_pattern_validation_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_pattern_validation_request_body/post.py index 0aee314d2db..62e6a898985 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_pattern_validation_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_pattern_validation_request_body/post.py @@ -59,6 +59,31 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_pattern_validation_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_pattern_validation_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_pattern_validation_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -67,7 +92,20 @@ def _post_pattern_validation_request_body_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_pattern_validation_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -119,6 +157,44 @@ class instances class PostPatternValidationRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_pattern_validation_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_pattern_validation_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_pattern_validation_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_pattern_validation_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -127,7 +203,7 @@ def post_pattern_validation_request_body( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_pattern_validation_request_body_oapg( @@ -142,6 +218,44 @@ def post_pattern_validation_request_body( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -150,7 +264,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_pattern_validation_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_pattern_validation_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_pattern_validation_request_body/post.pyi index 014a5a449df..caccfe0beae 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_pattern_validation_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_pattern_validation_request_body/post.pyi @@ -33,6 +33,31 @@ SchemaForRequestBodyApplicationJson = PatternValidation class BaseApi(api_client.Api): + @typing.overload + def _post_pattern_validation_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_pattern_validation_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_pattern_validation_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -41,7 +66,20 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_pattern_validation_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -93,6 +131,44 @@ class BaseApi(api_client.Api): class PostPatternValidationRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_pattern_validation_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_pattern_validation_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_pattern_validation_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_pattern_validation_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -101,7 +177,7 @@ class PostPatternValidationRequestBody(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_pattern_validation_request_body_oapg( @@ -116,6 +192,44 @@ class PostPatternValidationRequestBody(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -124,7 +238,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_pattern_validation_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post.py index 2e5a74862f3..91f0ead5c2d 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post.py @@ -59,6 +59,31 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_properties_with_escaped_characters_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_properties_with_escaped_characters_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_properties_with_escaped_characters_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -67,7 +92,20 @@ def _post_properties_with_escaped_characters_request_body_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_properties_with_escaped_characters_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -119,6 +157,44 @@ class instances class PostPropertiesWithEscapedCharactersRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_properties_with_escaped_characters_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_properties_with_escaped_characters_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_properties_with_escaped_characters_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_properties_with_escaped_characters_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -127,7 +203,7 @@ def post_properties_with_escaped_characters_request_body( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_properties_with_escaped_characters_request_body_oapg( @@ -142,6 +218,44 @@ def post_properties_with_escaped_characters_request_body( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -150,7 +264,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_properties_with_escaped_characters_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post.pyi index 936055dcd88..93685c3ad38 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post.pyi @@ -33,6 +33,31 @@ SchemaForRequestBodyApplicationJson = PropertiesWithEscapedCharacters class BaseApi(api_client.Api): + @typing.overload + def _post_properties_with_escaped_characters_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_properties_with_escaped_characters_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_properties_with_escaped_characters_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -41,7 +66,20 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_properties_with_escaped_characters_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -93,6 +131,44 @@ class BaseApi(api_client.Api): class PostPropertiesWithEscapedCharactersRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_properties_with_escaped_characters_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_properties_with_escaped_characters_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_properties_with_escaped_characters_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_properties_with_escaped_characters_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -101,7 +177,7 @@ class PostPropertiesWithEscapedCharactersRequestBody(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_properties_with_escaped_characters_request_body_oapg( @@ -116,6 +192,44 @@ class PostPropertiesWithEscapedCharactersRequestBody(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -124,7 +238,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_properties_with_escaped_characters_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post.py index dbcef6a143c..5be001b4735 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post.py @@ -59,6 +59,31 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_property_named_ref_that_is_not_a_reference_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_property_named_ref_that_is_not_a_reference_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_property_named_ref_that_is_not_a_reference_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -67,7 +92,20 @@ def _post_property_named_ref_that_is_not_a_reference_request_body_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_property_named_ref_that_is_not_a_reference_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -119,6 +157,44 @@ class instances class PostPropertyNamedRefThatIsNotAReferenceRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_property_named_ref_that_is_not_a_reference_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_property_named_ref_that_is_not_a_reference_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_property_named_ref_that_is_not_a_reference_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_property_named_ref_that_is_not_a_reference_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -127,7 +203,7 @@ def post_property_named_ref_that_is_not_a_reference_request_body( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_property_named_ref_that_is_not_a_reference_request_body_oapg( @@ -142,6 +218,44 @@ def post_property_named_ref_that_is_not_a_reference_request_body( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -150,7 +264,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_property_named_ref_that_is_not_a_reference_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post.pyi index 85dcbf63183..a09256f6890 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post.pyi @@ -33,6 +33,31 @@ SchemaForRequestBodyApplicationJson = PropertyNamedRefThatIsNotAReference class BaseApi(api_client.Api): + @typing.overload + def _post_property_named_ref_that_is_not_a_reference_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_property_named_ref_that_is_not_a_reference_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_property_named_ref_that_is_not_a_reference_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -41,7 +66,20 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_property_named_ref_that_is_not_a_reference_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -93,6 +131,44 @@ class BaseApi(api_client.Api): class PostPropertyNamedRefThatIsNotAReferenceRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_property_named_ref_that_is_not_a_reference_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_property_named_ref_that_is_not_a_reference_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_property_named_ref_that_is_not_a_reference_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_property_named_ref_that_is_not_a_reference_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -101,7 +177,7 @@ class PostPropertyNamedRefThatIsNotAReferenceRequestBody(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_property_named_ref_that_is_not_a_reference_request_body_oapg( @@ -116,6 +192,44 @@ class PostPropertyNamedRefThatIsNotAReferenceRequestBody(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -124,7 +238,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_property_named_ref_that_is_not_a_reference_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_additionalproperties_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_additionalproperties_request_body/post.py index 79a9a3d7463..39a196b3e0a 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_additionalproperties_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_additionalproperties_request_body/post.py @@ -59,6 +59,31 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_ref_in_additionalproperties_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_ref_in_additionalproperties_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_ref_in_additionalproperties_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -67,7 +92,20 @@ def _post_ref_in_additionalproperties_request_body_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_ref_in_additionalproperties_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -119,6 +157,44 @@ class instances class PostRefInAdditionalpropertiesRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_ref_in_additionalproperties_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_ref_in_additionalproperties_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_ref_in_additionalproperties_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_ref_in_additionalproperties_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -127,7 +203,7 @@ def post_ref_in_additionalproperties_request_body( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_ref_in_additionalproperties_request_body_oapg( @@ -142,6 +218,44 @@ def post_ref_in_additionalproperties_request_body( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -150,7 +264,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_ref_in_additionalproperties_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_additionalproperties_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_additionalproperties_request_body/post.pyi index 8579929fbcb..a97cc3a18e1 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_additionalproperties_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_additionalproperties_request_body/post.pyi @@ -33,6 +33,31 @@ SchemaForRequestBodyApplicationJson = RefInAdditionalproperties class BaseApi(api_client.Api): + @typing.overload + def _post_ref_in_additionalproperties_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_ref_in_additionalproperties_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_ref_in_additionalproperties_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -41,7 +66,20 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_ref_in_additionalproperties_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -93,6 +131,44 @@ class BaseApi(api_client.Api): class PostRefInAdditionalpropertiesRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_ref_in_additionalproperties_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_ref_in_additionalproperties_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_ref_in_additionalproperties_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_ref_in_additionalproperties_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -101,7 +177,7 @@ class PostRefInAdditionalpropertiesRequestBody(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_ref_in_additionalproperties_request_body_oapg( @@ -116,6 +192,44 @@ class PostRefInAdditionalpropertiesRequestBody(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -124,7 +238,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_ref_in_additionalproperties_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_allof_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_allof_request_body/post.py index dba5814622e..de763f1675a 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_allof_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_allof_request_body/post.py @@ -59,6 +59,31 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_ref_in_allof_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_ref_in_allof_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_ref_in_allof_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -67,7 +92,20 @@ def _post_ref_in_allof_request_body_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_ref_in_allof_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -119,6 +157,44 @@ class instances class PostRefInAllofRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_ref_in_allof_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_ref_in_allof_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_ref_in_allof_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_ref_in_allof_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -127,7 +203,7 @@ def post_ref_in_allof_request_body( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_ref_in_allof_request_body_oapg( @@ -142,6 +218,44 @@ def post_ref_in_allof_request_body( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -150,7 +264,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_ref_in_allof_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_allof_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_allof_request_body/post.pyi index c2cf146102f..9faab401b30 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_allof_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_allof_request_body/post.pyi @@ -33,6 +33,31 @@ SchemaForRequestBodyApplicationJson = RefInAllof class BaseApi(api_client.Api): + @typing.overload + def _post_ref_in_allof_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_ref_in_allof_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_ref_in_allof_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -41,7 +66,20 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_ref_in_allof_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -93,6 +131,44 @@ class BaseApi(api_client.Api): class PostRefInAllofRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_ref_in_allof_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_ref_in_allof_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_ref_in_allof_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_ref_in_allof_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -101,7 +177,7 @@ class PostRefInAllofRequestBody(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_ref_in_allof_request_body_oapg( @@ -116,6 +192,44 @@ class PostRefInAllofRequestBody(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -124,7 +238,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_ref_in_allof_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_anyof_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_anyof_request_body/post.py index 55240469c5a..ac9e49425ca 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_anyof_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_anyof_request_body/post.py @@ -59,6 +59,31 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_ref_in_anyof_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_ref_in_anyof_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_ref_in_anyof_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -67,7 +92,20 @@ def _post_ref_in_anyof_request_body_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_ref_in_anyof_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -119,6 +157,44 @@ class instances class PostRefInAnyofRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_ref_in_anyof_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_ref_in_anyof_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_ref_in_anyof_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_ref_in_anyof_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -127,7 +203,7 @@ def post_ref_in_anyof_request_body( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_ref_in_anyof_request_body_oapg( @@ -142,6 +218,44 @@ def post_ref_in_anyof_request_body( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -150,7 +264,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_ref_in_anyof_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_anyof_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_anyof_request_body/post.pyi index 15fe13e71ce..d28c04bf35d 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_anyof_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_anyof_request_body/post.pyi @@ -33,6 +33,31 @@ SchemaForRequestBodyApplicationJson = RefInAnyof class BaseApi(api_client.Api): + @typing.overload + def _post_ref_in_anyof_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_ref_in_anyof_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_ref_in_anyof_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -41,7 +66,20 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_ref_in_anyof_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -93,6 +131,44 @@ class BaseApi(api_client.Api): class PostRefInAnyofRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_ref_in_anyof_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_ref_in_anyof_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_ref_in_anyof_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_ref_in_anyof_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -101,7 +177,7 @@ class PostRefInAnyofRequestBody(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_ref_in_anyof_request_body_oapg( @@ -116,6 +192,44 @@ class PostRefInAnyofRequestBody(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -124,7 +238,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_ref_in_anyof_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_items_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_items_request_body/post.py index 7084e026966..46abac2d39b 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_items_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_items_request_body/post.py @@ -59,6 +59,31 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_ref_in_items_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_ref_in_items_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_ref_in_items_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -67,7 +92,20 @@ def _post_ref_in_items_request_body_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_ref_in_items_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -119,6 +157,44 @@ class instances class PostRefInItemsRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_ref_in_items_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_ref_in_items_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_ref_in_items_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_ref_in_items_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -127,7 +203,7 @@ def post_ref_in_items_request_body( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_ref_in_items_request_body_oapg( @@ -142,6 +218,44 @@ def post_ref_in_items_request_body( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -150,7 +264,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_ref_in_items_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_items_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_items_request_body/post.pyi index 92fe301b68b..449e4a81a79 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_items_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_items_request_body/post.pyi @@ -33,6 +33,31 @@ SchemaForRequestBodyApplicationJson = RefInItems class BaseApi(api_client.Api): + @typing.overload + def _post_ref_in_items_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_ref_in_items_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_ref_in_items_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -41,7 +66,20 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_ref_in_items_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -93,6 +131,44 @@ class BaseApi(api_client.Api): class PostRefInItemsRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_ref_in_items_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_ref_in_items_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_ref_in_items_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_ref_in_items_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -101,7 +177,7 @@ class PostRefInItemsRequestBody(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_ref_in_items_request_body_oapg( @@ -116,6 +192,44 @@ class PostRefInItemsRequestBody(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -124,7 +238,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_ref_in_items_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_not_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_not_request_body/post.py index 67420c43809..71547b803f6 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_not_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_not_request_body/post.py @@ -84,6 +84,31 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_ref_in_not_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_ref_in_not_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_ref_in_not_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], @@ -92,7 +117,20 @@ def _post_ref_in_not_request_body_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_ref_in_not_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -144,6 +182,44 @@ class instances class PostRefInNotRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_ref_in_not_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_ref_in_not_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_ref_in_not_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_ref_in_not_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], @@ -152,7 +228,7 @@ def post_ref_in_not_request_body( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_ref_in_not_request_body_oapg( @@ -167,6 +243,44 @@ def post_ref_in_not_request_body( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], @@ -175,7 +289,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_ref_in_not_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_not_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_not_request_body/post.pyi index b764ab5d1aa..f88ea2e23fb 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_not_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_not_request_body/post.pyi @@ -58,6 +58,31 @@ class SchemaForRequestBodyApplicationJson( class BaseApi(api_client.Api): + @typing.overload + def _post_ref_in_not_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_ref_in_not_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_ref_in_not_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], @@ -66,7 +91,20 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_ref_in_not_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -118,6 +156,44 @@ class BaseApi(api_client.Api): class PostRefInNotRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_ref_in_not_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_ref_in_not_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_ref_in_not_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_ref_in_not_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], @@ -126,7 +202,7 @@ class PostRefInNotRequestBody(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_ref_in_not_request_body_oapg( @@ -141,6 +217,44 @@ class PostRefInNotRequestBody(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], @@ -149,7 +263,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_ref_in_not_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_oneof_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_oneof_request_body/post.py index bc819760be6..e8000cbddc2 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_oneof_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_oneof_request_body/post.py @@ -59,6 +59,31 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_ref_in_oneof_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_ref_in_oneof_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_ref_in_oneof_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -67,7 +92,20 @@ def _post_ref_in_oneof_request_body_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_ref_in_oneof_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -119,6 +157,44 @@ class instances class PostRefInOneofRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_ref_in_oneof_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_ref_in_oneof_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_ref_in_oneof_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_ref_in_oneof_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -127,7 +203,7 @@ def post_ref_in_oneof_request_body( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_ref_in_oneof_request_body_oapg( @@ -142,6 +218,44 @@ def post_ref_in_oneof_request_body( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -150,7 +264,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_ref_in_oneof_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_oneof_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_oneof_request_body/post.pyi index 2c7e0962e03..0a902e2e3f1 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_oneof_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_oneof_request_body/post.pyi @@ -33,6 +33,31 @@ SchemaForRequestBodyApplicationJson = RefInOneof class BaseApi(api_client.Api): + @typing.overload + def _post_ref_in_oneof_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_ref_in_oneof_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_ref_in_oneof_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -41,7 +66,20 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_ref_in_oneof_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -93,6 +131,44 @@ class BaseApi(api_client.Api): class PostRefInOneofRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_ref_in_oneof_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_ref_in_oneof_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_ref_in_oneof_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_ref_in_oneof_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -101,7 +177,7 @@ class PostRefInOneofRequestBody(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_ref_in_oneof_request_body_oapg( @@ -116,6 +192,44 @@ class PostRefInOneofRequestBody(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -124,7 +238,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_ref_in_oneof_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_property_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_property_request_body/post.py index c90390d3363..d2e0eb61aad 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_property_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_property_request_body/post.py @@ -59,6 +59,31 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_ref_in_property_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_ref_in_property_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_ref_in_property_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -67,7 +92,20 @@ def _post_ref_in_property_request_body_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_ref_in_property_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -119,6 +157,44 @@ class instances class PostRefInPropertyRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_ref_in_property_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_ref_in_property_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_ref_in_property_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_ref_in_property_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -127,7 +203,7 @@ def post_ref_in_property_request_body( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_ref_in_property_request_body_oapg( @@ -142,6 +218,44 @@ def post_ref_in_property_request_body( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -150,7 +264,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_ref_in_property_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_property_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_property_request_body/post.pyi index 1c8577a746c..2930b5b4902 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_property_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_property_request_body/post.pyi @@ -33,6 +33,31 @@ SchemaForRequestBodyApplicationJson = RefInProperty class BaseApi(api_client.Api): + @typing.overload + def _post_ref_in_property_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_ref_in_property_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_ref_in_property_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -41,7 +66,20 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_ref_in_property_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -93,6 +131,44 @@ class BaseApi(api_client.Api): class PostRefInPropertyRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_ref_in_property_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_ref_in_property_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_ref_in_property_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_ref_in_property_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -101,7 +177,7 @@ class PostRefInPropertyRequestBody(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_ref_in_property_request_body_oapg( @@ -116,6 +192,44 @@ class PostRefInPropertyRequestBody(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -124,7 +238,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_ref_in_property_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_default_validation_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_default_validation_request_body/post.py index d69ac9a8f71..a1109527e13 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_default_validation_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_default_validation_request_body/post.py @@ -59,6 +59,31 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_required_default_validation_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_required_default_validation_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_required_default_validation_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -67,7 +92,20 @@ def _post_required_default_validation_request_body_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_required_default_validation_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -119,6 +157,44 @@ class instances class PostRequiredDefaultValidationRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_required_default_validation_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_required_default_validation_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_required_default_validation_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_required_default_validation_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -127,7 +203,7 @@ def post_required_default_validation_request_body( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_required_default_validation_request_body_oapg( @@ -142,6 +218,44 @@ def post_required_default_validation_request_body( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -150,7 +264,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_required_default_validation_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_default_validation_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_default_validation_request_body/post.pyi index 2f164dcd785..b88fbe261ad 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_default_validation_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_default_validation_request_body/post.pyi @@ -33,6 +33,31 @@ SchemaForRequestBodyApplicationJson = RequiredDefaultValidation class BaseApi(api_client.Api): + @typing.overload + def _post_required_default_validation_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_required_default_validation_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_required_default_validation_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -41,7 +66,20 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_required_default_validation_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -93,6 +131,44 @@ class BaseApi(api_client.Api): class PostRequiredDefaultValidationRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_required_default_validation_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_required_default_validation_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_required_default_validation_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_required_default_validation_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -101,7 +177,7 @@ class PostRequiredDefaultValidationRequestBody(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_required_default_validation_request_body_oapg( @@ -116,6 +192,44 @@ class PostRequiredDefaultValidationRequestBody(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -124,7 +238,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_required_default_validation_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_validation_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_validation_request_body/post.py index 53032cc7358..39ef50a5532 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_validation_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_validation_request_body/post.py @@ -59,6 +59,31 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_required_validation_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_required_validation_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_required_validation_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -67,7 +92,20 @@ def _post_required_validation_request_body_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_required_validation_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -119,6 +157,44 @@ class instances class PostRequiredValidationRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_required_validation_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_required_validation_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_required_validation_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_required_validation_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -127,7 +203,7 @@ def post_required_validation_request_body( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_required_validation_request_body_oapg( @@ -142,6 +218,44 @@ def post_required_validation_request_body( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -150,7 +264,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_required_validation_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_validation_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_validation_request_body/post.pyi index c8d141433cd..c6f7af6c0ec 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_validation_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_validation_request_body/post.pyi @@ -33,6 +33,31 @@ SchemaForRequestBodyApplicationJson = RequiredValidation class BaseApi(api_client.Api): + @typing.overload + def _post_required_validation_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_required_validation_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_required_validation_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -41,7 +66,20 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_required_validation_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -93,6 +131,44 @@ class BaseApi(api_client.Api): class PostRequiredValidationRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_required_validation_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_required_validation_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_required_validation_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_required_validation_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -101,7 +177,7 @@ class PostRequiredValidationRequestBody(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_required_validation_request_body_oapg( @@ -116,6 +192,44 @@ class PostRequiredValidationRequestBody(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -124,7 +238,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_required_validation_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post.py index d4e6b18bf56..e3a8b5e903c 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post.py @@ -59,6 +59,31 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_required_with_empty_array_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_required_with_empty_array_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_required_with_empty_array_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -67,7 +92,20 @@ def _post_required_with_empty_array_request_body_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_required_with_empty_array_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -119,6 +157,44 @@ class instances class PostRequiredWithEmptyArrayRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_required_with_empty_array_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_required_with_empty_array_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_required_with_empty_array_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_required_with_empty_array_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -127,7 +203,7 @@ def post_required_with_empty_array_request_body( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_required_with_empty_array_request_body_oapg( @@ -142,6 +218,44 @@ def post_required_with_empty_array_request_body( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -150,7 +264,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_required_with_empty_array_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post.pyi index 05070e8b80e..231c6f75081 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post.pyi @@ -33,6 +33,31 @@ SchemaForRequestBodyApplicationJson = RequiredWithEmptyArray class BaseApi(api_client.Api): + @typing.overload + def _post_required_with_empty_array_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_required_with_empty_array_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_required_with_empty_array_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -41,7 +66,20 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_required_with_empty_array_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -93,6 +131,44 @@ class BaseApi(api_client.Api): class PostRequiredWithEmptyArrayRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_required_with_empty_array_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_required_with_empty_array_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_required_with_empty_array_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_required_with_empty_array_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -101,7 +177,7 @@ class PostRequiredWithEmptyArrayRequestBody(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_required_with_empty_array_request_body_oapg( @@ -116,6 +192,44 @@ class PostRequiredWithEmptyArrayRequestBody(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -124,7 +238,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_required_with_empty_array_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post.py index 92d5b605383..747a56e677e 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post.py @@ -87,6 +87,31 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_required_with_escaped_characters_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_required_with_escaped_characters_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_required_with_escaped_characters_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], @@ -95,7 +120,20 @@ def _post_required_with_escaped_characters_request_body_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_required_with_escaped_characters_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -147,6 +185,44 @@ class instances class PostRequiredWithEscapedCharactersRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_required_with_escaped_characters_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_required_with_escaped_characters_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_required_with_escaped_characters_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_required_with_escaped_characters_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], @@ -155,7 +231,7 @@ def post_required_with_escaped_characters_request_body( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_required_with_escaped_characters_request_body_oapg( @@ -170,6 +246,44 @@ def post_required_with_escaped_characters_request_body( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], @@ -178,7 +292,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_required_with_escaped_characters_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post.pyi index ddc024fd9d0..c5cd5f24bf6 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post.pyi @@ -61,6 +61,31 @@ class SchemaForRequestBodyApplicationJson( class BaseApi(api_client.Api): + @typing.overload + def _post_required_with_escaped_characters_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_required_with_escaped_characters_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_required_with_escaped_characters_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], @@ -69,7 +94,20 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_required_with_escaped_characters_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -121,6 +159,44 @@ class BaseApi(api_client.Api): class PostRequiredWithEscapedCharactersRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_required_with_escaped_characters_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_required_with_escaped_characters_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_required_with_escaped_characters_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_required_with_escaped_characters_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], @@ -129,7 +205,7 @@ class PostRequiredWithEscapedCharactersRequestBody(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_required_with_escaped_characters_request_body_oapg( @@ -144,6 +220,44 @@ class PostRequiredWithEscapedCharactersRequestBody(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], @@ -152,7 +266,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_required_with_escaped_characters_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post.py index 1b16f9380ec..57803865cd3 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post.py @@ -59,6 +59,31 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_simple_enum_validation_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_simple_enum_validation_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_simple_enum_validation_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -67,7 +92,20 @@ def _post_simple_enum_validation_request_body_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_simple_enum_validation_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -119,6 +157,44 @@ class instances class PostSimpleEnumValidationRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_simple_enum_validation_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_simple_enum_validation_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_simple_enum_validation_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_simple_enum_validation_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -127,7 +203,7 @@ def post_simple_enum_validation_request_body( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_simple_enum_validation_request_body_oapg( @@ -142,6 +218,44 @@ def post_simple_enum_validation_request_body( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -150,7 +264,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_simple_enum_validation_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post.pyi index 7bb345e5f68..3f156b839a4 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post.pyi @@ -33,6 +33,31 @@ SchemaForRequestBodyApplicationJson = SimpleEnumValidation class BaseApi(api_client.Api): + @typing.overload + def _post_simple_enum_validation_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_simple_enum_validation_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_simple_enum_validation_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -41,7 +66,20 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_simple_enum_validation_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -93,6 +131,44 @@ class BaseApi(api_client.Api): class PostSimpleEnumValidationRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_simple_enum_validation_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_simple_enum_validation_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_simple_enum_validation_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_simple_enum_validation_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -101,7 +177,7 @@ class PostSimpleEnumValidationRequestBody(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_simple_enum_validation_request_body_oapg( @@ -116,6 +192,44 @@ class PostSimpleEnumValidationRequestBody(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -124,7 +238,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_simple_enum_validation_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post.py index 70baebb1f67..77d12251675 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post.py @@ -57,6 +57,31 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_string_type_matches_strings_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, str, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_string_type_matches_strings_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, str, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_string_type_matches_strings_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, str, ], @@ -65,7 +90,20 @@ def _post_string_type_matches_strings_request_body_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_string_type_matches_strings_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, str, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -117,6 +155,44 @@ class instances class PostStringTypeMatchesStringsRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_string_type_matches_strings_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, str, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_string_type_matches_strings_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, str, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_string_type_matches_strings_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, str, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_string_type_matches_strings_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, str, ], @@ -125,7 +201,7 @@ def post_string_type_matches_strings_request_body( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_string_type_matches_strings_request_body_oapg( @@ -140,6 +216,44 @@ def post_string_type_matches_strings_request_body( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, str, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, str, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, str, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, str, ], @@ -148,7 +262,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_string_type_matches_strings_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post.pyi index 50d8f7f9f3b..f091adfbde6 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post.pyi @@ -31,6 +31,31 @@ SchemaForRequestBodyApplicationJson = schemas.StrSchema class BaseApi(api_client.Api): + @typing.overload + def _post_string_type_matches_strings_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, str, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_string_type_matches_strings_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, str, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_string_type_matches_strings_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, str, ], @@ -39,7 +64,20 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_string_type_matches_strings_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, str, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -91,6 +129,44 @@ class BaseApi(api_client.Api): class PostStringTypeMatchesStringsRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_string_type_matches_strings_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, str, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_string_type_matches_strings_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, str, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_string_type_matches_strings_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, str, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_string_type_matches_strings_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, str, ], @@ -99,7 +175,7 @@ class PostStringTypeMatchesStringsRequestBody(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_string_type_matches_strings_request_body_oapg( @@ -114,6 +190,44 @@ class PostStringTypeMatchesStringsRequestBody(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, str, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, str, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, str, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, str, ], @@ -122,7 +236,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_string_type_matches_strings_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body/post.py index 19e0a5ce46e..9cbcccf5188 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body/post.py @@ -59,6 +59,31 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -67,7 +92,20 @@ def _post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_re timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -119,6 +157,44 @@ class instances class PostTheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissingRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -127,7 +203,7 @@ def post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_req timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body_oapg( @@ -142,6 +218,44 @@ def post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_req class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -150,7 +264,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body/post.pyi index b0d69d7aa92..f3bb885ae59 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body/post.pyi @@ -33,6 +33,31 @@ SchemaForRequestBodyApplicationJson = TheDefaultKeywordDoesNotDoAnythingIfThePro class BaseApi(api_client.Api): + @typing.overload + def _post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -41,7 +66,20 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -93,6 +131,44 @@ class BaseApi(api_client.Api): class PostTheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissingRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -101,7 +177,7 @@ class PostTheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissingRequestBody(Ba timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body_oapg( @@ -116,6 +192,44 @@ class PostTheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissingRequestBody(Ba class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -124,7 +238,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post.py index fd7400f1110..ab083ff97f2 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post.py @@ -59,6 +59,31 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_uniqueitems_false_validation_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_uniqueitems_false_validation_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_uniqueitems_false_validation_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -67,7 +92,20 @@ def _post_uniqueitems_false_validation_request_body_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_uniqueitems_false_validation_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -119,6 +157,44 @@ class instances class PostUniqueitemsFalseValidationRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_uniqueitems_false_validation_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_uniqueitems_false_validation_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_uniqueitems_false_validation_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_uniqueitems_false_validation_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -127,7 +203,7 @@ def post_uniqueitems_false_validation_request_body( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_uniqueitems_false_validation_request_body_oapg( @@ -142,6 +218,44 @@ def post_uniqueitems_false_validation_request_body( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -150,7 +264,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_uniqueitems_false_validation_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post.pyi index 03457ae0a3a..8871db7434d 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post.pyi @@ -33,6 +33,31 @@ SchemaForRequestBodyApplicationJson = UniqueitemsFalseValidation class BaseApi(api_client.Api): + @typing.overload + def _post_uniqueitems_false_validation_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_uniqueitems_false_validation_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_uniqueitems_false_validation_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -41,7 +66,20 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_uniqueitems_false_validation_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -93,6 +131,44 @@ class BaseApi(api_client.Api): class PostUniqueitemsFalseValidationRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_uniqueitems_false_validation_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_uniqueitems_false_validation_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_uniqueitems_false_validation_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_uniqueitems_false_validation_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -101,7 +177,7 @@ class PostUniqueitemsFalseValidationRequestBody(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_uniqueitems_false_validation_request_body_oapg( @@ -116,6 +192,44 @@ class PostUniqueitemsFalseValidationRequestBody(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -124,7 +238,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_uniqueitems_false_validation_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post.py index cf364bf948f..0a7194152bc 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post.py @@ -59,6 +59,31 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_uniqueitems_validation_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_uniqueitems_validation_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_uniqueitems_validation_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -67,7 +92,20 @@ def _post_uniqueitems_validation_request_body_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_uniqueitems_validation_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -119,6 +157,44 @@ class instances class PostUniqueitemsValidationRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_uniqueitems_validation_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_uniqueitems_validation_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_uniqueitems_validation_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_uniqueitems_validation_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -127,7 +203,7 @@ def post_uniqueitems_validation_request_body( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_uniqueitems_validation_request_body_oapg( @@ -142,6 +218,44 @@ def post_uniqueitems_validation_request_body( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -150,7 +264,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_uniqueitems_validation_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post.pyi index dfe7f9041cf..f6bab7053bd 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post.pyi @@ -33,6 +33,31 @@ SchemaForRequestBodyApplicationJson = UniqueitemsValidation class BaseApi(api_client.Api): + @typing.overload + def _post_uniqueitems_validation_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_uniqueitems_validation_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_uniqueitems_validation_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -41,7 +66,20 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_uniqueitems_validation_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -93,6 +131,44 @@ class BaseApi(api_client.Api): class PostUniqueitemsValidationRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_uniqueitems_validation_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_uniqueitems_validation_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_uniqueitems_validation_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_uniqueitems_validation_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -101,7 +177,7 @@ class PostUniqueitemsValidationRequestBody(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_uniqueitems_validation_request_body_oapg( @@ -116,6 +192,44 @@ class PostUniqueitemsValidationRequestBody(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, ], @@ -124,7 +238,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_uniqueitems_validation_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_format_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_format_request_body/post.py index fe898546b5a..399ea4cb291 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_format_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_format_request_body/post.py @@ -79,6 +79,31 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_uri_format_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_uri_format_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_uri_format_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], @@ -87,7 +112,20 @@ def _post_uri_format_request_body_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_uri_format_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -139,6 +177,44 @@ class instances class PostUriFormatRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_uri_format_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_uri_format_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_uri_format_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_uri_format_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], @@ -147,7 +223,7 @@ def post_uri_format_request_body( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_uri_format_request_body_oapg( @@ -162,6 +238,44 @@ def post_uri_format_request_body( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], @@ -170,7 +284,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_uri_format_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_format_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_format_request_body/post.pyi index 7f3fa41ba21..0e354069eca 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_format_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_format_request_body/post.pyi @@ -53,6 +53,31 @@ class SchemaForRequestBodyApplicationJson( class BaseApi(api_client.Api): + @typing.overload + def _post_uri_format_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_uri_format_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_uri_format_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], @@ -61,7 +86,20 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_uri_format_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -113,6 +151,44 @@ class BaseApi(api_client.Api): class PostUriFormatRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_uri_format_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_uri_format_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_uri_format_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_uri_format_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], @@ -121,7 +197,7 @@ class PostUriFormatRequestBody(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_uri_format_request_body_oapg( @@ -136,6 +212,44 @@ class PostUriFormatRequestBody(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], @@ -144,7 +258,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_uri_format_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post.py index 49bd115c0c5..f1eeb5ac717 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post.py @@ -79,6 +79,31 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_uri_reference_format_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_uri_reference_format_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_uri_reference_format_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], @@ -87,7 +112,20 @@ def _post_uri_reference_format_request_body_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_uri_reference_format_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -139,6 +177,44 @@ class instances class PostUriReferenceFormatRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_uri_reference_format_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_uri_reference_format_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_uri_reference_format_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_uri_reference_format_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], @@ -147,7 +223,7 @@ def post_uri_reference_format_request_body( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_uri_reference_format_request_body_oapg( @@ -162,6 +238,44 @@ def post_uri_reference_format_request_body( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], @@ -170,7 +284,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_uri_reference_format_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post.pyi index a7fe122f3a1..27dee50759b 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post.pyi @@ -53,6 +53,31 @@ class SchemaForRequestBodyApplicationJson( class BaseApi(api_client.Api): + @typing.overload + def _post_uri_reference_format_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_uri_reference_format_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_uri_reference_format_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], @@ -61,7 +86,20 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_uri_reference_format_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -113,6 +151,44 @@ class BaseApi(api_client.Api): class PostUriReferenceFormatRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_uri_reference_format_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_uri_reference_format_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_uri_reference_format_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_uri_reference_format_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], @@ -121,7 +197,7 @@ class PostUriReferenceFormatRequestBody(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_uri_reference_format_request_body_oapg( @@ -136,6 +212,44 @@ class PostUriReferenceFormatRequestBody(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], @@ -144,7 +258,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_uri_reference_format_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_template_format_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_template_format_request_body/post.py index aef3129629a..248c4926937 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_template_format_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_template_format_request_body/post.py @@ -79,6 +79,31 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_uri_template_format_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_uri_template_format_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_uri_template_format_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], @@ -87,7 +112,20 @@ def _post_uri_template_format_request_body_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_uri_template_format_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -139,6 +177,44 @@ class instances class PostUriTemplateFormatRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_uri_template_format_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_uri_template_format_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_uri_template_format_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_uri_template_format_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], @@ -147,7 +223,7 @@ def post_uri_template_format_request_body( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_uri_template_format_request_body_oapg( @@ -162,6 +238,44 @@ def post_uri_template_format_request_body( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], @@ -170,7 +284,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_uri_template_format_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_template_format_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_template_format_request_body/post.pyi index e6ff0166fa6..56e529b4f4f 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_template_format_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_template_format_request_body/post.pyi @@ -53,6 +53,31 @@ class SchemaForRequestBodyApplicationJson( class BaseApi(api_client.Api): + @typing.overload + def _post_uri_template_format_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_uri_template_format_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload def _post_uri_template_format_request_body_oapg( self: api_client.Api, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], @@ -61,7 +86,20 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + + def _post_uri_template_format_request_body_oapg( + self: api_client.Api, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -113,6 +151,44 @@ class BaseApi(api_client.Api): class PostUriTemplateFormatRequestBody(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_uri_template_format_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_uri_template_format_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_uri_template_format_request_body( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_uri_template_format_request_body( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], @@ -121,7 +197,7 @@ class PostUriTemplateFormatRequestBody(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_uri_template_format_request_body_oapg( @@ -136,6 +212,44 @@ class PostUriTemplateFormatRequestBody(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], @@ -144,7 +258,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_uri_template_format_request_body_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types/post.py index d483b56496f..aa5097c02d6 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types/post.py @@ -58,6 +58,41 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -65,7 +100,7 @@ def _post_additionalproperties_allows_a_schema_which_should_validate_response_bo timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -107,6 +142,41 @@ class instances class PostAdditionalpropertiesAllowsASchemaWhichShouldValidateResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -114,7 +184,7 @@ def post_additionalproperties_allows_a_schema_which_should_validate_response_bod timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types_oapg( @@ -128,6 +198,41 @@ def post_additionalproperties_allows_a_schema_which_should_validate_response_bod class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -135,7 +240,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types/post.pyi index db7eb165439..4d30e72db6d 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types/post.pyi @@ -35,6 +35,41 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -42,7 +77,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -84,6 +119,41 @@ class BaseApi(api_client.Api): class PostAdditionalpropertiesAllowsASchemaWhichShouldValidateResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -91,7 +161,7 @@ class PostAdditionalpropertiesAllowsASchemaWhichShouldValidateResponseBodyForCon timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types_oapg( @@ -105,6 +175,41 @@ class PostAdditionalpropertiesAllowsASchemaWhichShouldValidateResponseBodyForCon class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -112,7 +217,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post.py index 43d6a536f11..751405a4975 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post.py @@ -58,6 +58,41 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_additionalproperties_are_allowed_by_default_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_additionalproperties_are_allowed_by_default_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_additionalproperties_are_allowed_by_default_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_additionalproperties_are_allowed_by_default_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -65,7 +100,7 @@ def _post_additionalproperties_are_allowed_by_default_response_body_for_content_ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -107,6 +142,41 @@ class instances class PostAdditionalpropertiesAreAllowedByDefaultResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_additionalproperties_are_allowed_by_default_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_additionalproperties_are_allowed_by_default_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_additionalproperties_are_allowed_by_default_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_additionalproperties_are_allowed_by_default_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -114,7 +184,7 @@ def post_additionalproperties_are_allowed_by_default_response_body_for_content_t timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_additionalproperties_are_allowed_by_default_response_body_for_content_types_oapg( @@ -128,6 +198,41 @@ def post_additionalproperties_are_allowed_by_default_response_body_for_content_t class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -135,7 +240,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_additionalproperties_are_allowed_by_default_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post.pyi index 689d638523c..ef19e1c6189 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post.pyi @@ -35,6 +35,41 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _post_additionalproperties_are_allowed_by_default_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_additionalproperties_are_allowed_by_default_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_additionalproperties_are_allowed_by_default_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_additionalproperties_are_allowed_by_default_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -42,7 +77,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -84,6 +119,41 @@ class BaseApi(api_client.Api): class PostAdditionalpropertiesAreAllowedByDefaultResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_additionalproperties_are_allowed_by_default_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_additionalproperties_are_allowed_by_default_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_additionalproperties_are_allowed_by_default_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_additionalproperties_are_allowed_by_default_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -91,7 +161,7 @@ class PostAdditionalpropertiesAreAllowedByDefaultResponseBodyForContentTypes(Bas timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_additionalproperties_are_allowed_by_default_response_body_for_content_types_oapg( @@ -105,6 +175,41 @@ class PostAdditionalpropertiesAreAllowedByDefaultResponseBodyForContentTypes(Bas class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -112,7 +217,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_additionalproperties_are_allowed_by_default_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post.py index 27943fe18ad..3a07812d896 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post.py @@ -58,6 +58,41 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_additionalproperties_can_exist_by_itself_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_additionalproperties_can_exist_by_itself_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_additionalproperties_can_exist_by_itself_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_additionalproperties_can_exist_by_itself_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -65,7 +100,7 @@ def _post_additionalproperties_can_exist_by_itself_response_body_for_content_typ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -107,6 +142,41 @@ class instances class PostAdditionalpropertiesCanExistByItselfResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_additionalproperties_can_exist_by_itself_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_additionalproperties_can_exist_by_itself_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_additionalproperties_can_exist_by_itself_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_additionalproperties_can_exist_by_itself_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -114,7 +184,7 @@ def post_additionalproperties_can_exist_by_itself_response_body_for_content_type timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_additionalproperties_can_exist_by_itself_response_body_for_content_types_oapg( @@ -128,6 +198,41 @@ def post_additionalproperties_can_exist_by_itself_response_body_for_content_type class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -135,7 +240,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_additionalproperties_can_exist_by_itself_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post.pyi index 73cab792eb7..8e0c417ea8b 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post.pyi @@ -35,6 +35,41 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _post_additionalproperties_can_exist_by_itself_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_additionalproperties_can_exist_by_itself_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_additionalproperties_can_exist_by_itself_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_additionalproperties_can_exist_by_itself_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -42,7 +77,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -84,6 +119,41 @@ class BaseApi(api_client.Api): class PostAdditionalpropertiesCanExistByItselfResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_additionalproperties_can_exist_by_itself_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_additionalproperties_can_exist_by_itself_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_additionalproperties_can_exist_by_itself_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_additionalproperties_can_exist_by_itself_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -91,7 +161,7 @@ class PostAdditionalpropertiesCanExistByItselfResponseBodyForContentTypes(BaseAp timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_additionalproperties_can_exist_by_itself_response_body_for_content_types_oapg( @@ -105,6 +175,41 @@ class PostAdditionalpropertiesCanExistByItselfResponseBodyForContentTypes(BaseAp class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -112,7 +217,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_additionalproperties_can_exist_by_itself_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types/post.py index bd2a1a7f0d3..dc12338d9c5 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types/post.py @@ -58,6 +58,41 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -65,7 +100,7 @@ def _post_additionalproperties_should_not_look_in_applicators_response_body_for_ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -107,6 +142,41 @@ class instances class PostAdditionalpropertiesShouldNotLookInApplicatorsResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -114,7 +184,7 @@ def post_additionalproperties_should_not_look_in_applicators_response_body_for_c timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types_oapg( @@ -128,6 +198,41 @@ def post_additionalproperties_should_not_look_in_applicators_response_body_for_c class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -135,7 +240,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types/post.pyi index f5bddfa9488..fda6a7a1aff 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types/post.pyi @@ -35,6 +35,41 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -42,7 +77,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -84,6 +119,41 @@ class BaseApi(api_client.Api): class PostAdditionalpropertiesShouldNotLookInApplicatorsResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -91,7 +161,7 @@ class PostAdditionalpropertiesShouldNotLookInApplicatorsResponseBodyForContentTy timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types_oapg( @@ -105,6 +175,41 @@ class PostAdditionalpropertiesShouldNotLookInApplicatorsResponseBodyForContentTy class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -112,7 +217,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post.py index ed6ee20d1ed..b74476956cd 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post.py @@ -58,6 +58,41 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_allof_combined_with_anyof_oneof_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_allof_combined_with_anyof_oneof_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_allof_combined_with_anyof_oneof_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_allof_combined_with_anyof_oneof_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -65,7 +100,7 @@ def _post_allof_combined_with_anyof_oneof_response_body_for_content_types_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -107,6 +142,41 @@ class instances class PostAllofCombinedWithAnyofOneofResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_allof_combined_with_anyof_oneof_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_allof_combined_with_anyof_oneof_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_allof_combined_with_anyof_oneof_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_allof_combined_with_anyof_oneof_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -114,7 +184,7 @@ def post_allof_combined_with_anyof_oneof_response_body_for_content_types( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_allof_combined_with_anyof_oneof_response_body_for_content_types_oapg( @@ -128,6 +198,41 @@ def post_allof_combined_with_anyof_oneof_response_body_for_content_types( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -135,7 +240,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_allof_combined_with_anyof_oneof_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post.pyi index 28401bd1cd3..eacb3078725 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post.pyi @@ -35,6 +35,41 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _post_allof_combined_with_anyof_oneof_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_allof_combined_with_anyof_oneof_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_allof_combined_with_anyof_oneof_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_allof_combined_with_anyof_oneof_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -42,7 +77,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -84,6 +119,41 @@ class BaseApi(api_client.Api): class PostAllofCombinedWithAnyofOneofResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_allof_combined_with_anyof_oneof_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_allof_combined_with_anyof_oneof_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_allof_combined_with_anyof_oneof_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_allof_combined_with_anyof_oneof_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -91,7 +161,7 @@ class PostAllofCombinedWithAnyofOneofResponseBodyForContentTypes(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_allof_combined_with_anyof_oneof_response_body_for_content_types_oapg( @@ -105,6 +175,41 @@ class PostAllofCombinedWithAnyofOneofResponseBodyForContentTypes(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -112,7 +217,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_allof_combined_with_anyof_oneof_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_response_body_for_content_types/post.py index bb8cfc8a815..3d32852c973 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_response_body_for_content_types/post.py @@ -58,6 +58,41 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_allof_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_allof_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_allof_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_allof_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -65,7 +100,7 @@ def _post_allof_response_body_for_content_types_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -107,6 +142,41 @@ class instances class PostAllofResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_allof_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_allof_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_allof_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_allof_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -114,7 +184,7 @@ def post_allof_response_body_for_content_types( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_allof_response_body_for_content_types_oapg( @@ -128,6 +198,41 @@ def post_allof_response_body_for_content_types( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -135,7 +240,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_allof_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_response_body_for_content_types/post.pyi index d04ed5d067a..bb2296f1aa3 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_response_body_for_content_types/post.pyi @@ -35,6 +35,41 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _post_allof_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_allof_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_allof_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_allof_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -42,7 +77,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -84,6 +119,41 @@ class BaseApi(api_client.Api): class PostAllofResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_allof_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_allof_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_allof_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_allof_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -91,7 +161,7 @@ class PostAllofResponseBodyForContentTypes(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_allof_response_body_for_content_types_oapg( @@ -105,6 +175,41 @@ class PostAllofResponseBodyForContentTypes(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -112,7 +217,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_allof_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_simple_types_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_simple_types_response_body_for_content_types/post.py index 3503c97dde8..eacda452c71 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_simple_types_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_simple_types_response_body_for_content_types/post.py @@ -58,6 +58,41 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_allof_simple_types_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_allof_simple_types_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_allof_simple_types_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_allof_simple_types_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -65,7 +100,7 @@ def _post_allof_simple_types_response_body_for_content_types_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -107,6 +142,41 @@ class instances class PostAllofSimpleTypesResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_allof_simple_types_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_allof_simple_types_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_allof_simple_types_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_allof_simple_types_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -114,7 +184,7 @@ def post_allof_simple_types_response_body_for_content_types( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_allof_simple_types_response_body_for_content_types_oapg( @@ -128,6 +198,41 @@ def post_allof_simple_types_response_body_for_content_types( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -135,7 +240,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_allof_simple_types_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_simple_types_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_simple_types_response_body_for_content_types/post.pyi index 7030b29ba8f..7daad5a5a84 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_simple_types_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_simple_types_response_body_for_content_types/post.pyi @@ -35,6 +35,41 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _post_allof_simple_types_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_allof_simple_types_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_allof_simple_types_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_allof_simple_types_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -42,7 +77,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -84,6 +119,41 @@ class BaseApi(api_client.Api): class PostAllofSimpleTypesResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_allof_simple_types_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_allof_simple_types_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_allof_simple_types_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_allof_simple_types_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -91,7 +161,7 @@ class PostAllofSimpleTypesResponseBodyForContentTypes(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_allof_simple_types_response_body_for_content_types_oapg( @@ -105,6 +175,41 @@ class PostAllofSimpleTypesResponseBodyForContentTypes(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -112,7 +217,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_allof_simple_types_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post.py index 6e77ac14228..84f44f0b698 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post.py @@ -58,6 +58,41 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_allof_with_base_schema_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_allof_with_base_schema_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_allof_with_base_schema_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_allof_with_base_schema_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -65,7 +100,7 @@ def _post_allof_with_base_schema_response_body_for_content_types_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -107,6 +142,41 @@ class instances class PostAllofWithBaseSchemaResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_allof_with_base_schema_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_allof_with_base_schema_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_allof_with_base_schema_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_allof_with_base_schema_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -114,7 +184,7 @@ def post_allof_with_base_schema_response_body_for_content_types( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_allof_with_base_schema_response_body_for_content_types_oapg( @@ -128,6 +198,41 @@ def post_allof_with_base_schema_response_body_for_content_types( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -135,7 +240,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_allof_with_base_schema_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post.pyi index dfbabc6c18f..de6c4ccf81d 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post.pyi @@ -35,6 +35,41 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _post_allof_with_base_schema_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_allof_with_base_schema_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_allof_with_base_schema_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_allof_with_base_schema_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -42,7 +77,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -84,6 +119,41 @@ class BaseApi(api_client.Api): class PostAllofWithBaseSchemaResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_allof_with_base_schema_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_allof_with_base_schema_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_allof_with_base_schema_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_allof_with_base_schema_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -91,7 +161,7 @@ class PostAllofWithBaseSchemaResponseBodyForContentTypes(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_allof_with_base_schema_response_body_for_content_types_oapg( @@ -105,6 +175,41 @@ class PostAllofWithBaseSchemaResponseBodyForContentTypes(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -112,7 +217,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_allof_with_base_schema_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post.py index edbc007e879..7dd81a24cc4 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post.py @@ -58,6 +58,41 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_allof_with_one_empty_schema_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_allof_with_one_empty_schema_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_allof_with_one_empty_schema_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_allof_with_one_empty_schema_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -65,7 +100,7 @@ def _post_allof_with_one_empty_schema_response_body_for_content_types_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -107,6 +142,41 @@ class instances class PostAllofWithOneEmptySchemaResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_allof_with_one_empty_schema_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_allof_with_one_empty_schema_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_allof_with_one_empty_schema_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_allof_with_one_empty_schema_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -114,7 +184,7 @@ def post_allof_with_one_empty_schema_response_body_for_content_types( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_allof_with_one_empty_schema_response_body_for_content_types_oapg( @@ -128,6 +198,41 @@ def post_allof_with_one_empty_schema_response_body_for_content_types( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -135,7 +240,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_allof_with_one_empty_schema_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post.pyi index d189cb26e51..22589d1de0b 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post.pyi @@ -35,6 +35,41 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _post_allof_with_one_empty_schema_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_allof_with_one_empty_schema_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_allof_with_one_empty_schema_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_allof_with_one_empty_schema_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -42,7 +77,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -84,6 +119,41 @@ class BaseApi(api_client.Api): class PostAllofWithOneEmptySchemaResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_allof_with_one_empty_schema_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_allof_with_one_empty_schema_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_allof_with_one_empty_schema_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_allof_with_one_empty_schema_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -91,7 +161,7 @@ class PostAllofWithOneEmptySchemaResponseBodyForContentTypes(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_allof_with_one_empty_schema_response_body_for_content_types_oapg( @@ -105,6 +175,41 @@ class PostAllofWithOneEmptySchemaResponseBodyForContentTypes(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -112,7 +217,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_allof_with_one_empty_schema_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post.py index 389f9b84206..c3c0acc6fa9 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post.py @@ -58,6 +58,41 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_allof_with_the_first_empty_schema_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_allof_with_the_first_empty_schema_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_allof_with_the_first_empty_schema_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_allof_with_the_first_empty_schema_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -65,7 +100,7 @@ def _post_allof_with_the_first_empty_schema_response_body_for_content_types_oapg timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -107,6 +142,41 @@ class instances class PostAllofWithTheFirstEmptySchemaResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_allof_with_the_first_empty_schema_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_allof_with_the_first_empty_schema_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_allof_with_the_first_empty_schema_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_allof_with_the_first_empty_schema_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -114,7 +184,7 @@ def post_allof_with_the_first_empty_schema_response_body_for_content_types( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_allof_with_the_first_empty_schema_response_body_for_content_types_oapg( @@ -128,6 +198,41 @@ def post_allof_with_the_first_empty_schema_response_body_for_content_types( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -135,7 +240,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_allof_with_the_first_empty_schema_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post.pyi index b467287f0a7..eec630bbc60 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post.pyi @@ -35,6 +35,41 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _post_allof_with_the_first_empty_schema_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_allof_with_the_first_empty_schema_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_allof_with_the_first_empty_schema_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_allof_with_the_first_empty_schema_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -42,7 +77,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -84,6 +119,41 @@ class BaseApi(api_client.Api): class PostAllofWithTheFirstEmptySchemaResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_allof_with_the_first_empty_schema_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_allof_with_the_first_empty_schema_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_allof_with_the_first_empty_schema_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_allof_with_the_first_empty_schema_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -91,7 +161,7 @@ class PostAllofWithTheFirstEmptySchemaResponseBodyForContentTypes(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_allof_with_the_first_empty_schema_response_body_for_content_types_oapg( @@ -105,6 +175,41 @@ class PostAllofWithTheFirstEmptySchemaResponseBodyForContentTypes(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -112,7 +217,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_allof_with_the_first_empty_schema_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post.py index 51c81cc92aa..c9ece362d7e 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post.py @@ -58,6 +58,41 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_allof_with_the_last_empty_schema_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_allof_with_the_last_empty_schema_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_allof_with_the_last_empty_schema_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_allof_with_the_last_empty_schema_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -65,7 +100,7 @@ def _post_allof_with_the_last_empty_schema_response_body_for_content_types_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -107,6 +142,41 @@ class instances class PostAllofWithTheLastEmptySchemaResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_allof_with_the_last_empty_schema_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_allof_with_the_last_empty_schema_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_allof_with_the_last_empty_schema_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_allof_with_the_last_empty_schema_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -114,7 +184,7 @@ def post_allof_with_the_last_empty_schema_response_body_for_content_types( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_allof_with_the_last_empty_schema_response_body_for_content_types_oapg( @@ -128,6 +198,41 @@ def post_allof_with_the_last_empty_schema_response_body_for_content_types( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -135,7 +240,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_allof_with_the_last_empty_schema_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post.pyi index f502a2a7ec2..6670741e2d4 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post.pyi @@ -35,6 +35,41 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _post_allof_with_the_last_empty_schema_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_allof_with_the_last_empty_schema_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_allof_with_the_last_empty_schema_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_allof_with_the_last_empty_schema_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -42,7 +77,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -84,6 +119,41 @@ class BaseApi(api_client.Api): class PostAllofWithTheLastEmptySchemaResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_allof_with_the_last_empty_schema_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_allof_with_the_last_empty_schema_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_allof_with_the_last_empty_schema_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_allof_with_the_last_empty_schema_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -91,7 +161,7 @@ class PostAllofWithTheLastEmptySchemaResponseBodyForContentTypes(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_allof_with_the_last_empty_schema_response_body_for_content_types_oapg( @@ -105,6 +175,41 @@ class PostAllofWithTheLastEmptySchemaResponseBodyForContentTypes(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -112,7 +217,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_allof_with_the_last_empty_schema_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post.py index 3abf1066253..d3da7caa736 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post.py @@ -58,6 +58,41 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_allof_with_two_empty_schemas_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_allof_with_two_empty_schemas_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_allof_with_two_empty_schemas_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_allof_with_two_empty_schemas_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -65,7 +100,7 @@ def _post_allof_with_two_empty_schemas_response_body_for_content_types_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -107,6 +142,41 @@ class instances class PostAllofWithTwoEmptySchemasResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_allof_with_two_empty_schemas_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_allof_with_two_empty_schemas_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_allof_with_two_empty_schemas_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_allof_with_two_empty_schemas_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -114,7 +184,7 @@ def post_allof_with_two_empty_schemas_response_body_for_content_types( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_allof_with_two_empty_schemas_response_body_for_content_types_oapg( @@ -128,6 +198,41 @@ def post_allof_with_two_empty_schemas_response_body_for_content_types( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -135,7 +240,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_allof_with_two_empty_schemas_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post.pyi index 43650cf1372..dcbc1df0afb 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post.pyi @@ -35,6 +35,41 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _post_allof_with_two_empty_schemas_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_allof_with_two_empty_schemas_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_allof_with_two_empty_schemas_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_allof_with_two_empty_schemas_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -42,7 +77,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -84,6 +119,41 @@ class BaseApi(api_client.Api): class PostAllofWithTwoEmptySchemasResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_allof_with_two_empty_schemas_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_allof_with_two_empty_schemas_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_allof_with_two_empty_schemas_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_allof_with_two_empty_schemas_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -91,7 +161,7 @@ class PostAllofWithTwoEmptySchemasResponseBodyForContentTypes(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_allof_with_two_empty_schemas_response_body_for_content_types_oapg( @@ -105,6 +175,41 @@ class PostAllofWithTwoEmptySchemasResponseBodyForContentTypes(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -112,7 +217,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_allof_with_two_empty_schemas_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post.py index 23c53bc9e66..a0bc2259d91 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post.py @@ -58,6 +58,41 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_anyof_complex_types_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_anyof_complex_types_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_anyof_complex_types_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_anyof_complex_types_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -65,7 +100,7 @@ def _post_anyof_complex_types_response_body_for_content_types_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -107,6 +142,41 @@ class instances class PostAnyofComplexTypesResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_anyof_complex_types_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_anyof_complex_types_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_anyof_complex_types_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_anyof_complex_types_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -114,7 +184,7 @@ def post_anyof_complex_types_response_body_for_content_types( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_anyof_complex_types_response_body_for_content_types_oapg( @@ -128,6 +198,41 @@ def post_anyof_complex_types_response_body_for_content_types( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -135,7 +240,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_anyof_complex_types_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post.pyi index 507becb0fc7..cc23ee3e417 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post.pyi @@ -35,6 +35,41 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _post_anyof_complex_types_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_anyof_complex_types_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_anyof_complex_types_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_anyof_complex_types_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -42,7 +77,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -84,6 +119,41 @@ class BaseApi(api_client.Api): class PostAnyofComplexTypesResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_anyof_complex_types_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_anyof_complex_types_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_anyof_complex_types_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_anyof_complex_types_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -91,7 +161,7 @@ class PostAnyofComplexTypesResponseBodyForContentTypes(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_anyof_complex_types_response_body_for_content_types_oapg( @@ -105,6 +175,41 @@ class PostAnyofComplexTypesResponseBodyForContentTypes(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -112,7 +217,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_anyof_complex_types_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_response_body_for_content_types/post.py index b12f52012a7..1c31b5fb858 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_response_body_for_content_types/post.py @@ -58,6 +58,41 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_anyof_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_anyof_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_anyof_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_anyof_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -65,7 +100,7 @@ def _post_anyof_response_body_for_content_types_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -107,6 +142,41 @@ class instances class PostAnyofResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_anyof_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_anyof_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_anyof_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_anyof_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -114,7 +184,7 @@ def post_anyof_response_body_for_content_types( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_anyof_response_body_for_content_types_oapg( @@ -128,6 +198,41 @@ def post_anyof_response_body_for_content_types( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -135,7 +240,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_anyof_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_response_body_for_content_types/post.pyi index 9b227c718c2..d33c2e4d1f8 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_response_body_for_content_types/post.pyi @@ -35,6 +35,41 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _post_anyof_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_anyof_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_anyof_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_anyof_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -42,7 +77,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -84,6 +119,41 @@ class BaseApi(api_client.Api): class PostAnyofResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_anyof_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_anyof_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_anyof_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_anyof_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -91,7 +161,7 @@ class PostAnyofResponseBodyForContentTypes(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_anyof_response_body_for_content_types_oapg( @@ -105,6 +175,41 @@ class PostAnyofResponseBodyForContentTypes(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -112,7 +217,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_anyof_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post.py index 4d47659f0bd..36d9e12208e 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post.py @@ -58,6 +58,41 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_anyof_with_base_schema_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_anyof_with_base_schema_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_anyof_with_base_schema_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_anyof_with_base_schema_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -65,7 +100,7 @@ def _post_anyof_with_base_schema_response_body_for_content_types_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -107,6 +142,41 @@ class instances class PostAnyofWithBaseSchemaResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_anyof_with_base_schema_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_anyof_with_base_schema_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_anyof_with_base_schema_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_anyof_with_base_schema_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -114,7 +184,7 @@ def post_anyof_with_base_schema_response_body_for_content_types( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_anyof_with_base_schema_response_body_for_content_types_oapg( @@ -128,6 +198,41 @@ def post_anyof_with_base_schema_response_body_for_content_types( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -135,7 +240,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_anyof_with_base_schema_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post.pyi index f1c8912f7b2..80704ec7225 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post.pyi @@ -35,6 +35,41 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _post_anyof_with_base_schema_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_anyof_with_base_schema_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_anyof_with_base_schema_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_anyof_with_base_schema_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -42,7 +77,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -84,6 +119,41 @@ class BaseApi(api_client.Api): class PostAnyofWithBaseSchemaResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_anyof_with_base_schema_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_anyof_with_base_schema_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_anyof_with_base_schema_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_anyof_with_base_schema_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -91,7 +161,7 @@ class PostAnyofWithBaseSchemaResponseBodyForContentTypes(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_anyof_with_base_schema_response_body_for_content_types_oapg( @@ -105,6 +175,41 @@ class PostAnyofWithBaseSchemaResponseBodyForContentTypes(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -112,7 +217,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_anyof_with_base_schema_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post.py index 5da32795327..67392ab665b 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post.py @@ -58,6 +58,41 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_anyof_with_one_empty_schema_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_anyof_with_one_empty_schema_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_anyof_with_one_empty_schema_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_anyof_with_one_empty_schema_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -65,7 +100,7 @@ def _post_anyof_with_one_empty_schema_response_body_for_content_types_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -107,6 +142,41 @@ class instances class PostAnyofWithOneEmptySchemaResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_anyof_with_one_empty_schema_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_anyof_with_one_empty_schema_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_anyof_with_one_empty_schema_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_anyof_with_one_empty_schema_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -114,7 +184,7 @@ def post_anyof_with_one_empty_schema_response_body_for_content_types( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_anyof_with_one_empty_schema_response_body_for_content_types_oapg( @@ -128,6 +198,41 @@ def post_anyof_with_one_empty_schema_response_body_for_content_types( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -135,7 +240,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_anyof_with_one_empty_schema_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post.pyi index e59f582c862..e38a1a1a754 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post.pyi @@ -35,6 +35,41 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _post_anyof_with_one_empty_schema_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_anyof_with_one_empty_schema_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_anyof_with_one_empty_schema_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_anyof_with_one_empty_schema_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -42,7 +77,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -84,6 +119,41 @@ class BaseApi(api_client.Api): class PostAnyofWithOneEmptySchemaResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_anyof_with_one_empty_schema_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_anyof_with_one_empty_schema_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_anyof_with_one_empty_schema_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_anyof_with_one_empty_schema_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -91,7 +161,7 @@ class PostAnyofWithOneEmptySchemaResponseBodyForContentTypes(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_anyof_with_one_empty_schema_response_body_for_content_types_oapg( @@ -105,6 +175,41 @@ class PostAnyofWithOneEmptySchemaResponseBodyForContentTypes(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -112,7 +217,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_anyof_with_one_empty_schema_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post.py index 1414fa62e86..4102eef8f2b 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post.py @@ -58,6 +58,41 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_array_type_matches_arrays_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_array_type_matches_arrays_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_array_type_matches_arrays_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_array_type_matches_arrays_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -65,7 +100,7 @@ def _post_array_type_matches_arrays_response_body_for_content_types_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -107,6 +142,41 @@ class instances class PostArrayTypeMatchesArraysResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_array_type_matches_arrays_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_array_type_matches_arrays_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_array_type_matches_arrays_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_array_type_matches_arrays_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -114,7 +184,7 @@ def post_array_type_matches_arrays_response_body_for_content_types( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_array_type_matches_arrays_response_body_for_content_types_oapg( @@ -128,6 +198,41 @@ def post_array_type_matches_arrays_response_body_for_content_types( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -135,7 +240,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_array_type_matches_arrays_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post.pyi index d5676f03581..426ddaa7e39 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post.pyi @@ -35,6 +35,41 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _post_array_type_matches_arrays_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_array_type_matches_arrays_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_array_type_matches_arrays_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_array_type_matches_arrays_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -42,7 +77,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -84,6 +119,41 @@ class BaseApi(api_client.Api): class PostArrayTypeMatchesArraysResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_array_type_matches_arrays_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_array_type_matches_arrays_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_array_type_matches_arrays_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_array_type_matches_arrays_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -91,7 +161,7 @@ class PostArrayTypeMatchesArraysResponseBodyForContentTypes(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_array_type_matches_arrays_response_body_for_content_types_oapg( @@ -105,6 +175,41 @@ class PostArrayTypeMatchesArraysResponseBodyForContentTypes(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -112,7 +217,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_array_type_matches_arrays_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post.py index a95f03b4e47..d9005849ece 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post.py @@ -56,6 +56,41 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_boolean_type_matches_booleans_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_boolean_type_matches_booleans_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_boolean_type_matches_booleans_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_boolean_type_matches_booleans_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -63,7 +98,7 @@ def _post_boolean_type_matches_booleans_response_body_for_content_types_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -105,6 +140,41 @@ class instances class PostBooleanTypeMatchesBooleansResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_boolean_type_matches_booleans_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_boolean_type_matches_booleans_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_boolean_type_matches_booleans_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_boolean_type_matches_booleans_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -112,7 +182,7 @@ def post_boolean_type_matches_booleans_response_body_for_content_types( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_boolean_type_matches_booleans_response_body_for_content_types_oapg( @@ -126,6 +196,41 @@ def post_boolean_type_matches_booleans_response_body_for_content_types( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -133,7 +238,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_boolean_type_matches_booleans_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post.pyi index 8b5b589c464..24dc196213a 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post.pyi @@ -33,6 +33,41 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _post_boolean_type_matches_booleans_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_boolean_type_matches_booleans_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_boolean_type_matches_booleans_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_boolean_type_matches_booleans_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -40,7 +75,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -82,6 +117,41 @@ class BaseApi(api_client.Api): class PostBooleanTypeMatchesBooleansResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_boolean_type_matches_booleans_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_boolean_type_matches_booleans_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_boolean_type_matches_booleans_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_boolean_type_matches_booleans_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -89,7 +159,7 @@ class PostBooleanTypeMatchesBooleansResponseBodyForContentTypes(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_boolean_type_matches_booleans_response_body_for_content_types_oapg( @@ -103,6 +173,41 @@ class PostBooleanTypeMatchesBooleansResponseBodyForContentTypes(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -110,7 +215,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_boolean_type_matches_booleans_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_by_int_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_by_int_response_body_for_content_types/post.py index 41034fa697c..c893d4bcc1a 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_by_int_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_by_int_response_body_for_content_types/post.py @@ -58,6 +58,41 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_by_int_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_by_int_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_by_int_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_by_int_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -65,7 +100,7 @@ def _post_by_int_response_body_for_content_types_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -107,6 +142,41 @@ class instances class PostByIntResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_by_int_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_by_int_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_by_int_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_by_int_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -114,7 +184,7 @@ def post_by_int_response_body_for_content_types( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_by_int_response_body_for_content_types_oapg( @@ -128,6 +198,41 @@ def post_by_int_response_body_for_content_types( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -135,7 +240,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_by_int_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_by_int_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_by_int_response_body_for_content_types/post.pyi index 61b3d81b320..534eb05e8d7 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_by_int_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_by_int_response_body_for_content_types/post.pyi @@ -35,6 +35,41 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _post_by_int_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_by_int_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_by_int_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_by_int_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -42,7 +77,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -84,6 +119,41 @@ class BaseApi(api_client.Api): class PostByIntResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_by_int_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_by_int_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_by_int_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_by_int_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -91,7 +161,7 @@ class PostByIntResponseBodyForContentTypes(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_by_int_response_body_for_content_types_oapg( @@ -105,6 +175,41 @@ class PostByIntResponseBodyForContentTypes(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -112,7 +217,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_by_int_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_by_number_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_by_number_response_body_for_content_types/post.py index e904ed1a382..0c21b0b402f 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_by_number_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_by_number_response_body_for_content_types/post.py @@ -58,6 +58,41 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_by_number_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_by_number_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_by_number_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_by_number_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -65,7 +100,7 @@ def _post_by_number_response_body_for_content_types_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -107,6 +142,41 @@ class instances class PostByNumberResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_by_number_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_by_number_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_by_number_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_by_number_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -114,7 +184,7 @@ def post_by_number_response_body_for_content_types( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_by_number_response_body_for_content_types_oapg( @@ -128,6 +198,41 @@ def post_by_number_response_body_for_content_types( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -135,7 +240,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_by_number_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_by_number_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_by_number_response_body_for_content_types/post.pyi index 3d9ebcd6a05..1be84be2c3a 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_by_number_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_by_number_response_body_for_content_types/post.pyi @@ -35,6 +35,41 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _post_by_number_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_by_number_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_by_number_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_by_number_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -42,7 +77,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -84,6 +119,41 @@ class BaseApi(api_client.Api): class PostByNumberResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_by_number_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_by_number_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_by_number_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_by_number_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -91,7 +161,7 @@ class PostByNumberResponseBodyForContentTypes(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_by_number_response_body_for_content_types_oapg( @@ -105,6 +175,41 @@ class PostByNumberResponseBodyForContentTypes(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -112,7 +217,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_by_number_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_by_small_number_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_by_small_number_response_body_for_content_types/post.py index 2c4392f1e14..cf160a39a7f 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_by_small_number_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_by_small_number_response_body_for_content_types/post.py @@ -58,6 +58,41 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_by_small_number_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_by_small_number_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_by_small_number_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_by_small_number_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -65,7 +100,7 @@ def _post_by_small_number_response_body_for_content_types_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -107,6 +142,41 @@ class instances class PostBySmallNumberResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_by_small_number_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_by_small_number_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_by_small_number_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_by_small_number_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -114,7 +184,7 @@ def post_by_small_number_response_body_for_content_types( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_by_small_number_response_body_for_content_types_oapg( @@ -128,6 +198,41 @@ def post_by_small_number_response_body_for_content_types( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -135,7 +240,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_by_small_number_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_by_small_number_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_by_small_number_response_body_for_content_types/post.pyi index 62adbca6a88..c258ccb5848 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_by_small_number_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_by_small_number_response_body_for_content_types/post.pyi @@ -35,6 +35,41 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _post_by_small_number_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_by_small_number_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_by_small_number_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_by_small_number_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -42,7 +77,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -84,6 +119,41 @@ class BaseApi(api_client.Api): class PostBySmallNumberResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_by_small_number_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_by_small_number_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_by_small_number_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_by_small_number_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -91,7 +161,7 @@ class PostBySmallNumberResponseBodyForContentTypes(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_by_small_number_response_body_for_content_types_oapg( @@ -105,6 +175,41 @@ class PostBySmallNumberResponseBodyForContentTypes(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -112,7 +217,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_by_small_number_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_date_time_format_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_date_time_format_response_body_for_content_types/post.py index f2376a2df1a..595e92e8ef8 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_date_time_format_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_date_time_format_response_body_for_content_types/post.py @@ -79,6 +79,41 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_date_time_format_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_date_time_format_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_date_time_format_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_date_time_format_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -86,7 +121,7 @@ def _post_date_time_format_response_body_for_content_types_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -128,6 +163,41 @@ class instances class PostDateTimeFormatResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_date_time_format_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_date_time_format_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_date_time_format_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_date_time_format_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -135,7 +205,7 @@ def post_date_time_format_response_body_for_content_types( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_date_time_format_response_body_for_content_types_oapg( @@ -149,6 +219,41 @@ def post_date_time_format_response_body_for_content_types( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -156,7 +261,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_date_time_format_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_date_time_format_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_date_time_format_response_body_for_content_types/post.pyi index 18588164a4e..85a4dcf2bd8 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_date_time_format_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_date_time_format_response_body_for_content_types/post.pyi @@ -56,6 +56,41 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _post_date_time_format_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_date_time_format_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_date_time_format_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_date_time_format_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -63,7 +98,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -105,6 +140,41 @@ class BaseApi(api_client.Api): class PostDateTimeFormatResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_date_time_format_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_date_time_format_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_date_time_format_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_date_time_format_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -112,7 +182,7 @@ class PostDateTimeFormatResponseBodyForContentTypes(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_date_time_format_response_body_for_content_types_oapg( @@ -126,6 +196,41 @@ class PostDateTimeFormatResponseBodyForContentTypes(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -133,7 +238,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_date_time_format_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_email_format_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_email_format_response_body_for_content_types/post.py index a87120ac476..162877b382b 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_email_format_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_email_format_response_body_for_content_types/post.py @@ -78,6 +78,41 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_email_format_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_email_format_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_email_format_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_email_format_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -85,7 +120,7 @@ def _post_email_format_response_body_for_content_types_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -127,6 +162,41 @@ class instances class PostEmailFormatResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_email_format_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_email_format_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_email_format_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_email_format_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -134,7 +204,7 @@ def post_email_format_response_body_for_content_types( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_email_format_response_body_for_content_types_oapg( @@ -148,6 +218,41 @@ def post_email_format_response_body_for_content_types( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -155,7 +260,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_email_format_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_email_format_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_email_format_response_body_for_content_types/post.pyi index 4429c79bc49..0c88e92d1af 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_email_format_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_email_format_response_body_for_content_types/post.pyi @@ -55,6 +55,41 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _post_email_format_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_email_format_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_email_format_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_email_format_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -62,7 +97,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -104,6 +139,41 @@ class BaseApi(api_client.Api): class PostEmailFormatResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_email_format_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_email_format_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_email_format_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_email_format_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -111,7 +181,7 @@ class PostEmailFormatResponseBodyForContentTypes(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_email_format_response_body_for_content_types_oapg( @@ -125,6 +195,41 @@ class PostEmailFormatResponseBodyForContentTypes(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -132,7 +237,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_email_format_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post.py index a87fc39eb2c..34751f17fed 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post.py @@ -58,6 +58,41 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_enum_with0_does_not_match_false_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_enum_with0_does_not_match_false_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_enum_with0_does_not_match_false_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_enum_with0_does_not_match_false_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -65,7 +100,7 @@ def _post_enum_with0_does_not_match_false_response_body_for_content_types_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -107,6 +142,41 @@ class instances class PostEnumWith0DoesNotMatchFalseResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_enum_with0_does_not_match_false_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_enum_with0_does_not_match_false_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_enum_with0_does_not_match_false_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_enum_with0_does_not_match_false_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -114,7 +184,7 @@ def post_enum_with0_does_not_match_false_response_body_for_content_types( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_enum_with0_does_not_match_false_response_body_for_content_types_oapg( @@ -128,6 +198,41 @@ def post_enum_with0_does_not_match_false_response_body_for_content_types( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -135,7 +240,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_enum_with0_does_not_match_false_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post.pyi index 4fb57b1ddef..704242251b5 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post.pyi @@ -35,6 +35,41 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _post_enum_with0_does_not_match_false_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_enum_with0_does_not_match_false_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_enum_with0_does_not_match_false_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_enum_with0_does_not_match_false_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -42,7 +77,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -84,6 +119,41 @@ class BaseApi(api_client.Api): class PostEnumWith0DoesNotMatchFalseResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_enum_with0_does_not_match_false_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_enum_with0_does_not_match_false_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_enum_with0_does_not_match_false_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_enum_with0_does_not_match_false_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -91,7 +161,7 @@ class PostEnumWith0DoesNotMatchFalseResponseBodyForContentTypes(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_enum_with0_does_not_match_false_response_body_for_content_types_oapg( @@ -105,6 +175,41 @@ class PostEnumWith0DoesNotMatchFalseResponseBodyForContentTypes(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -112,7 +217,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_enum_with0_does_not_match_false_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post.py index d5b4bde7a65..e2e8f7509c5 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post.py @@ -58,6 +58,41 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_enum_with1_does_not_match_true_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_enum_with1_does_not_match_true_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_enum_with1_does_not_match_true_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_enum_with1_does_not_match_true_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -65,7 +100,7 @@ def _post_enum_with1_does_not_match_true_response_body_for_content_types_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -107,6 +142,41 @@ class instances class PostEnumWith1DoesNotMatchTrueResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_enum_with1_does_not_match_true_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_enum_with1_does_not_match_true_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_enum_with1_does_not_match_true_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_enum_with1_does_not_match_true_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -114,7 +184,7 @@ def post_enum_with1_does_not_match_true_response_body_for_content_types( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_enum_with1_does_not_match_true_response_body_for_content_types_oapg( @@ -128,6 +198,41 @@ def post_enum_with1_does_not_match_true_response_body_for_content_types( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -135,7 +240,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_enum_with1_does_not_match_true_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post.pyi index 9f60984e680..4696d607059 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post.pyi @@ -35,6 +35,41 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _post_enum_with1_does_not_match_true_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_enum_with1_does_not_match_true_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_enum_with1_does_not_match_true_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_enum_with1_does_not_match_true_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -42,7 +77,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -84,6 +119,41 @@ class BaseApi(api_client.Api): class PostEnumWith1DoesNotMatchTrueResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_enum_with1_does_not_match_true_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_enum_with1_does_not_match_true_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_enum_with1_does_not_match_true_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_enum_with1_does_not_match_true_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -91,7 +161,7 @@ class PostEnumWith1DoesNotMatchTrueResponseBodyForContentTypes(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_enum_with1_does_not_match_true_response_body_for_content_types_oapg( @@ -105,6 +175,41 @@ class PostEnumWith1DoesNotMatchTrueResponseBodyForContentTypes(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -112,7 +217,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_enum_with1_does_not_match_true_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post.py index b37e49aabcd..10ba55d310a 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post.py @@ -58,6 +58,41 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_enum_with_escaped_characters_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_enum_with_escaped_characters_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_enum_with_escaped_characters_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_enum_with_escaped_characters_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -65,7 +100,7 @@ def _post_enum_with_escaped_characters_response_body_for_content_types_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -107,6 +142,41 @@ class instances class PostEnumWithEscapedCharactersResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_enum_with_escaped_characters_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_enum_with_escaped_characters_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_enum_with_escaped_characters_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_enum_with_escaped_characters_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -114,7 +184,7 @@ def post_enum_with_escaped_characters_response_body_for_content_types( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_enum_with_escaped_characters_response_body_for_content_types_oapg( @@ -128,6 +198,41 @@ def post_enum_with_escaped_characters_response_body_for_content_types( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -135,7 +240,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_enum_with_escaped_characters_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post.pyi index cdc047c43ee..b5719ab9f41 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post.pyi @@ -35,6 +35,41 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _post_enum_with_escaped_characters_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_enum_with_escaped_characters_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_enum_with_escaped_characters_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_enum_with_escaped_characters_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -42,7 +77,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -84,6 +119,41 @@ class BaseApi(api_client.Api): class PostEnumWithEscapedCharactersResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_enum_with_escaped_characters_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_enum_with_escaped_characters_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_enum_with_escaped_characters_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_enum_with_escaped_characters_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -91,7 +161,7 @@ class PostEnumWithEscapedCharactersResponseBodyForContentTypes(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_enum_with_escaped_characters_response_body_for_content_types_oapg( @@ -105,6 +175,41 @@ class PostEnumWithEscapedCharactersResponseBodyForContentTypes(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -112,7 +217,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_enum_with_escaped_characters_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post.py index 98ebe09f381..a6c286da257 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post.py @@ -58,6 +58,41 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_enum_with_false_does_not_match0_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_enum_with_false_does_not_match0_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_enum_with_false_does_not_match0_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_enum_with_false_does_not_match0_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -65,7 +100,7 @@ def _post_enum_with_false_does_not_match0_response_body_for_content_types_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -107,6 +142,41 @@ class instances class PostEnumWithFalseDoesNotMatch0ResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_enum_with_false_does_not_match0_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_enum_with_false_does_not_match0_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_enum_with_false_does_not_match0_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_enum_with_false_does_not_match0_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -114,7 +184,7 @@ def post_enum_with_false_does_not_match0_response_body_for_content_types( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_enum_with_false_does_not_match0_response_body_for_content_types_oapg( @@ -128,6 +198,41 @@ def post_enum_with_false_does_not_match0_response_body_for_content_types( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -135,7 +240,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_enum_with_false_does_not_match0_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post.pyi index ce05cb3a3bf..a49351043ed 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post.pyi @@ -35,6 +35,41 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _post_enum_with_false_does_not_match0_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_enum_with_false_does_not_match0_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_enum_with_false_does_not_match0_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_enum_with_false_does_not_match0_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -42,7 +77,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -84,6 +119,41 @@ class BaseApi(api_client.Api): class PostEnumWithFalseDoesNotMatch0ResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_enum_with_false_does_not_match0_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_enum_with_false_does_not_match0_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_enum_with_false_does_not_match0_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_enum_with_false_does_not_match0_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -91,7 +161,7 @@ class PostEnumWithFalseDoesNotMatch0ResponseBodyForContentTypes(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_enum_with_false_does_not_match0_response_body_for_content_types_oapg( @@ -105,6 +175,41 @@ class PostEnumWithFalseDoesNotMatch0ResponseBodyForContentTypes(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -112,7 +217,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_enum_with_false_does_not_match0_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post.py index 159ce75a12f..4c5f407b397 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post.py @@ -58,6 +58,41 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_enum_with_true_does_not_match1_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_enum_with_true_does_not_match1_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_enum_with_true_does_not_match1_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_enum_with_true_does_not_match1_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -65,7 +100,7 @@ def _post_enum_with_true_does_not_match1_response_body_for_content_types_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -107,6 +142,41 @@ class instances class PostEnumWithTrueDoesNotMatch1ResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_enum_with_true_does_not_match1_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_enum_with_true_does_not_match1_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_enum_with_true_does_not_match1_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_enum_with_true_does_not_match1_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -114,7 +184,7 @@ def post_enum_with_true_does_not_match1_response_body_for_content_types( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_enum_with_true_does_not_match1_response_body_for_content_types_oapg( @@ -128,6 +198,41 @@ def post_enum_with_true_does_not_match1_response_body_for_content_types( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -135,7 +240,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_enum_with_true_does_not_match1_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post.pyi index 83e53e24ef9..18a54ca1635 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post.pyi @@ -35,6 +35,41 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _post_enum_with_true_does_not_match1_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_enum_with_true_does_not_match1_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_enum_with_true_does_not_match1_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_enum_with_true_does_not_match1_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -42,7 +77,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -84,6 +119,41 @@ class BaseApi(api_client.Api): class PostEnumWithTrueDoesNotMatch1ResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_enum_with_true_does_not_match1_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_enum_with_true_does_not_match1_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_enum_with_true_does_not_match1_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_enum_with_true_does_not_match1_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -91,7 +161,7 @@ class PostEnumWithTrueDoesNotMatch1ResponseBodyForContentTypes(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_enum_with_true_does_not_match1_response_body_for_content_types_oapg( @@ -105,6 +175,41 @@ class PostEnumWithTrueDoesNotMatch1ResponseBodyForContentTypes(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -112,7 +217,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_enum_with_true_does_not_match1_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enums_in_properties_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enums_in_properties_response_body_for_content_types/post.py index bc9fca72096..174a76accb5 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enums_in_properties_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enums_in_properties_response_body_for_content_types/post.py @@ -58,6 +58,41 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_enums_in_properties_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_enums_in_properties_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_enums_in_properties_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_enums_in_properties_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -65,7 +100,7 @@ def _post_enums_in_properties_response_body_for_content_types_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -107,6 +142,41 @@ class instances class PostEnumsInPropertiesResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_enums_in_properties_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_enums_in_properties_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_enums_in_properties_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_enums_in_properties_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -114,7 +184,7 @@ def post_enums_in_properties_response_body_for_content_types( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_enums_in_properties_response_body_for_content_types_oapg( @@ -128,6 +198,41 @@ def post_enums_in_properties_response_body_for_content_types( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -135,7 +240,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_enums_in_properties_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enums_in_properties_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enums_in_properties_response_body_for_content_types/post.pyi index 3e30e6e6038..d3690d188ee 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enums_in_properties_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enums_in_properties_response_body_for_content_types/post.pyi @@ -35,6 +35,41 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _post_enums_in_properties_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_enums_in_properties_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_enums_in_properties_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_enums_in_properties_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -42,7 +77,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -84,6 +119,41 @@ class BaseApi(api_client.Api): class PostEnumsInPropertiesResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_enums_in_properties_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_enums_in_properties_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_enums_in_properties_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_enums_in_properties_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -91,7 +161,7 @@ class PostEnumsInPropertiesResponseBodyForContentTypes(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_enums_in_properties_response_body_for_content_types_oapg( @@ -105,6 +175,41 @@ class PostEnumsInPropertiesResponseBodyForContentTypes(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -112,7 +217,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_enums_in_properties_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_forbidden_property_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_forbidden_property_response_body_for_content_types/post.py index fad8e99f1ca..558c99456d9 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_forbidden_property_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_forbidden_property_response_body_for_content_types/post.py @@ -58,6 +58,41 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_forbidden_property_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_forbidden_property_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_forbidden_property_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_forbidden_property_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -65,7 +100,7 @@ def _post_forbidden_property_response_body_for_content_types_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -107,6 +142,41 @@ class instances class PostForbiddenPropertyResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_forbidden_property_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_forbidden_property_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_forbidden_property_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_forbidden_property_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -114,7 +184,7 @@ def post_forbidden_property_response_body_for_content_types( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_forbidden_property_response_body_for_content_types_oapg( @@ -128,6 +198,41 @@ def post_forbidden_property_response_body_for_content_types( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -135,7 +240,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_forbidden_property_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_forbidden_property_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_forbidden_property_response_body_for_content_types/post.pyi index 7d3e8754558..c60a75ca113 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_forbidden_property_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_forbidden_property_response_body_for_content_types/post.pyi @@ -35,6 +35,41 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _post_forbidden_property_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_forbidden_property_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_forbidden_property_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_forbidden_property_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -42,7 +77,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -84,6 +119,41 @@ class BaseApi(api_client.Api): class PostForbiddenPropertyResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_forbidden_property_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_forbidden_property_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_forbidden_property_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_forbidden_property_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -91,7 +161,7 @@ class PostForbiddenPropertyResponseBodyForContentTypes(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_forbidden_property_response_body_for_content_types_oapg( @@ -105,6 +175,41 @@ class PostForbiddenPropertyResponseBodyForContentTypes(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -112,7 +217,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_forbidden_property_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_hostname_format_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_hostname_format_response_body_for_content_types/post.py index 188dcc891db..68f81be691f 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_hostname_format_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_hostname_format_response_body_for_content_types/post.py @@ -78,6 +78,41 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_hostname_format_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_hostname_format_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_hostname_format_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_hostname_format_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -85,7 +120,7 @@ def _post_hostname_format_response_body_for_content_types_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -127,6 +162,41 @@ class instances class PostHostnameFormatResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_hostname_format_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_hostname_format_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_hostname_format_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_hostname_format_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -134,7 +204,7 @@ def post_hostname_format_response_body_for_content_types( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_hostname_format_response_body_for_content_types_oapg( @@ -148,6 +218,41 @@ def post_hostname_format_response_body_for_content_types( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -155,7 +260,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_hostname_format_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_hostname_format_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_hostname_format_response_body_for_content_types/post.pyi index d1d8399b74a..8a25ec07c7a 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_hostname_format_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_hostname_format_response_body_for_content_types/post.pyi @@ -55,6 +55,41 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _post_hostname_format_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_hostname_format_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_hostname_format_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_hostname_format_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -62,7 +97,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -104,6 +139,41 @@ class BaseApi(api_client.Api): class PostHostnameFormatResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_hostname_format_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_hostname_format_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_hostname_format_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_hostname_format_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -111,7 +181,7 @@ class PostHostnameFormatResponseBodyForContentTypes(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_hostname_format_response_body_for_content_types_oapg( @@ -125,6 +195,41 @@ class PostHostnameFormatResponseBodyForContentTypes(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -132,7 +237,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_hostname_format_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post.py index 70954d90690..132d50c23f2 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post.py @@ -56,6 +56,41 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_integer_type_matches_integers_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_integer_type_matches_integers_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_integer_type_matches_integers_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_integer_type_matches_integers_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -63,7 +98,7 @@ def _post_integer_type_matches_integers_response_body_for_content_types_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -105,6 +140,41 @@ class instances class PostIntegerTypeMatchesIntegersResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_integer_type_matches_integers_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_integer_type_matches_integers_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_integer_type_matches_integers_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_integer_type_matches_integers_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -112,7 +182,7 @@ def post_integer_type_matches_integers_response_body_for_content_types( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_integer_type_matches_integers_response_body_for_content_types_oapg( @@ -126,6 +196,41 @@ def post_integer_type_matches_integers_response_body_for_content_types( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -133,7 +238,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_integer_type_matches_integers_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post.pyi index de78604fa03..d3aa984eccd 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post.pyi @@ -33,6 +33,41 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _post_integer_type_matches_integers_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_integer_type_matches_integers_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_integer_type_matches_integers_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_integer_type_matches_integers_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -40,7 +75,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -82,6 +117,41 @@ class BaseApi(api_client.Api): class PostIntegerTypeMatchesIntegersResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_integer_type_matches_integers_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_integer_type_matches_integers_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_integer_type_matches_integers_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_integer_type_matches_integers_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -89,7 +159,7 @@ class PostIntegerTypeMatchesIntegersResponseBodyForContentTypes(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_integer_type_matches_integers_response_body_for_content_types_oapg( @@ -103,6 +173,41 @@ class PostIntegerTypeMatchesIntegersResponseBodyForContentTypes(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -110,7 +215,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_integer_type_matches_integers_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types/post.py index 02dc4227f64..d679567ff5e 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types/post.py @@ -58,6 +58,41 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -65,7 +100,7 @@ def _post_invalid_instance_should_not_raise_error_when_float_division_inf_respon timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -107,6 +142,41 @@ class instances class PostInvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInfResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -114,7 +184,7 @@ def post_invalid_instance_should_not_raise_error_when_float_division_inf_respons timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types_oapg( @@ -128,6 +198,41 @@ def post_invalid_instance_should_not_raise_error_when_float_division_inf_respons class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -135,7 +240,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types/post.pyi index 28222ab8884..14830816344 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types/post.pyi @@ -35,6 +35,41 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -42,7 +77,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -84,6 +119,41 @@ class BaseApi(api_client.Api): class PostInvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInfResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -91,7 +161,7 @@ class PostInvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInfResponseBodyForC timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types_oapg( @@ -105,6 +175,41 @@ class PostInvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInfResponseBodyForC class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -112,7 +217,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_invalid_string_value_for_default_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_invalid_string_value_for_default_response_body_for_content_types/post.py index 35d6dd815ff..9adb714628c 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_invalid_string_value_for_default_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_invalid_string_value_for_default_response_body_for_content_types/post.py @@ -58,6 +58,41 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_invalid_string_value_for_default_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_invalid_string_value_for_default_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_invalid_string_value_for_default_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_invalid_string_value_for_default_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -65,7 +100,7 @@ def _post_invalid_string_value_for_default_response_body_for_content_types_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -107,6 +142,41 @@ class instances class PostInvalidStringValueForDefaultResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_invalid_string_value_for_default_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_invalid_string_value_for_default_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_invalid_string_value_for_default_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_invalid_string_value_for_default_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -114,7 +184,7 @@ def post_invalid_string_value_for_default_response_body_for_content_types( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_invalid_string_value_for_default_response_body_for_content_types_oapg( @@ -128,6 +198,41 @@ def post_invalid_string_value_for_default_response_body_for_content_types( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -135,7 +240,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_invalid_string_value_for_default_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_invalid_string_value_for_default_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_invalid_string_value_for_default_response_body_for_content_types/post.pyi index 98e0646ddd1..383a8e79306 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_invalid_string_value_for_default_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_invalid_string_value_for_default_response_body_for_content_types/post.pyi @@ -35,6 +35,41 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _post_invalid_string_value_for_default_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_invalid_string_value_for_default_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_invalid_string_value_for_default_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_invalid_string_value_for_default_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -42,7 +77,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -84,6 +119,41 @@ class BaseApi(api_client.Api): class PostInvalidStringValueForDefaultResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_invalid_string_value_for_default_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_invalid_string_value_for_default_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_invalid_string_value_for_default_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_invalid_string_value_for_default_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -91,7 +161,7 @@ class PostInvalidStringValueForDefaultResponseBodyForContentTypes(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_invalid_string_value_for_default_response_body_for_content_types_oapg( @@ -105,6 +175,41 @@ class PostInvalidStringValueForDefaultResponseBodyForContentTypes(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -112,7 +217,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_invalid_string_value_for_default_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ipv4_format_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ipv4_format_response_body_for_content_types/post.py index dacd310a9dc..d0d00d3b670 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ipv4_format_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ipv4_format_response_body_for_content_types/post.py @@ -78,6 +78,41 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_ipv4_format_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_ipv4_format_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_ipv4_format_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_ipv4_format_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -85,7 +120,7 @@ def _post_ipv4_format_response_body_for_content_types_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -127,6 +162,41 @@ class instances class PostIpv4FormatResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_ipv4_format_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_ipv4_format_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_ipv4_format_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_ipv4_format_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -134,7 +204,7 @@ def post_ipv4_format_response_body_for_content_types( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_ipv4_format_response_body_for_content_types_oapg( @@ -148,6 +218,41 @@ def post_ipv4_format_response_body_for_content_types( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -155,7 +260,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_ipv4_format_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ipv4_format_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ipv4_format_response_body_for_content_types/post.pyi index 25cfffb07b7..d5b76f199fd 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ipv4_format_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ipv4_format_response_body_for_content_types/post.pyi @@ -55,6 +55,41 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _post_ipv4_format_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_ipv4_format_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_ipv4_format_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_ipv4_format_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -62,7 +97,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -104,6 +139,41 @@ class BaseApi(api_client.Api): class PostIpv4FormatResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_ipv4_format_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_ipv4_format_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_ipv4_format_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_ipv4_format_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -111,7 +181,7 @@ class PostIpv4FormatResponseBodyForContentTypes(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_ipv4_format_response_body_for_content_types_oapg( @@ -125,6 +195,41 @@ class PostIpv4FormatResponseBodyForContentTypes(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -132,7 +237,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_ipv4_format_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ipv6_format_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ipv6_format_response_body_for_content_types/post.py index 435bb55a508..5bad7395e5b 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ipv6_format_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ipv6_format_response_body_for_content_types/post.py @@ -78,6 +78,41 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_ipv6_format_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_ipv6_format_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_ipv6_format_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_ipv6_format_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -85,7 +120,7 @@ def _post_ipv6_format_response_body_for_content_types_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -127,6 +162,41 @@ class instances class PostIpv6FormatResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_ipv6_format_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_ipv6_format_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_ipv6_format_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_ipv6_format_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -134,7 +204,7 @@ def post_ipv6_format_response_body_for_content_types( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_ipv6_format_response_body_for_content_types_oapg( @@ -148,6 +218,41 @@ def post_ipv6_format_response_body_for_content_types( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -155,7 +260,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_ipv6_format_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ipv6_format_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ipv6_format_response_body_for_content_types/post.pyi index 5d0ca450c00..4c6f8116784 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ipv6_format_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ipv6_format_response_body_for_content_types/post.pyi @@ -55,6 +55,41 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _post_ipv6_format_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_ipv6_format_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_ipv6_format_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_ipv6_format_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -62,7 +97,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -104,6 +139,41 @@ class BaseApi(api_client.Api): class PostIpv6FormatResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_ipv6_format_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_ipv6_format_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_ipv6_format_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_ipv6_format_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -111,7 +181,7 @@ class PostIpv6FormatResponseBodyForContentTypes(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_ipv6_format_response_body_for_content_types_oapg( @@ -125,6 +195,41 @@ class PostIpv6FormatResponseBodyForContentTypes(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -132,7 +237,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_ipv6_format_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_json_pointer_format_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_json_pointer_format_response_body_for_content_types/post.py index 4bca2876953..882298f8a4f 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_json_pointer_format_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_json_pointer_format_response_body_for_content_types/post.py @@ -78,6 +78,41 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_json_pointer_format_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_json_pointer_format_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_json_pointer_format_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_json_pointer_format_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -85,7 +120,7 @@ def _post_json_pointer_format_response_body_for_content_types_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -127,6 +162,41 @@ class instances class PostJsonPointerFormatResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_json_pointer_format_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_json_pointer_format_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_json_pointer_format_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_json_pointer_format_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -134,7 +204,7 @@ def post_json_pointer_format_response_body_for_content_types( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_json_pointer_format_response_body_for_content_types_oapg( @@ -148,6 +218,41 @@ def post_json_pointer_format_response_body_for_content_types( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -155,7 +260,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_json_pointer_format_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_json_pointer_format_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_json_pointer_format_response_body_for_content_types/post.pyi index ee0046c4b61..6b70bb40eb8 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_json_pointer_format_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_json_pointer_format_response_body_for_content_types/post.pyi @@ -55,6 +55,41 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _post_json_pointer_format_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_json_pointer_format_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_json_pointer_format_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_json_pointer_format_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -62,7 +97,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -104,6 +139,41 @@ class BaseApi(api_client.Api): class PostJsonPointerFormatResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_json_pointer_format_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_json_pointer_format_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_json_pointer_format_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_json_pointer_format_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -111,7 +181,7 @@ class PostJsonPointerFormatResponseBodyForContentTypes(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_json_pointer_format_response_body_for_content_types_oapg( @@ -125,6 +195,41 @@ class PostJsonPointerFormatResponseBodyForContentTypes(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -132,7 +237,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_json_pointer_format_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maximum_validation_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maximum_validation_response_body_for_content_types/post.py index b9415262a1b..c17572787b2 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maximum_validation_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maximum_validation_response_body_for_content_types/post.py @@ -58,6 +58,41 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_maximum_validation_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_maximum_validation_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_maximum_validation_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_maximum_validation_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -65,7 +100,7 @@ def _post_maximum_validation_response_body_for_content_types_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -107,6 +142,41 @@ class instances class PostMaximumValidationResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_maximum_validation_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_maximum_validation_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_maximum_validation_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_maximum_validation_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -114,7 +184,7 @@ def post_maximum_validation_response_body_for_content_types( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_maximum_validation_response_body_for_content_types_oapg( @@ -128,6 +198,41 @@ def post_maximum_validation_response_body_for_content_types( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -135,7 +240,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_maximum_validation_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maximum_validation_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maximum_validation_response_body_for_content_types/post.pyi index af9bf3e4498..f3f757b6335 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maximum_validation_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maximum_validation_response_body_for_content_types/post.pyi @@ -35,6 +35,41 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _post_maximum_validation_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_maximum_validation_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_maximum_validation_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_maximum_validation_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -42,7 +77,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -84,6 +119,41 @@ class BaseApi(api_client.Api): class PostMaximumValidationResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_maximum_validation_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_maximum_validation_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_maximum_validation_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_maximum_validation_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -91,7 +161,7 @@ class PostMaximumValidationResponseBodyForContentTypes(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_maximum_validation_response_body_for_content_types_oapg( @@ -105,6 +175,41 @@ class PostMaximumValidationResponseBodyForContentTypes(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -112,7 +217,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_maximum_validation_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post.py index 7ae8eea54d1..2300319da4a 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post.py @@ -58,6 +58,41 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_maximum_validation_with_unsigned_integer_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_maximum_validation_with_unsigned_integer_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_maximum_validation_with_unsigned_integer_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_maximum_validation_with_unsigned_integer_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -65,7 +100,7 @@ def _post_maximum_validation_with_unsigned_integer_response_body_for_content_typ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -107,6 +142,41 @@ class instances class PostMaximumValidationWithUnsignedIntegerResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_maximum_validation_with_unsigned_integer_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_maximum_validation_with_unsigned_integer_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_maximum_validation_with_unsigned_integer_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_maximum_validation_with_unsigned_integer_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -114,7 +184,7 @@ def post_maximum_validation_with_unsigned_integer_response_body_for_content_type timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_maximum_validation_with_unsigned_integer_response_body_for_content_types_oapg( @@ -128,6 +198,41 @@ def post_maximum_validation_with_unsigned_integer_response_body_for_content_type class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -135,7 +240,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_maximum_validation_with_unsigned_integer_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post.pyi index f9b7b2d422c..f9a5241fd9f 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post.pyi @@ -35,6 +35,41 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _post_maximum_validation_with_unsigned_integer_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_maximum_validation_with_unsigned_integer_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_maximum_validation_with_unsigned_integer_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_maximum_validation_with_unsigned_integer_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -42,7 +77,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -84,6 +119,41 @@ class BaseApi(api_client.Api): class PostMaximumValidationWithUnsignedIntegerResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_maximum_validation_with_unsigned_integer_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_maximum_validation_with_unsigned_integer_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_maximum_validation_with_unsigned_integer_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_maximum_validation_with_unsigned_integer_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -91,7 +161,7 @@ class PostMaximumValidationWithUnsignedIntegerResponseBodyForContentTypes(BaseAp timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_maximum_validation_with_unsigned_integer_response_body_for_content_types_oapg( @@ -105,6 +175,41 @@ class PostMaximumValidationWithUnsignedIntegerResponseBodyForContentTypes(BaseAp class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -112,7 +217,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_maximum_validation_with_unsigned_integer_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxitems_validation_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxitems_validation_response_body_for_content_types/post.py index 5a63caab151..3b53fb0c847 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxitems_validation_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxitems_validation_response_body_for_content_types/post.py @@ -58,6 +58,41 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_maxitems_validation_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_maxitems_validation_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_maxitems_validation_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_maxitems_validation_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -65,7 +100,7 @@ def _post_maxitems_validation_response_body_for_content_types_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -107,6 +142,41 @@ class instances class PostMaxitemsValidationResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_maxitems_validation_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_maxitems_validation_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_maxitems_validation_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_maxitems_validation_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -114,7 +184,7 @@ def post_maxitems_validation_response_body_for_content_types( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_maxitems_validation_response_body_for_content_types_oapg( @@ -128,6 +198,41 @@ def post_maxitems_validation_response_body_for_content_types( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -135,7 +240,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_maxitems_validation_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxitems_validation_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxitems_validation_response_body_for_content_types/post.pyi index 8a6f7dd62a4..63d1d131929 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxitems_validation_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxitems_validation_response_body_for_content_types/post.pyi @@ -35,6 +35,41 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _post_maxitems_validation_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_maxitems_validation_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_maxitems_validation_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_maxitems_validation_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -42,7 +77,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -84,6 +119,41 @@ class BaseApi(api_client.Api): class PostMaxitemsValidationResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_maxitems_validation_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_maxitems_validation_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_maxitems_validation_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_maxitems_validation_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -91,7 +161,7 @@ class PostMaxitemsValidationResponseBodyForContentTypes(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_maxitems_validation_response_body_for_content_types_oapg( @@ -105,6 +175,41 @@ class PostMaxitemsValidationResponseBodyForContentTypes(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -112,7 +217,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_maxitems_validation_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxlength_validation_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxlength_validation_response_body_for_content_types/post.py index b6728ece2dc..cfc56aee7e0 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxlength_validation_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxlength_validation_response_body_for_content_types/post.py @@ -58,6 +58,41 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_maxlength_validation_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_maxlength_validation_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_maxlength_validation_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_maxlength_validation_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -65,7 +100,7 @@ def _post_maxlength_validation_response_body_for_content_types_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -107,6 +142,41 @@ class instances class PostMaxlengthValidationResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_maxlength_validation_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_maxlength_validation_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_maxlength_validation_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_maxlength_validation_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -114,7 +184,7 @@ def post_maxlength_validation_response_body_for_content_types( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_maxlength_validation_response_body_for_content_types_oapg( @@ -128,6 +198,41 @@ def post_maxlength_validation_response_body_for_content_types( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -135,7 +240,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_maxlength_validation_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxlength_validation_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxlength_validation_response_body_for_content_types/post.pyi index 012642e4f12..388ba5b52c1 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxlength_validation_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxlength_validation_response_body_for_content_types/post.pyi @@ -35,6 +35,41 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _post_maxlength_validation_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_maxlength_validation_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_maxlength_validation_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_maxlength_validation_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -42,7 +77,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -84,6 +119,41 @@ class BaseApi(api_client.Api): class PostMaxlengthValidationResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_maxlength_validation_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_maxlength_validation_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_maxlength_validation_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_maxlength_validation_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -91,7 +161,7 @@ class PostMaxlengthValidationResponseBodyForContentTypes(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_maxlength_validation_response_body_for_content_types_oapg( @@ -105,6 +175,41 @@ class PostMaxlengthValidationResponseBodyForContentTypes(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -112,7 +217,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_maxlength_validation_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post.py index 9cd2ab6c996..bb39876c4d5 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post.py @@ -58,6 +58,41 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_maxproperties0_means_the_object_is_empty_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_maxproperties0_means_the_object_is_empty_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_maxproperties0_means_the_object_is_empty_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_maxproperties0_means_the_object_is_empty_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -65,7 +100,7 @@ def _post_maxproperties0_means_the_object_is_empty_response_body_for_content_typ timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -107,6 +142,41 @@ class instances class PostMaxproperties0MeansTheObjectIsEmptyResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_maxproperties0_means_the_object_is_empty_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_maxproperties0_means_the_object_is_empty_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_maxproperties0_means_the_object_is_empty_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_maxproperties0_means_the_object_is_empty_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -114,7 +184,7 @@ def post_maxproperties0_means_the_object_is_empty_response_body_for_content_type timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_maxproperties0_means_the_object_is_empty_response_body_for_content_types_oapg( @@ -128,6 +198,41 @@ def post_maxproperties0_means_the_object_is_empty_response_body_for_content_type class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -135,7 +240,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_maxproperties0_means_the_object_is_empty_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post.pyi index 62373744f4d..3a60659327c 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post.pyi @@ -35,6 +35,41 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _post_maxproperties0_means_the_object_is_empty_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_maxproperties0_means_the_object_is_empty_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_maxproperties0_means_the_object_is_empty_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_maxproperties0_means_the_object_is_empty_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -42,7 +77,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -84,6 +119,41 @@ class BaseApi(api_client.Api): class PostMaxproperties0MeansTheObjectIsEmptyResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_maxproperties0_means_the_object_is_empty_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_maxproperties0_means_the_object_is_empty_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_maxproperties0_means_the_object_is_empty_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_maxproperties0_means_the_object_is_empty_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -91,7 +161,7 @@ class PostMaxproperties0MeansTheObjectIsEmptyResponseBodyForContentTypes(BaseApi timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_maxproperties0_means_the_object_is_empty_response_body_for_content_types_oapg( @@ -105,6 +175,41 @@ class PostMaxproperties0MeansTheObjectIsEmptyResponseBodyForContentTypes(BaseApi class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -112,7 +217,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_maxproperties0_means_the_object_is_empty_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post.py index 1e23926f48e..b6791870f71 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post.py @@ -58,6 +58,41 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_maxproperties_validation_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_maxproperties_validation_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_maxproperties_validation_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_maxproperties_validation_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -65,7 +100,7 @@ def _post_maxproperties_validation_response_body_for_content_types_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -107,6 +142,41 @@ class instances class PostMaxpropertiesValidationResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_maxproperties_validation_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_maxproperties_validation_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_maxproperties_validation_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_maxproperties_validation_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -114,7 +184,7 @@ def post_maxproperties_validation_response_body_for_content_types( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_maxproperties_validation_response_body_for_content_types_oapg( @@ -128,6 +198,41 @@ def post_maxproperties_validation_response_body_for_content_types( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -135,7 +240,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_maxproperties_validation_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post.pyi index 3e70643f892..3641b9f7aa4 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post.pyi @@ -35,6 +35,41 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _post_maxproperties_validation_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_maxproperties_validation_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_maxproperties_validation_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_maxproperties_validation_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -42,7 +77,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -84,6 +119,41 @@ class BaseApi(api_client.Api): class PostMaxpropertiesValidationResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_maxproperties_validation_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_maxproperties_validation_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_maxproperties_validation_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_maxproperties_validation_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -91,7 +161,7 @@ class PostMaxpropertiesValidationResponseBodyForContentTypes(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_maxproperties_validation_response_body_for_content_types_oapg( @@ -105,6 +175,41 @@ class PostMaxpropertiesValidationResponseBodyForContentTypes(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -112,7 +217,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_maxproperties_validation_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minimum_validation_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minimum_validation_response_body_for_content_types/post.py index 83e3cf4aa37..21a18594c3f 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minimum_validation_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minimum_validation_response_body_for_content_types/post.py @@ -58,6 +58,41 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_minimum_validation_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_minimum_validation_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_minimum_validation_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_minimum_validation_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -65,7 +100,7 @@ def _post_minimum_validation_response_body_for_content_types_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -107,6 +142,41 @@ class instances class PostMinimumValidationResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_minimum_validation_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_minimum_validation_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_minimum_validation_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_minimum_validation_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -114,7 +184,7 @@ def post_minimum_validation_response_body_for_content_types( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_minimum_validation_response_body_for_content_types_oapg( @@ -128,6 +198,41 @@ def post_minimum_validation_response_body_for_content_types( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -135,7 +240,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_minimum_validation_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minimum_validation_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minimum_validation_response_body_for_content_types/post.pyi index 79c039afac8..ff2ccd299f2 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minimum_validation_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minimum_validation_response_body_for_content_types/post.pyi @@ -35,6 +35,41 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _post_minimum_validation_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_minimum_validation_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_minimum_validation_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_minimum_validation_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -42,7 +77,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -84,6 +119,41 @@ class BaseApi(api_client.Api): class PostMinimumValidationResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_minimum_validation_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_minimum_validation_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_minimum_validation_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_minimum_validation_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -91,7 +161,7 @@ class PostMinimumValidationResponseBodyForContentTypes(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_minimum_validation_response_body_for_content_types_oapg( @@ -105,6 +175,41 @@ class PostMinimumValidationResponseBodyForContentTypes(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -112,7 +217,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_minimum_validation_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post.py index 2576206d66e..bc07906c24b 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post.py @@ -58,6 +58,41 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_minimum_validation_with_signed_integer_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_minimum_validation_with_signed_integer_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_minimum_validation_with_signed_integer_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_minimum_validation_with_signed_integer_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -65,7 +100,7 @@ def _post_minimum_validation_with_signed_integer_response_body_for_content_types timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -107,6 +142,41 @@ class instances class PostMinimumValidationWithSignedIntegerResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_minimum_validation_with_signed_integer_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_minimum_validation_with_signed_integer_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_minimum_validation_with_signed_integer_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_minimum_validation_with_signed_integer_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -114,7 +184,7 @@ def post_minimum_validation_with_signed_integer_response_body_for_content_types( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_minimum_validation_with_signed_integer_response_body_for_content_types_oapg( @@ -128,6 +198,41 @@ def post_minimum_validation_with_signed_integer_response_body_for_content_types( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -135,7 +240,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_minimum_validation_with_signed_integer_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post.pyi index 6b009382922..64d8df7cf3a 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post.pyi @@ -35,6 +35,41 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _post_minimum_validation_with_signed_integer_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_minimum_validation_with_signed_integer_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_minimum_validation_with_signed_integer_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_minimum_validation_with_signed_integer_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -42,7 +77,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -84,6 +119,41 @@ class BaseApi(api_client.Api): class PostMinimumValidationWithSignedIntegerResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_minimum_validation_with_signed_integer_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_minimum_validation_with_signed_integer_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_minimum_validation_with_signed_integer_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_minimum_validation_with_signed_integer_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -91,7 +161,7 @@ class PostMinimumValidationWithSignedIntegerResponseBodyForContentTypes(BaseApi) timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_minimum_validation_with_signed_integer_response_body_for_content_types_oapg( @@ -105,6 +175,41 @@ class PostMinimumValidationWithSignedIntegerResponseBodyForContentTypes(BaseApi) class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -112,7 +217,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_minimum_validation_with_signed_integer_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minitems_validation_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minitems_validation_response_body_for_content_types/post.py index c11c502c996..d63bda52481 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minitems_validation_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minitems_validation_response_body_for_content_types/post.py @@ -58,6 +58,41 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_minitems_validation_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_minitems_validation_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_minitems_validation_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_minitems_validation_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -65,7 +100,7 @@ def _post_minitems_validation_response_body_for_content_types_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -107,6 +142,41 @@ class instances class PostMinitemsValidationResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_minitems_validation_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_minitems_validation_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_minitems_validation_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_minitems_validation_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -114,7 +184,7 @@ def post_minitems_validation_response_body_for_content_types( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_minitems_validation_response_body_for_content_types_oapg( @@ -128,6 +198,41 @@ def post_minitems_validation_response_body_for_content_types( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -135,7 +240,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_minitems_validation_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minitems_validation_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minitems_validation_response_body_for_content_types/post.pyi index 963b8250761..418fc1dc62a 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minitems_validation_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minitems_validation_response_body_for_content_types/post.pyi @@ -35,6 +35,41 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _post_minitems_validation_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_minitems_validation_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_minitems_validation_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_minitems_validation_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -42,7 +77,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -84,6 +119,41 @@ class BaseApi(api_client.Api): class PostMinitemsValidationResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_minitems_validation_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_minitems_validation_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_minitems_validation_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_minitems_validation_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -91,7 +161,7 @@ class PostMinitemsValidationResponseBodyForContentTypes(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_minitems_validation_response_body_for_content_types_oapg( @@ -105,6 +175,41 @@ class PostMinitemsValidationResponseBodyForContentTypes(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -112,7 +217,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_minitems_validation_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minlength_validation_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minlength_validation_response_body_for_content_types/post.py index 1df42fe4370..3ba1b9e59c0 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minlength_validation_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minlength_validation_response_body_for_content_types/post.py @@ -58,6 +58,41 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_minlength_validation_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_minlength_validation_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_minlength_validation_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_minlength_validation_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -65,7 +100,7 @@ def _post_minlength_validation_response_body_for_content_types_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -107,6 +142,41 @@ class instances class PostMinlengthValidationResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_minlength_validation_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_minlength_validation_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_minlength_validation_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_minlength_validation_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -114,7 +184,7 @@ def post_minlength_validation_response_body_for_content_types( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_minlength_validation_response_body_for_content_types_oapg( @@ -128,6 +198,41 @@ def post_minlength_validation_response_body_for_content_types( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -135,7 +240,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_minlength_validation_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minlength_validation_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minlength_validation_response_body_for_content_types/post.pyi index e2be043aa1f..6d809b1baa7 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minlength_validation_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minlength_validation_response_body_for_content_types/post.pyi @@ -35,6 +35,41 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _post_minlength_validation_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_minlength_validation_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_minlength_validation_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_minlength_validation_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -42,7 +77,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -84,6 +119,41 @@ class BaseApi(api_client.Api): class PostMinlengthValidationResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_minlength_validation_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_minlength_validation_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_minlength_validation_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_minlength_validation_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -91,7 +161,7 @@ class PostMinlengthValidationResponseBodyForContentTypes(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_minlength_validation_response_body_for_content_types_oapg( @@ -105,6 +175,41 @@ class PostMinlengthValidationResponseBodyForContentTypes(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -112,7 +217,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_minlength_validation_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minproperties_validation_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minproperties_validation_response_body_for_content_types/post.py index f0c3b54b66f..6ee1603e66c 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minproperties_validation_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minproperties_validation_response_body_for_content_types/post.py @@ -58,6 +58,41 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_minproperties_validation_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_minproperties_validation_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_minproperties_validation_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_minproperties_validation_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -65,7 +100,7 @@ def _post_minproperties_validation_response_body_for_content_types_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -107,6 +142,41 @@ class instances class PostMinpropertiesValidationResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_minproperties_validation_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_minproperties_validation_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_minproperties_validation_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_minproperties_validation_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -114,7 +184,7 @@ def post_minproperties_validation_response_body_for_content_types( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_minproperties_validation_response_body_for_content_types_oapg( @@ -128,6 +198,41 @@ def post_minproperties_validation_response_body_for_content_types( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -135,7 +240,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_minproperties_validation_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minproperties_validation_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minproperties_validation_response_body_for_content_types/post.pyi index 9f96ff8fc18..b5ec9d85da8 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minproperties_validation_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minproperties_validation_response_body_for_content_types/post.pyi @@ -35,6 +35,41 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _post_minproperties_validation_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_minproperties_validation_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_minproperties_validation_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_minproperties_validation_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -42,7 +77,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -84,6 +119,41 @@ class BaseApi(api_client.Api): class PostMinpropertiesValidationResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_minproperties_validation_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_minproperties_validation_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_minproperties_validation_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_minproperties_validation_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -91,7 +161,7 @@ class PostMinpropertiesValidationResponseBodyForContentTypes(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_minproperties_validation_response_body_for_content_types_oapg( @@ -105,6 +175,41 @@ class PostMinpropertiesValidationResponseBodyForContentTypes(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -112,7 +217,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_minproperties_validation_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post.py index 9c70aa0da91..91f4fdb6305 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post.py @@ -58,6 +58,41 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_nested_allof_to_check_validation_semantics_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_nested_allof_to_check_validation_semantics_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_nested_allof_to_check_validation_semantics_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_nested_allof_to_check_validation_semantics_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -65,7 +100,7 @@ def _post_nested_allof_to_check_validation_semantics_response_body_for_content_t timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -107,6 +142,41 @@ class instances class PostNestedAllofToCheckValidationSemanticsResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_nested_allof_to_check_validation_semantics_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_nested_allof_to_check_validation_semantics_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_nested_allof_to_check_validation_semantics_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_nested_allof_to_check_validation_semantics_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -114,7 +184,7 @@ def post_nested_allof_to_check_validation_semantics_response_body_for_content_ty timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_nested_allof_to_check_validation_semantics_response_body_for_content_types_oapg( @@ -128,6 +198,41 @@ def post_nested_allof_to_check_validation_semantics_response_body_for_content_ty class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -135,7 +240,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_nested_allof_to_check_validation_semantics_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post.pyi index c943fe0c343..21fa7ac2738 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post.pyi @@ -35,6 +35,41 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _post_nested_allof_to_check_validation_semantics_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_nested_allof_to_check_validation_semantics_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_nested_allof_to_check_validation_semantics_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_nested_allof_to_check_validation_semantics_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -42,7 +77,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -84,6 +119,41 @@ class BaseApi(api_client.Api): class PostNestedAllofToCheckValidationSemanticsResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_nested_allof_to_check_validation_semantics_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_nested_allof_to_check_validation_semantics_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_nested_allof_to_check_validation_semantics_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_nested_allof_to_check_validation_semantics_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -91,7 +161,7 @@ class PostNestedAllofToCheckValidationSemanticsResponseBodyForContentTypes(BaseA timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_nested_allof_to_check_validation_semantics_response_body_for_content_types_oapg( @@ -105,6 +175,41 @@ class PostNestedAllofToCheckValidationSemanticsResponseBodyForContentTypes(BaseA class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -112,7 +217,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_nested_allof_to_check_validation_semantics_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post.py index ef2dfc15ad8..88739b5c317 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post.py @@ -58,6 +58,41 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_nested_anyof_to_check_validation_semantics_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_nested_anyof_to_check_validation_semantics_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_nested_anyof_to_check_validation_semantics_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_nested_anyof_to_check_validation_semantics_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -65,7 +100,7 @@ def _post_nested_anyof_to_check_validation_semantics_response_body_for_content_t timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -107,6 +142,41 @@ class instances class PostNestedAnyofToCheckValidationSemanticsResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_nested_anyof_to_check_validation_semantics_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_nested_anyof_to_check_validation_semantics_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_nested_anyof_to_check_validation_semantics_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_nested_anyof_to_check_validation_semantics_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -114,7 +184,7 @@ def post_nested_anyof_to_check_validation_semantics_response_body_for_content_ty timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_nested_anyof_to_check_validation_semantics_response_body_for_content_types_oapg( @@ -128,6 +198,41 @@ def post_nested_anyof_to_check_validation_semantics_response_body_for_content_ty class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -135,7 +240,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_nested_anyof_to_check_validation_semantics_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post.pyi index 57f3c654b5e..815d9e3cdef 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post.pyi @@ -35,6 +35,41 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _post_nested_anyof_to_check_validation_semantics_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_nested_anyof_to_check_validation_semantics_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_nested_anyof_to_check_validation_semantics_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_nested_anyof_to_check_validation_semantics_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -42,7 +77,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -84,6 +119,41 @@ class BaseApi(api_client.Api): class PostNestedAnyofToCheckValidationSemanticsResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_nested_anyof_to_check_validation_semantics_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_nested_anyof_to_check_validation_semantics_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_nested_anyof_to_check_validation_semantics_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_nested_anyof_to_check_validation_semantics_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -91,7 +161,7 @@ class PostNestedAnyofToCheckValidationSemanticsResponseBodyForContentTypes(BaseA timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_nested_anyof_to_check_validation_semantics_response_body_for_content_types_oapg( @@ -105,6 +175,41 @@ class PostNestedAnyofToCheckValidationSemanticsResponseBodyForContentTypes(BaseA class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -112,7 +217,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_nested_anyof_to_check_validation_semantics_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_items_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_items_response_body_for_content_types/post.py index 026c086eae7..6c10b57aaec 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_items_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_items_response_body_for_content_types/post.py @@ -58,6 +58,41 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_nested_items_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_nested_items_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_nested_items_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_nested_items_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -65,7 +100,7 @@ def _post_nested_items_response_body_for_content_types_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -107,6 +142,41 @@ class instances class PostNestedItemsResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_nested_items_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_nested_items_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_nested_items_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_nested_items_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -114,7 +184,7 @@ def post_nested_items_response_body_for_content_types( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_nested_items_response_body_for_content_types_oapg( @@ -128,6 +198,41 @@ def post_nested_items_response_body_for_content_types( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -135,7 +240,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_nested_items_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_items_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_items_response_body_for_content_types/post.pyi index cd89ba08e85..630016843f6 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_items_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_items_response_body_for_content_types/post.pyi @@ -35,6 +35,41 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _post_nested_items_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_nested_items_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_nested_items_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_nested_items_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -42,7 +77,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -84,6 +119,41 @@ class BaseApi(api_client.Api): class PostNestedItemsResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_nested_items_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_nested_items_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_nested_items_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_nested_items_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -91,7 +161,7 @@ class PostNestedItemsResponseBodyForContentTypes(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_nested_items_response_body_for_content_types_oapg( @@ -105,6 +175,41 @@ class PostNestedItemsResponseBodyForContentTypes(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -112,7 +217,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_nested_items_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post.py index 741442c170a..b208c07a981 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post.py @@ -58,6 +58,41 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_nested_oneof_to_check_validation_semantics_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_nested_oneof_to_check_validation_semantics_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_nested_oneof_to_check_validation_semantics_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_nested_oneof_to_check_validation_semantics_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -65,7 +100,7 @@ def _post_nested_oneof_to_check_validation_semantics_response_body_for_content_t timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -107,6 +142,41 @@ class instances class PostNestedOneofToCheckValidationSemanticsResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_nested_oneof_to_check_validation_semantics_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_nested_oneof_to_check_validation_semantics_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_nested_oneof_to_check_validation_semantics_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_nested_oneof_to_check_validation_semantics_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -114,7 +184,7 @@ def post_nested_oneof_to_check_validation_semantics_response_body_for_content_ty timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_nested_oneof_to_check_validation_semantics_response_body_for_content_types_oapg( @@ -128,6 +198,41 @@ def post_nested_oneof_to_check_validation_semantics_response_body_for_content_ty class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -135,7 +240,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_nested_oneof_to_check_validation_semantics_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post.pyi index cc87b6112f3..b69e135c9f5 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post.pyi @@ -35,6 +35,41 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _post_nested_oneof_to_check_validation_semantics_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_nested_oneof_to_check_validation_semantics_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_nested_oneof_to_check_validation_semantics_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_nested_oneof_to_check_validation_semantics_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -42,7 +77,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -84,6 +119,41 @@ class BaseApi(api_client.Api): class PostNestedOneofToCheckValidationSemanticsResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_nested_oneof_to_check_validation_semantics_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_nested_oneof_to_check_validation_semantics_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_nested_oneof_to_check_validation_semantics_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_nested_oneof_to_check_validation_semantics_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -91,7 +161,7 @@ class PostNestedOneofToCheckValidationSemanticsResponseBodyForContentTypes(BaseA timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_nested_oneof_to_check_validation_semantics_response_body_for_content_types_oapg( @@ -105,6 +175,41 @@ class PostNestedOneofToCheckValidationSemanticsResponseBodyForContentTypes(BaseA class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -112,7 +217,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_nested_oneof_to_check_validation_semantics_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post.py index 13c61e239ae..b6e97f5feb0 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post.py @@ -127,6 +127,41 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_not_more_complex_schema_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_not_more_complex_schema_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_not_more_complex_schema_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_not_more_complex_schema_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -134,7 +169,7 @@ def _post_not_more_complex_schema_response_body_for_content_types_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -176,6 +211,41 @@ class instances class PostNotMoreComplexSchemaResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_not_more_complex_schema_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_not_more_complex_schema_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_not_more_complex_schema_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_not_more_complex_schema_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -183,7 +253,7 @@ def post_not_more_complex_schema_response_body_for_content_types( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_not_more_complex_schema_response_body_for_content_types_oapg( @@ -197,6 +267,41 @@ def post_not_more_complex_schema_response_body_for_content_types( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -204,7 +309,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_not_more_complex_schema_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post.pyi index fff2e73fd7b..98f0dbc77f0 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post.pyi @@ -104,6 +104,41 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _post_not_more_complex_schema_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_not_more_complex_schema_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_not_more_complex_schema_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_not_more_complex_schema_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -111,7 +146,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -153,6 +188,41 @@ class BaseApi(api_client.Api): class PostNotMoreComplexSchemaResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_not_more_complex_schema_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_not_more_complex_schema_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_not_more_complex_schema_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_not_more_complex_schema_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -160,7 +230,7 @@ class PostNotMoreComplexSchemaResponseBodyForContentTypes(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_not_more_complex_schema_response_body_for_content_types_oapg( @@ -174,6 +244,41 @@ class PostNotMoreComplexSchemaResponseBodyForContentTypes(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -181,7 +286,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_not_more_complex_schema_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_not_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_not_response_body_for_content_types/post.py index c77e6647738..2157538fdba 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_not_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_not_response_body_for_content_types/post.py @@ -78,6 +78,41 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_not_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_not_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_not_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_not_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -85,7 +120,7 @@ def _post_not_response_body_for_content_types_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -127,6 +162,41 @@ class instances class PostNotResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_not_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_not_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_not_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_not_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -134,7 +204,7 @@ def post_not_response_body_for_content_types( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_not_response_body_for_content_types_oapg( @@ -148,6 +218,41 @@ def post_not_response_body_for_content_types( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -155,7 +260,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_not_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_not_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_not_response_body_for_content_types/post.pyi index 5f30622b8e8..fabd0bb23d4 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_not_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_not_response_body_for_content_types/post.pyi @@ -55,6 +55,41 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _post_not_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_not_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_not_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_not_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -62,7 +97,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -104,6 +139,41 @@ class BaseApi(api_client.Api): class PostNotResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_not_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_not_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_not_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_not_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -111,7 +181,7 @@ class PostNotResponseBodyForContentTypes(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_not_response_body_for_content_types_oapg( @@ -125,6 +195,41 @@ class PostNotResponseBodyForContentTypes(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -132,7 +237,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_not_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post.py index 2c3c024b324..613da91c4b0 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post.py @@ -58,6 +58,41 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_nul_characters_in_strings_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_nul_characters_in_strings_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_nul_characters_in_strings_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_nul_characters_in_strings_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -65,7 +100,7 @@ def _post_nul_characters_in_strings_response_body_for_content_types_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -107,6 +142,41 @@ class instances class PostNulCharactersInStringsResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_nul_characters_in_strings_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_nul_characters_in_strings_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_nul_characters_in_strings_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_nul_characters_in_strings_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -114,7 +184,7 @@ def post_nul_characters_in_strings_response_body_for_content_types( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_nul_characters_in_strings_response_body_for_content_types_oapg( @@ -128,6 +198,41 @@ def post_nul_characters_in_strings_response_body_for_content_types( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -135,7 +240,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_nul_characters_in_strings_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post.pyi index c16dc293e2b..9428e020318 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post.pyi @@ -35,6 +35,41 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _post_nul_characters_in_strings_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_nul_characters_in_strings_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_nul_characters_in_strings_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_nul_characters_in_strings_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -42,7 +77,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -84,6 +119,41 @@ class BaseApi(api_client.Api): class PostNulCharactersInStringsResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_nul_characters_in_strings_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_nul_characters_in_strings_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_nul_characters_in_strings_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_nul_characters_in_strings_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -91,7 +161,7 @@ class PostNulCharactersInStringsResponseBodyForContentTypes(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_nul_characters_in_strings_response_body_for_content_types_oapg( @@ -105,6 +175,41 @@ class PostNulCharactersInStringsResponseBodyForContentTypes(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -112,7 +217,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_nul_characters_in_strings_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post.py index b715f683198..6c09600ac39 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post.py @@ -56,6 +56,41 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_null_type_matches_only_the_null_object_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_null_type_matches_only_the_null_object_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_null_type_matches_only_the_null_object_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_null_type_matches_only_the_null_object_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -63,7 +98,7 @@ def _post_null_type_matches_only_the_null_object_response_body_for_content_types timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -105,6 +140,41 @@ class instances class PostNullTypeMatchesOnlyTheNullObjectResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_null_type_matches_only_the_null_object_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_null_type_matches_only_the_null_object_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_null_type_matches_only_the_null_object_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_null_type_matches_only_the_null_object_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -112,7 +182,7 @@ def post_null_type_matches_only_the_null_object_response_body_for_content_types( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_null_type_matches_only_the_null_object_response_body_for_content_types_oapg( @@ -126,6 +196,41 @@ def post_null_type_matches_only_the_null_object_response_body_for_content_types( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -133,7 +238,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_null_type_matches_only_the_null_object_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post.pyi index 89cde51ed05..5ac0c3de379 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post.pyi @@ -33,6 +33,41 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _post_null_type_matches_only_the_null_object_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_null_type_matches_only_the_null_object_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_null_type_matches_only_the_null_object_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_null_type_matches_only_the_null_object_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -40,7 +75,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -82,6 +117,41 @@ class BaseApi(api_client.Api): class PostNullTypeMatchesOnlyTheNullObjectResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_null_type_matches_only_the_null_object_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_null_type_matches_only_the_null_object_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_null_type_matches_only_the_null_object_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_null_type_matches_only_the_null_object_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -89,7 +159,7 @@ class PostNullTypeMatchesOnlyTheNullObjectResponseBodyForContentTypes(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_null_type_matches_only_the_null_object_response_body_for_content_types_oapg( @@ -103,6 +173,41 @@ class PostNullTypeMatchesOnlyTheNullObjectResponseBodyForContentTypes(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -110,7 +215,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_null_type_matches_only_the_null_object_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post.py index 271b13e2fe3..e6bcc44ba28 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post.py @@ -56,6 +56,41 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_number_type_matches_numbers_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_number_type_matches_numbers_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_number_type_matches_numbers_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_number_type_matches_numbers_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -63,7 +98,7 @@ def _post_number_type_matches_numbers_response_body_for_content_types_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -105,6 +140,41 @@ class instances class PostNumberTypeMatchesNumbersResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_number_type_matches_numbers_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_number_type_matches_numbers_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_number_type_matches_numbers_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_number_type_matches_numbers_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -112,7 +182,7 @@ def post_number_type_matches_numbers_response_body_for_content_types( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_number_type_matches_numbers_response_body_for_content_types_oapg( @@ -126,6 +196,41 @@ def post_number_type_matches_numbers_response_body_for_content_types( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -133,7 +238,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_number_type_matches_numbers_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post.pyi index e945e45b29f..c2018a026a0 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post.pyi @@ -33,6 +33,41 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _post_number_type_matches_numbers_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_number_type_matches_numbers_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_number_type_matches_numbers_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_number_type_matches_numbers_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -40,7 +75,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -82,6 +117,41 @@ class BaseApi(api_client.Api): class PostNumberTypeMatchesNumbersResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_number_type_matches_numbers_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_number_type_matches_numbers_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_number_type_matches_numbers_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_number_type_matches_numbers_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -89,7 +159,7 @@ class PostNumberTypeMatchesNumbersResponseBodyForContentTypes(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_number_type_matches_numbers_response_body_for_content_types_oapg( @@ -103,6 +173,41 @@ class PostNumberTypeMatchesNumbersResponseBodyForContentTypes(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -110,7 +215,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_number_type_matches_numbers_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_object_properties_validation_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_object_properties_validation_response_body_for_content_types/post.py index 475dc9ab22b..0670c4792f4 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_object_properties_validation_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_object_properties_validation_response_body_for_content_types/post.py @@ -58,6 +58,41 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_object_properties_validation_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_object_properties_validation_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_object_properties_validation_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_object_properties_validation_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -65,7 +100,7 @@ def _post_object_properties_validation_response_body_for_content_types_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -107,6 +142,41 @@ class instances class PostObjectPropertiesValidationResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_object_properties_validation_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_object_properties_validation_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_object_properties_validation_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_object_properties_validation_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -114,7 +184,7 @@ def post_object_properties_validation_response_body_for_content_types( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_object_properties_validation_response_body_for_content_types_oapg( @@ -128,6 +198,41 @@ def post_object_properties_validation_response_body_for_content_types( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -135,7 +240,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_object_properties_validation_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_object_properties_validation_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_object_properties_validation_response_body_for_content_types/post.pyi index c58758a9b33..db919edf01d 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_object_properties_validation_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_object_properties_validation_response_body_for_content_types/post.pyi @@ -35,6 +35,41 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _post_object_properties_validation_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_object_properties_validation_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_object_properties_validation_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_object_properties_validation_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -42,7 +77,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -84,6 +119,41 @@ class BaseApi(api_client.Api): class PostObjectPropertiesValidationResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_object_properties_validation_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_object_properties_validation_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_object_properties_validation_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_object_properties_validation_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -91,7 +161,7 @@ class PostObjectPropertiesValidationResponseBodyForContentTypes(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_object_properties_validation_response_body_for_content_types_oapg( @@ -105,6 +175,41 @@ class PostObjectPropertiesValidationResponseBodyForContentTypes(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -112,7 +217,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_object_properties_validation_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post.py index 5cc62d65ea3..849ac676cea 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post.py @@ -56,6 +56,41 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_object_type_matches_objects_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_object_type_matches_objects_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_object_type_matches_objects_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_object_type_matches_objects_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -63,7 +98,7 @@ def _post_object_type_matches_objects_response_body_for_content_types_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -105,6 +140,41 @@ class instances class PostObjectTypeMatchesObjectsResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_object_type_matches_objects_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_object_type_matches_objects_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_object_type_matches_objects_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_object_type_matches_objects_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -112,7 +182,7 @@ def post_object_type_matches_objects_response_body_for_content_types( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_object_type_matches_objects_response_body_for_content_types_oapg( @@ -126,6 +196,41 @@ def post_object_type_matches_objects_response_body_for_content_types( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -133,7 +238,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_object_type_matches_objects_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post.pyi index 6a15b0be4a3..e798cbd171c 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post.pyi @@ -33,6 +33,41 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _post_object_type_matches_objects_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_object_type_matches_objects_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_object_type_matches_objects_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_object_type_matches_objects_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -40,7 +75,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -82,6 +117,41 @@ class BaseApi(api_client.Api): class PostObjectTypeMatchesObjectsResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_object_type_matches_objects_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_object_type_matches_objects_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_object_type_matches_objects_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_object_type_matches_objects_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -89,7 +159,7 @@ class PostObjectTypeMatchesObjectsResponseBodyForContentTypes(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_object_type_matches_objects_response_body_for_content_types_oapg( @@ -103,6 +173,41 @@ class PostObjectTypeMatchesObjectsResponseBodyForContentTypes(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -110,7 +215,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_object_type_matches_objects_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post.py index 495b4e83a34..0711f54239f 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post.py @@ -58,6 +58,41 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_oneof_complex_types_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_oneof_complex_types_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_oneof_complex_types_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_oneof_complex_types_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -65,7 +100,7 @@ def _post_oneof_complex_types_response_body_for_content_types_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -107,6 +142,41 @@ class instances class PostOneofComplexTypesResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_oneof_complex_types_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_oneof_complex_types_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_oneof_complex_types_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_oneof_complex_types_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -114,7 +184,7 @@ def post_oneof_complex_types_response_body_for_content_types( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_oneof_complex_types_response_body_for_content_types_oapg( @@ -128,6 +198,41 @@ def post_oneof_complex_types_response_body_for_content_types( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -135,7 +240,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_oneof_complex_types_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post.pyi index 1de9c2812e4..aab7fd98cfd 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post.pyi @@ -35,6 +35,41 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _post_oneof_complex_types_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_oneof_complex_types_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_oneof_complex_types_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_oneof_complex_types_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -42,7 +77,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -84,6 +119,41 @@ class BaseApi(api_client.Api): class PostOneofComplexTypesResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_oneof_complex_types_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_oneof_complex_types_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_oneof_complex_types_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_oneof_complex_types_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -91,7 +161,7 @@ class PostOneofComplexTypesResponseBodyForContentTypes(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_oneof_complex_types_response_body_for_content_types_oapg( @@ -105,6 +175,41 @@ class PostOneofComplexTypesResponseBodyForContentTypes(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -112,7 +217,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_oneof_complex_types_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_response_body_for_content_types/post.py index 0eef467c0c6..907eae25efa 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_response_body_for_content_types/post.py @@ -58,6 +58,41 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_oneof_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_oneof_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_oneof_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_oneof_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -65,7 +100,7 @@ def _post_oneof_response_body_for_content_types_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -107,6 +142,41 @@ class instances class PostOneofResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_oneof_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_oneof_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_oneof_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_oneof_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -114,7 +184,7 @@ def post_oneof_response_body_for_content_types( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_oneof_response_body_for_content_types_oapg( @@ -128,6 +198,41 @@ def post_oneof_response_body_for_content_types( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -135,7 +240,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_oneof_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_response_body_for_content_types/post.pyi index 3c51bc63fac..6a5d461419a 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_response_body_for_content_types/post.pyi @@ -35,6 +35,41 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _post_oneof_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_oneof_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_oneof_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_oneof_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -42,7 +77,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -84,6 +119,41 @@ class BaseApi(api_client.Api): class PostOneofResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_oneof_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_oneof_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_oneof_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_oneof_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -91,7 +161,7 @@ class PostOneofResponseBodyForContentTypes(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_oneof_response_body_for_content_types_oapg( @@ -105,6 +175,41 @@ class PostOneofResponseBodyForContentTypes(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -112,7 +217,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_oneof_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post.py index fbdb23c28b2..0bf1d542016 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post.py @@ -58,6 +58,41 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_oneof_with_base_schema_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_oneof_with_base_schema_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_oneof_with_base_schema_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_oneof_with_base_schema_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -65,7 +100,7 @@ def _post_oneof_with_base_schema_response_body_for_content_types_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -107,6 +142,41 @@ class instances class PostOneofWithBaseSchemaResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_oneof_with_base_schema_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_oneof_with_base_schema_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_oneof_with_base_schema_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_oneof_with_base_schema_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -114,7 +184,7 @@ def post_oneof_with_base_schema_response_body_for_content_types( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_oneof_with_base_schema_response_body_for_content_types_oapg( @@ -128,6 +198,41 @@ def post_oneof_with_base_schema_response_body_for_content_types( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -135,7 +240,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_oneof_with_base_schema_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post.pyi index 20a5b3d90e6..9cf64c8e5de 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post.pyi @@ -35,6 +35,41 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _post_oneof_with_base_schema_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_oneof_with_base_schema_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_oneof_with_base_schema_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_oneof_with_base_schema_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -42,7 +77,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -84,6 +119,41 @@ class BaseApi(api_client.Api): class PostOneofWithBaseSchemaResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_oneof_with_base_schema_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_oneof_with_base_schema_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_oneof_with_base_schema_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_oneof_with_base_schema_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -91,7 +161,7 @@ class PostOneofWithBaseSchemaResponseBodyForContentTypes(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_oneof_with_base_schema_response_body_for_content_types_oapg( @@ -105,6 +175,41 @@ class PostOneofWithBaseSchemaResponseBodyForContentTypes(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -112,7 +217,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_oneof_with_base_schema_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post.py index 13d5070129a..9a515069552 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post.py @@ -58,6 +58,41 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_oneof_with_empty_schema_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_oneof_with_empty_schema_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_oneof_with_empty_schema_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_oneof_with_empty_schema_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -65,7 +100,7 @@ def _post_oneof_with_empty_schema_response_body_for_content_types_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -107,6 +142,41 @@ class instances class PostOneofWithEmptySchemaResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_oneof_with_empty_schema_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_oneof_with_empty_schema_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_oneof_with_empty_schema_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_oneof_with_empty_schema_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -114,7 +184,7 @@ def post_oneof_with_empty_schema_response_body_for_content_types( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_oneof_with_empty_schema_response_body_for_content_types_oapg( @@ -128,6 +198,41 @@ def post_oneof_with_empty_schema_response_body_for_content_types( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -135,7 +240,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_oneof_with_empty_schema_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post.pyi index 48c41793c51..6644b83f3f7 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post.pyi @@ -35,6 +35,41 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _post_oneof_with_empty_schema_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_oneof_with_empty_schema_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_oneof_with_empty_schema_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_oneof_with_empty_schema_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -42,7 +77,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -84,6 +119,41 @@ class BaseApi(api_client.Api): class PostOneofWithEmptySchemaResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_oneof_with_empty_schema_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_oneof_with_empty_schema_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_oneof_with_empty_schema_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_oneof_with_empty_schema_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -91,7 +161,7 @@ class PostOneofWithEmptySchemaResponseBodyForContentTypes(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_oneof_with_empty_schema_response_body_for_content_types_oapg( @@ -105,6 +175,41 @@ class PostOneofWithEmptySchemaResponseBodyForContentTypes(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -112,7 +217,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_oneof_with_empty_schema_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_with_required_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_with_required_response_body_for_content_types/post.py index 75138d36053..9683ffb0996 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_with_required_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_with_required_response_body_for_content_types/post.py @@ -58,6 +58,41 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_oneof_with_required_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_oneof_with_required_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_oneof_with_required_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_oneof_with_required_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -65,7 +100,7 @@ def _post_oneof_with_required_response_body_for_content_types_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -107,6 +142,41 @@ class instances class PostOneofWithRequiredResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_oneof_with_required_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_oneof_with_required_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_oneof_with_required_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_oneof_with_required_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -114,7 +184,7 @@ def post_oneof_with_required_response_body_for_content_types( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_oneof_with_required_response_body_for_content_types_oapg( @@ -128,6 +198,41 @@ def post_oneof_with_required_response_body_for_content_types( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -135,7 +240,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_oneof_with_required_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_with_required_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_with_required_response_body_for_content_types/post.pyi index ca3ec89b501..5836f679523 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_with_required_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_with_required_response_body_for_content_types/post.pyi @@ -35,6 +35,41 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _post_oneof_with_required_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_oneof_with_required_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_oneof_with_required_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_oneof_with_required_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -42,7 +77,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -84,6 +119,41 @@ class BaseApi(api_client.Api): class PostOneofWithRequiredResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_oneof_with_required_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_oneof_with_required_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_oneof_with_required_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_oneof_with_required_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -91,7 +161,7 @@ class PostOneofWithRequiredResponseBodyForContentTypes(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_oneof_with_required_response_body_for_content_types_oapg( @@ -105,6 +175,41 @@ class PostOneofWithRequiredResponseBodyForContentTypes(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -112,7 +217,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_oneof_with_required_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post.py index 9379092884f..250f7982562 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post.py @@ -58,6 +58,41 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_pattern_is_not_anchored_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_pattern_is_not_anchored_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_pattern_is_not_anchored_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_pattern_is_not_anchored_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -65,7 +100,7 @@ def _post_pattern_is_not_anchored_response_body_for_content_types_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -107,6 +142,41 @@ class instances class PostPatternIsNotAnchoredResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_pattern_is_not_anchored_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_pattern_is_not_anchored_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_pattern_is_not_anchored_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_pattern_is_not_anchored_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -114,7 +184,7 @@ def post_pattern_is_not_anchored_response_body_for_content_types( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_pattern_is_not_anchored_response_body_for_content_types_oapg( @@ -128,6 +198,41 @@ def post_pattern_is_not_anchored_response_body_for_content_types( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -135,7 +240,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_pattern_is_not_anchored_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post.pyi index 97b297ceac9..86a7db8172a 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post.pyi @@ -35,6 +35,41 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _post_pattern_is_not_anchored_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_pattern_is_not_anchored_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_pattern_is_not_anchored_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_pattern_is_not_anchored_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -42,7 +77,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -84,6 +119,41 @@ class BaseApi(api_client.Api): class PostPatternIsNotAnchoredResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_pattern_is_not_anchored_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_pattern_is_not_anchored_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_pattern_is_not_anchored_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_pattern_is_not_anchored_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -91,7 +161,7 @@ class PostPatternIsNotAnchoredResponseBodyForContentTypes(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_pattern_is_not_anchored_response_body_for_content_types_oapg( @@ -105,6 +175,41 @@ class PostPatternIsNotAnchoredResponseBodyForContentTypes(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -112,7 +217,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_pattern_is_not_anchored_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_pattern_validation_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_pattern_validation_response_body_for_content_types/post.py index cac793efa5a..d9d92bf2822 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_pattern_validation_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_pattern_validation_response_body_for_content_types/post.py @@ -58,6 +58,41 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_pattern_validation_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_pattern_validation_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_pattern_validation_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_pattern_validation_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -65,7 +100,7 @@ def _post_pattern_validation_response_body_for_content_types_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -107,6 +142,41 @@ class instances class PostPatternValidationResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_pattern_validation_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_pattern_validation_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_pattern_validation_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_pattern_validation_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -114,7 +184,7 @@ def post_pattern_validation_response_body_for_content_types( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_pattern_validation_response_body_for_content_types_oapg( @@ -128,6 +198,41 @@ def post_pattern_validation_response_body_for_content_types( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -135,7 +240,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_pattern_validation_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_pattern_validation_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_pattern_validation_response_body_for_content_types/post.pyi index 7b04aed8395..8c9924594aa 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_pattern_validation_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_pattern_validation_response_body_for_content_types/post.pyi @@ -35,6 +35,41 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _post_pattern_validation_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_pattern_validation_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_pattern_validation_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_pattern_validation_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -42,7 +77,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -84,6 +119,41 @@ class BaseApi(api_client.Api): class PostPatternValidationResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_pattern_validation_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_pattern_validation_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_pattern_validation_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_pattern_validation_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -91,7 +161,7 @@ class PostPatternValidationResponseBodyForContentTypes(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_pattern_validation_response_body_for_content_types_oapg( @@ -105,6 +175,41 @@ class PostPatternValidationResponseBodyForContentTypes(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -112,7 +217,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_pattern_validation_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post.py index 8f5b60de978..6ca67c6be67 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post.py @@ -58,6 +58,41 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_properties_with_escaped_characters_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_properties_with_escaped_characters_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_properties_with_escaped_characters_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_properties_with_escaped_characters_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -65,7 +100,7 @@ def _post_properties_with_escaped_characters_response_body_for_content_types_oap timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -107,6 +142,41 @@ class instances class PostPropertiesWithEscapedCharactersResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_properties_with_escaped_characters_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_properties_with_escaped_characters_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_properties_with_escaped_characters_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_properties_with_escaped_characters_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -114,7 +184,7 @@ def post_properties_with_escaped_characters_response_body_for_content_types( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_properties_with_escaped_characters_response_body_for_content_types_oapg( @@ -128,6 +198,41 @@ def post_properties_with_escaped_characters_response_body_for_content_types( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -135,7 +240,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_properties_with_escaped_characters_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post.pyi index ea8e9df1a04..8bbaeca6ce5 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post.pyi @@ -35,6 +35,41 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _post_properties_with_escaped_characters_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_properties_with_escaped_characters_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_properties_with_escaped_characters_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_properties_with_escaped_characters_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -42,7 +77,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -84,6 +119,41 @@ class BaseApi(api_client.Api): class PostPropertiesWithEscapedCharactersResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_properties_with_escaped_characters_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_properties_with_escaped_characters_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_properties_with_escaped_characters_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_properties_with_escaped_characters_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -91,7 +161,7 @@ class PostPropertiesWithEscapedCharactersResponseBodyForContentTypes(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_properties_with_escaped_characters_response_body_for_content_types_oapg( @@ -105,6 +175,41 @@ class PostPropertiesWithEscapedCharactersResponseBodyForContentTypes(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -112,7 +217,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_properties_with_escaped_characters_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post.py index 211b708f84f..777c2fb3cf2 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post.py @@ -58,6 +58,41 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_property_named_ref_that_is_not_a_reference_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_property_named_ref_that_is_not_a_reference_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_property_named_ref_that_is_not_a_reference_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_property_named_ref_that_is_not_a_reference_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -65,7 +100,7 @@ def _post_property_named_ref_that_is_not_a_reference_response_body_for_content_t timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -107,6 +142,41 @@ class instances class PostPropertyNamedRefThatIsNotAReferenceResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_property_named_ref_that_is_not_a_reference_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_property_named_ref_that_is_not_a_reference_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_property_named_ref_that_is_not_a_reference_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_property_named_ref_that_is_not_a_reference_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -114,7 +184,7 @@ def post_property_named_ref_that_is_not_a_reference_response_body_for_content_ty timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_property_named_ref_that_is_not_a_reference_response_body_for_content_types_oapg( @@ -128,6 +198,41 @@ def post_property_named_ref_that_is_not_a_reference_response_body_for_content_ty class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -135,7 +240,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_property_named_ref_that_is_not_a_reference_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post.pyi index 661d27604ef..4e98a3bb0ea 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post.pyi @@ -35,6 +35,41 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _post_property_named_ref_that_is_not_a_reference_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_property_named_ref_that_is_not_a_reference_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_property_named_ref_that_is_not_a_reference_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_property_named_ref_that_is_not_a_reference_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -42,7 +77,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -84,6 +119,41 @@ class BaseApi(api_client.Api): class PostPropertyNamedRefThatIsNotAReferenceResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_property_named_ref_that_is_not_a_reference_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_property_named_ref_that_is_not_a_reference_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_property_named_ref_that_is_not_a_reference_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_property_named_ref_that_is_not_a_reference_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -91,7 +161,7 @@ class PostPropertyNamedRefThatIsNotAReferenceResponseBodyForContentTypes(BaseApi timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_property_named_ref_that_is_not_a_reference_response_body_for_content_types_oapg( @@ -105,6 +175,41 @@ class PostPropertyNamedRefThatIsNotAReferenceResponseBodyForContentTypes(BaseApi class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -112,7 +217,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_property_named_ref_that_is_not_a_reference_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_additionalproperties_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_additionalproperties_response_body_for_content_types/post.py index 3646ddfac53..3fe4231b863 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_additionalproperties_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_additionalproperties_response_body_for_content_types/post.py @@ -58,6 +58,41 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_ref_in_additionalproperties_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_ref_in_additionalproperties_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_ref_in_additionalproperties_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_ref_in_additionalproperties_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -65,7 +100,7 @@ def _post_ref_in_additionalproperties_response_body_for_content_types_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -107,6 +142,41 @@ class instances class PostRefInAdditionalpropertiesResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_ref_in_additionalproperties_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_ref_in_additionalproperties_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_ref_in_additionalproperties_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_ref_in_additionalproperties_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -114,7 +184,7 @@ def post_ref_in_additionalproperties_response_body_for_content_types( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_ref_in_additionalproperties_response_body_for_content_types_oapg( @@ -128,6 +198,41 @@ def post_ref_in_additionalproperties_response_body_for_content_types( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -135,7 +240,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_ref_in_additionalproperties_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_additionalproperties_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_additionalproperties_response_body_for_content_types/post.pyi index 2d2b7b1896b..a13c7c92ba9 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_additionalproperties_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_additionalproperties_response_body_for_content_types/post.pyi @@ -35,6 +35,41 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _post_ref_in_additionalproperties_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_ref_in_additionalproperties_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_ref_in_additionalproperties_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_ref_in_additionalproperties_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -42,7 +77,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -84,6 +119,41 @@ class BaseApi(api_client.Api): class PostRefInAdditionalpropertiesResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_ref_in_additionalproperties_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_ref_in_additionalproperties_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_ref_in_additionalproperties_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_ref_in_additionalproperties_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -91,7 +161,7 @@ class PostRefInAdditionalpropertiesResponseBodyForContentTypes(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_ref_in_additionalproperties_response_body_for_content_types_oapg( @@ -105,6 +175,41 @@ class PostRefInAdditionalpropertiesResponseBodyForContentTypes(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -112,7 +217,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_ref_in_additionalproperties_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_allof_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_allof_response_body_for_content_types/post.py index ba246674237..7ceeb2008b8 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_allof_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_allof_response_body_for_content_types/post.py @@ -58,6 +58,41 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_ref_in_allof_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_ref_in_allof_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_ref_in_allof_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_ref_in_allof_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -65,7 +100,7 @@ def _post_ref_in_allof_response_body_for_content_types_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -107,6 +142,41 @@ class instances class PostRefInAllofResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_ref_in_allof_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_ref_in_allof_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_ref_in_allof_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_ref_in_allof_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -114,7 +184,7 @@ def post_ref_in_allof_response_body_for_content_types( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_ref_in_allof_response_body_for_content_types_oapg( @@ -128,6 +198,41 @@ def post_ref_in_allof_response_body_for_content_types( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -135,7 +240,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_ref_in_allof_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_allof_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_allof_response_body_for_content_types/post.pyi index 5056c8c3d8b..24a38446569 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_allof_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_allof_response_body_for_content_types/post.pyi @@ -35,6 +35,41 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _post_ref_in_allof_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_ref_in_allof_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_ref_in_allof_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_ref_in_allof_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -42,7 +77,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -84,6 +119,41 @@ class BaseApi(api_client.Api): class PostRefInAllofResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_ref_in_allof_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_ref_in_allof_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_ref_in_allof_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_ref_in_allof_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -91,7 +161,7 @@ class PostRefInAllofResponseBodyForContentTypes(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_ref_in_allof_response_body_for_content_types_oapg( @@ -105,6 +175,41 @@ class PostRefInAllofResponseBodyForContentTypes(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -112,7 +217,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_ref_in_allof_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_anyof_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_anyof_response_body_for_content_types/post.py index e9c7e40f86b..b995bd8e524 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_anyof_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_anyof_response_body_for_content_types/post.py @@ -58,6 +58,41 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_ref_in_anyof_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_ref_in_anyof_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_ref_in_anyof_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_ref_in_anyof_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -65,7 +100,7 @@ def _post_ref_in_anyof_response_body_for_content_types_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -107,6 +142,41 @@ class instances class PostRefInAnyofResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_ref_in_anyof_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_ref_in_anyof_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_ref_in_anyof_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_ref_in_anyof_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -114,7 +184,7 @@ def post_ref_in_anyof_response_body_for_content_types( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_ref_in_anyof_response_body_for_content_types_oapg( @@ -128,6 +198,41 @@ def post_ref_in_anyof_response_body_for_content_types( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -135,7 +240,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_ref_in_anyof_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_anyof_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_anyof_response_body_for_content_types/post.pyi index 7979d632da5..ec783ea4f7e 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_anyof_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_anyof_response_body_for_content_types/post.pyi @@ -35,6 +35,41 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _post_ref_in_anyof_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_ref_in_anyof_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_ref_in_anyof_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_ref_in_anyof_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -42,7 +77,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -84,6 +119,41 @@ class BaseApi(api_client.Api): class PostRefInAnyofResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_ref_in_anyof_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_ref_in_anyof_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_ref_in_anyof_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_ref_in_anyof_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -91,7 +161,7 @@ class PostRefInAnyofResponseBodyForContentTypes(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_ref_in_anyof_response_body_for_content_types_oapg( @@ -105,6 +175,41 @@ class PostRefInAnyofResponseBodyForContentTypes(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -112,7 +217,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_ref_in_anyof_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_items_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_items_response_body_for_content_types/post.py index aba91337cb9..ed6a4d77fbb 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_items_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_items_response_body_for_content_types/post.py @@ -58,6 +58,41 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_ref_in_items_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_ref_in_items_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_ref_in_items_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_ref_in_items_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -65,7 +100,7 @@ def _post_ref_in_items_response_body_for_content_types_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -107,6 +142,41 @@ class instances class PostRefInItemsResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_ref_in_items_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_ref_in_items_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_ref_in_items_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_ref_in_items_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -114,7 +184,7 @@ def post_ref_in_items_response_body_for_content_types( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_ref_in_items_response_body_for_content_types_oapg( @@ -128,6 +198,41 @@ def post_ref_in_items_response_body_for_content_types( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -135,7 +240,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_ref_in_items_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_items_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_items_response_body_for_content_types/post.pyi index 556bcc20599..6de4e32bd45 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_items_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_items_response_body_for_content_types/post.pyi @@ -35,6 +35,41 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _post_ref_in_items_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_ref_in_items_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_ref_in_items_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_ref_in_items_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -42,7 +77,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -84,6 +119,41 @@ class BaseApi(api_client.Api): class PostRefInItemsResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_ref_in_items_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_ref_in_items_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_ref_in_items_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_ref_in_items_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -91,7 +161,7 @@ class PostRefInItemsResponseBodyForContentTypes(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_ref_in_items_response_body_for_content_types_oapg( @@ -105,6 +175,41 @@ class PostRefInItemsResponseBodyForContentTypes(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -112,7 +217,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_ref_in_items_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_not_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_not_response_body_for_content_types/post.py index bc13e0d26f7..02161000f98 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_not_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_not_response_body_for_content_types/post.py @@ -83,6 +83,41 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_ref_in_not_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_ref_in_not_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_ref_in_not_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_ref_in_not_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -90,7 +125,7 @@ def _post_ref_in_not_response_body_for_content_types_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -132,6 +167,41 @@ class instances class PostRefInNotResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_ref_in_not_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_ref_in_not_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_ref_in_not_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_ref_in_not_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -139,7 +209,7 @@ def post_ref_in_not_response_body_for_content_types( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_ref_in_not_response_body_for_content_types_oapg( @@ -153,6 +223,41 @@ def post_ref_in_not_response_body_for_content_types( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -160,7 +265,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_ref_in_not_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_not_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_not_response_body_for_content_types/post.pyi index 41a03ddcec4..f95d4e619d9 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_not_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_not_response_body_for_content_types/post.pyi @@ -60,6 +60,41 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _post_ref_in_not_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_ref_in_not_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_ref_in_not_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_ref_in_not_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -67,7 +102,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -109,6 +144,41 @@ class BaseApi(api_client.Api): class PostRefInNotResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_ref_in_not_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_ref_in_not_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_ref_in_not_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_ref_in_not_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -116,7 +186,7 @@ class PostRefInNotResponseBodyForContentTypes(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_ref_in_not_response_body_for_content_types_oapg( @@ -130,6 +200,41 @@ class PostRefInNotResponseBodyForContentTypes(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -137,7 +242,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_ref_in_not_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_oneof_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_oneof_response_body_for_content_types/post.py index 4423ea94496..2bd181dd2c4 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_oneof_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_oneof_response_body_for_content_types/post.py @@ -58,6 +58,41 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_ref_in_oneof_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_ref_in_oneof_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_ref_in_oneof_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_ref_in_oneof_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -65,7 +100,7 @@ def _post_ref_in_oneof_response_body_for_content_types_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -107,6 +142,41 @@ class instances class PostRefInOneofResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_ref_in_oneof_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_ref_in_oneof_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_ref_in_oneof_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_ref_in_oneof_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -114,7 +184,7 @@ def post_ref_in_oneof_response_body_for_content_types( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_ref_in_oneof_response_body_for_content_types_oapg( @@ -128,6 +198,41 @@ def post_ref_in_oneof_response_body_for_content_types( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -135,7 +240,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_ref_in_oneof_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_oneof_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_oneof_response_body_for_content_types/post.pyi index f86ae484464..811e5ba3f6d 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_oneof_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_oneof_response_body_for_content_types/post.pyi @@ -35,6 +35,41 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _post_ref_in_oneof_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_ref_in_oneof_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_ref_in_oneof_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_ref_in_oneof_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -42,7 +77,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -84,6 +119,41 @@ class BaseApi(api_client.Api): class PostRefInOneofResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_ref_in_oneof_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_ref_in_oneof_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_ref_in_oneof_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_ref_in_oneof_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -91,7 +161,7 @@ class PostRefInOneofResponseBodyForContentTypes(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_ref_in_oneof_response_body_for_content_types_oapg( @@ -105,6 +175,41 @@ class PostRefInOneofResponseBodyForContentTypes(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -112,7 +217,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_ref_in_oneof_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_property_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_property_response_body_for_content_types/post.py index a9eccf664bd..d0c3709c73a 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_property_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_property_response_body_for_content_types/post.py @@ -58,6 +58,41 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_ref_in_property_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_ref_in_property_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_ref_in_property_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_ref_in_property_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -65,7 +100,7 @@ def _post_ref_in_property_response_body_for_content_types_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -107,6 +142,41 @@ class instances class PostRefInPropertyResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_ref_in_property_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_ref_in_property_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_ref_in_property_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_ref_in_property_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -114,7 +184,7 @@ def post_ref_in_property_response_body_for_content_types( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_ref_in_property_response_body_for_content_types_oapg( @@ -128,6 +198,41 @@ def post_ref_in_property_response_body_for_content_types( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -135,7 +240,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_ref_in_property_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_property_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_property_response_body_for_content_types/post.pyi index 220be3be534..d0ba03c75e3 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_property_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_property_response_body_for_content_types/post.pyi @@ -35,6 +35,41 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _post_ref_in_property_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_ref_in_property_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_ref_in_property_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_ref_in_property_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -42,7 +77,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -84,6 +119,41 @@ class BaseApi(api_client.Api): class PostRefInPropertyResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_ref_in_property_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_ref_in_property_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_ref_in_property_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_ref_in_property_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -91,7 +161,7 @@ class PostRefInPropertyResponseBodyForContentTypes(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_ref_in_property_response_body_for_content_types_oapg( @@ -105,6 +175,41 @@ class PostRefInPropertyResponseBodyForContentTypes(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -112,7 +217,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_ref_in_property_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_default_validation_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_default_validation_response_body_for_content_types/post.py index f7784ead0f1..8ee891ab925 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_default_validation_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_default_validation_response_body_for_content_types/post.py @@ -58,6 +58,41 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_required_default_validation_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_required_default_validation_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_required_default_validation_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_required_default_validation_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -65,7 +100,7 @@ def _post_required_default_validation_response_body_for_content_types_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -107,6 +142,41 @@ class instances class PostRequiredDefaultValidationResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_required_default_validation_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_required_default_validation_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_required_default_validation_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_required_default_validation_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -114,7 +184,7 @@ def post_required_default_validation_response_body_for_content_types( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_required_default_validation_response_body_for_content_types_oapg( @@ -128,6 +198,41 @@ def post_required_default_validation_response_body_for_content_types( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -135,7 +240,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_required_default_validation_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_default_validation_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_default_validation_response_body_for_content_types/post.pyi index 33f98298747..fe6002bd97b 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_default_validation_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_default_validation_response_body_for_content_types/post.pyi @@ -35,6 +35,41 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _post_required_default_validation_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_required_default_validation_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_required_default_validation_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_required_default_validation_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -42,7 +77,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -84,6 +119,41 @@ class BaseApi(api_client.Api): class PostRequiredDefaultValidationResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_required_default_validation_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_required_default_validation_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_required_default_validation_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_required_default_validation_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -91,7 +161,7 @@ class PostRequiredDefaultValidationResponseBodyForContentTypes(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_required_default_validation_response_body_for_content_types_oapg( @@ -105,6 +175,41 @@ class PostRequiredDefaultValidationResponseBodyForContentTypes(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -112,7 +217,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_required_default_validation_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_validation_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_validation_response_body_for_content_types/post.py index 15344cdfa1b..5843e1bb2e2 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_validation_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_validation_response_body_for_content_types/post.py @@ -58,6 +58,41 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_required_validation_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_required_validation_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_required_validation_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_required_validation_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -65,7 +100,7 @@ def _post_required_validation_response_body_for_content_types_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -107,6 +142,41 @@ class instances class PostRequiredValidationResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_required_validation_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_required_validation_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_required_validation_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_required_validation_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -114,7 +184,7 @@ def post_required_validation_response_body_for_content_types( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_required_validation_response_body_for_content_types_oapg( @@ -128,6 +198,41 @@ def post_required_validation_response_body_for_content_types( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -135,7 +240,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_required_validation_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_validation_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_validation_response_body_for_content_types/post.pyi index e0c69bcc704..b35d42a1587 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_validation_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_validation_response_body_for_content_types/post.pyi @@ -35,6 +35,41 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _post_required_validation_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_required_validation_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_required_validation_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_required_validation_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -42,7 +77,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -84,6 +119,41 @@ class BaseApi(api_client.Api): class PostRequiredValidationResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_required_validation_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_required_validation_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_required_validation_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_required_validation_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -91,7 +161,7 @@ class PostRequiredValidationResponseBodyForContentTypes(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_required_validation_response_body_for_content_types_oapg( @@ -105,6 +175,41 @@ class PostRequiredValidationResponseBodyForContentTypes(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -112,7 +217,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_required_validation_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post.py index 545abfd36d1..ce370548c5d 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post.py @@ -58,6 +58,41 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_required_with_empty_array_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_required_with_empty_array_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_required_with_empty_array_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_required_with_empty_array_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -65,7 +100,7 @@ def _post_required_with_empty_array_response_body_for_content_types_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -107,6 +142,41 @@ class instances class PostRequiredWithEmptyArrayResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_required_with_empty_array_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_required_with_empty_array_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_required_with_empty_array_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_required_with_empty_array_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -114,7 +184,7 @@ def post_required_with_empty_array_response_body_for_content_types( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_required_with_empty_array_response_body_for_content_types_oapg( @@ -128,6 +198,41 @@ def post_required_with_empty_array_response_body_for_content_types( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -135,7 +240,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_required_with_empty_array_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post.pyi index 2eed312b7b9..58d0982c8c4 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post.pyi @@ -35,6 +35,41 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _post_required_with_empty_array_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_required_with_empty_array_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_required_with_empty_array_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_required_with_empty_array_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -42,7 +77,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -84,6 +119,41 @@ class BaseApi(api_client.Api): class PostRequiredWithEmptyArrayResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_required_with_empty_array_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_required_with_empty_array_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_required_with_empty_array_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_required_with_empty_array_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -91,7 +161,7 @@ class PostRequiredWithEmptyArrayResponseBodyForContentTypes(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_required_with_empty_array_response_body_for_content_types_oapg( @@ -105,6 +175,41 @@ class PostRequiredWithEmptyArrayResponseBodyForContentTypes(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -112,7 +217,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_required_with_empty_array_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post.py index 7cea48d8b96..102b19cff09 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post.py @@ -86,6 +86,41 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_required_with_escaped_characters_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_required_with_escaped_characters_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_required_with_escaped_characters_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_required_with_escaped_characters_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -93,7 +128,7 @@ def _post_required_with_escaped_characters_response_body_for_content_types_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -135,6 +170,41 @@ class instances class PostRequiredWithEscapedCharactersResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_required_with_escaped_characters_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_required_with_escaped_characters_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_required_with_escaped_characters_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_required_with_escaped_characters_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -142,7 +212,7 @@ def post_required_with_escaped_characters_response_body_for_content_types( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_required_with_escaped_characters_response_body_for_content_types_oapg( @@ -156,6 +226,41 @@ def post_required_with_escaped_characters_response_body_for_content_types( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -163,7 +268,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_required_with_escaped_characters_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post.pyi index f9918ddfeaf..46db88b07f6 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post.pyi @@ -63,6 +63,41 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _post_required_with_escaped_characters_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_required_with_escaped_characters_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_required_with_escaped_characters_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_required_with_escaped_characters_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -70,7 +105,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -112,6 +147,41 @@ class BaseApi(api_client.Api): class PostRequiredWithEscapedCharactersResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_required_with_escaped_characters_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_required_with_escaped_characters_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_required_with_escaped_characters_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_required_with_escaped_characters_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -119,7 +189,7 @@ class PostRequiredWithEscapedCharactersResponseBodyForContentTypes(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_required_with_escaped_characters_response_body_for_content_types_oapg( @@ -133,6 +203,41 @@ class PostRequiredWithEscapedCharactersResponseBodyForContentTypes(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -140,7 +245,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_required_with_escaped_characters_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post.py index 0b138868491..0c75ac6b2fd 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post.py @@ -58,6 +58,41 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_simple_enum_validation_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_simple_enum_validation_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_simple_enum_validation_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_simple_enum_validation_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -65,7 +100,7 @@ def _post_simple_enum_validation_response_body_for_content_types_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -107,6 +142,41 @@ class instances class PostSimpleEnumValidationResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_simple_enum_validation_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_simple_enum_validation_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_simple_enum_validation_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_simple_enum_validation_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -114,7 +184,7 @@ def post_simple_enum_validation_response_body_for_content_types( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_simple_enum_validation_response_body_for_content_types_oapg( @@ -128,6 +198,41 @@ def post_simple_enum_validation_response_body_for_content_types( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -135,7 +240,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_simple_enum_validation_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post.pyi index cba5ecd2080..128db6d82f5 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post.pyi @@ -35,6 +35,41 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _post_simple_enum_validation_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_simple_enum_validation_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_simple_enum_validation_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_simple_enum_validation_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -42,7 +77,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -84,6 +119,41 @@ class BaseApi(api_client.Api): class PostSimpleEnumValidationResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_simple_enum_validation_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_simple_enum_validation_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_simple_enum_validation_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_simple_enum_validation_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -91,7 +161,7 @@ class PostSimpleEnumValidationResponseBodyForContentTypes(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_simple_enum_validation_response_body_for_content_types_oapg( @@ -105,6 +175,41 @@ class PostSimpleEnumValidationResponseBodyForContentTypes(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -112,7 +217,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_simple_enum_validation_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post.py index 24f9a28f289..acdd15100e7 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post.py @@ -56,6 +56,41 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_string_type_matches_strings_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_string_type_matches_strings_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_string_type_matches_strings_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_string_type_matches_strings_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -63,7 +98,7 @@ def _post_string_type_matches_strings_response_body_for_content_types_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -105,6 +140,41 @@ class instances class PostStringTypeMatchesStringsResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_string_type_matches_strings_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_string_type_matches_strings_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_string_type_matches_strings_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_string_type_matches_strings_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -112,7 +182,7 @@ def post_string_type_matches_strings_response_body_for_content_types( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_string_type_matches_strings_response_body_for_content_types_oapg( @@ -126,6 +196,41 @@ def post_string_type_matches_strings_response_body_for_content_types( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -133,7 +238,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_string_type_matches_strings_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post.pyi index 29eee86cd66..745dd09357c 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post.pyi @@ -33,6 +33,41 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _post_string_type_matches_strings_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_string_type_matches_strings_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_string_type_matches_strings_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_string_type_matches_strings_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -40,7 +75,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -82,6 +117,41 @@ class BaseApi(api_client.Api): class PostStringTypeMatchesStringsResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_string_type_matches_strings_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_string_type_matches_strings_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_string_type_matches_strings_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_string_type_matches_strings_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -89,7 +159,7 @@ class PostStringTypeMatchesStringsResponseBodyForContentTypes(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_string_type_matches_strings_response_body_for_content_types_oapg( @@ -103,6 +173,41 @@ class PostStringTypeMatchesStringsResponseBodyForContentTypes(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -110,7 +215,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_string_type_matches_strings_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types/post.py index 23de1c70c5f..85ed42fba82 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types/post.py @@ -58,6 +58,41 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -65,7 +100,7 @@ def _post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_re timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -107,6 +142,41 @@ class instances class PostTheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissingResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -114,7 +184,7 @@ def post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_res timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types_oapg( @@ -128,6 +198,41 @@ def post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_res class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -135,7 +240,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types/post.pyi index e982ab5f7de..eafff4ff303 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types/post.pyi @@ -35,6 +35,41 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -42,7 +77,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -84,6 +119,41 @@ class BaseApi(api_client.Api): class PostTheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissingResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -91,7 +161,7 @@ class PostTheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissingResponseBodyFo timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types_oapg( @@ -105,6 +175,41 @@ class PostTheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissingResponseBodyFo class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -112,7 +217,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post.py index 32ec15a6bf7..3ae16ed0305 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post.py @@ -58,6 +58,41 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_uniqueitems_false_validation_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_uniqueitems_false_validation_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_uniqueitems_false_validation_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_uniqueitems_false_validation_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -65,7 +100,7 @@ def _post_uniqueitems_false_validation_response_body_for_content_types_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -107,6 +142,41 @@ class instances class PostUniqueitemsFalseValidationResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_uniqueitems_false_validation_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_uniqueitems_false_validation_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_uniqueitems_false_validation_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_uniqueitems_false_validation_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -114,7 +184,7 @@ def post_uniqueitems_false_validation_response_body_for_content_types( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_uniqueitems_false_validation_response_body_for_content_types_oapg( @@ -128,6 +198,41 @@ def post_uniqueitems_false_validation_response_body_for_content_types( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -135,7 +240,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_uniqueitems_false_validation_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post.pyi index 6b02a890071..9b91195b393 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post.pyi @@ -35,6 +35,41 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _post_uniqueitems_false_validation_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_uniqueitems_false_validation_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_uniqueitems_false_validation_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_uniqueitems_false_validation_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -42,7 +77,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -84,6 +119,41 @@ class BaseApi(api_client.Api): class PostUniqueitemsFalseValidationResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_uniqueitems_false_validation_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_uniqueitems_false_validation_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_uniqueitems_false_validation_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_uniqueitems_false_validation_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -91,7 +161,7 @@ class PostUniqueitemsFalseValidationResponseBodyForContentTypes(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_uniqueitems_false_validation_response_body_for_content_types_oapg( @@ -105,6 +175,41 @@ class PostUniqueitemsFalseValidationResponseBodyForContentTypes(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -112,7 +217,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_uniqueitems_false_validation_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post.py index 531cab800b8..c47dc23daa7 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post.py @@ -58,6 +58,41 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_uniqueitems_validation_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_uniqueitems_validation_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_uniqueitems_validation_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_uniqueitems_validation_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -65,7 +100,7 @@ def _post_uniqueitems_validation_response_body_for_content_types_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -107,6 +142,41 @@ class instances class PostUniqueitemsValidationResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_uniqueitems_validation_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_uniqueitems_validation_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_uniqueitems_validation_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_uniqueitems_validation_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -114,7 +184,7 @@ def post_uniqueitems_validation_response_body_for_content_types( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_uniqueitems_validation_response_body_for_content_types_oapg( @@ -128,6 +198,41 @@ def post_uniqueitems_validation_response_body_for_content_types( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -135,7 +240,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_uniqueitems_validation_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post.pyi index 642059237c3..092b24a2cd4 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post.pyi @@ -35,6 +35,41 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _post_uniqueitems_validation_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_uniqueitems_validation_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_uniqueitems_validation_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_uniqueitems_validation_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -42,7 +77,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -84,6 +119,41 @@ class BaseApi(api_client.Api): class PostUniqueitemsValidationResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_uniqueitems_validation_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_uniqueitems_validation_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_uniqueitems_validation_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_uniqueitems_validation_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -91,7 +161,7 @@ class PostUniqueitemsValidationResponseBodyForContentTypes(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_uniqueitems_validation_response_body_for_content_types_oapg( @@ -105,6 +175,41 @@ class PostUniqueitemsValidationResponseBodyForContentTypes(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -112,7 +217,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_uniqueitems_validation_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uri_format_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uri_format_response_body_for_content_types/post.py index 252fb5f0847..72f0d2d671b 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uri_format_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uri_format_response_body_for_content_types/post.py @@ -78,6 +78,41 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_uri_format_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_uri_format_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_uri_format_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_uri_format_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -85,7 +120,7 @@ def _post_uri_format_response_body_for_content_types_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -127,6 +162,41 @@ class instances class PostUriFormatResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_uri_format_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_uri_format_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_uri_format_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_uri_format_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -134,7 +204,7 @@ def post_uri_format_response_body_for_content_types( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_uri_format_response_body_for_content_types_oapg( @@ -148,6 +218,41 @@ def post_uri_format_response_body_for_content_types( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -155,7 +260,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_uri_format_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uri_format_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uri_format_response_body_for_content_types/post.pyi index 718073cf867..fa8d33e171c 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uri_format_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uri_format_response_body_for_content_types/post.pyi @@ -55,6 +55,41 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _post_uri_format_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_uri_format_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_uri_format_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_uri_format_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -62,7 +97,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -104,6 +139,41 @@ class BaseApi(api_client.Api): class PostUriFormatResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_uri_format_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_uri_format_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_uri_format_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_uri_format_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -111,7 +181,7 @@ class PostUriFormatResponseBodyForContentTypes(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_uri_format_response_body_for_content_types_oapg( @@ -125,6 +195,41 @@ class PostUriFormatResponseBodyForContentTypes(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -132,7 +237,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_uri_format_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uri_reference_format_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uri_reference_format_response_body_for_content_types/post.py index d160addbecc..91898b5210a 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uri_reference_format_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uri_reference_format_response_body_for_content_types/post.py @@ -78,6 +78,41 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_uri_reference_format_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_uri_reference_format_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_uri_reference_format_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_uri_reference_format_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -85,7 +120,7 @@ def _post_uri_reference_format_response_body_for_content_types_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -127,6 +162,41 @@ class instances class PostUriReferenceFormatResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_uri_reference_format_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_uri_reference_format_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_uri_reference_format_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_uri_reference_format_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -134,7 +204,7 @@ def post_uri_reference_format_response_body_for_content_types( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_uri_reference_format_response_body_for_content_types_oapg( @@ -148,6 +218,41 @@ def post_uri_reference_format_response_body_for_content_types( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -155,7 +260,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_uri_reference_format_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uri_reference_format_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uri_reference_format_response_body_for_content_types/post.pyi index 09e8886136d..e93a12a4fed 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uri_reference_format_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uri_reference_format_response_body_for_content_types/post.pyi @@ -55,6 +55,41 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _post_uri_reference_format_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_uri_reference_format_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_uri_reference_format_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_uri_reference_format_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -62,7 +97,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -104,6 +139,41 @@ class BaseApi(api_client.Api): class PostUriReferenceFormatResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_uri_reference_format_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_uri_reference_format_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_uri_reference_format_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_uri_reference_format_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -111,7 +181,7 @@ class PostUriReferenceFormatResponseBodyForContentTypes(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_uri_reference_format_response_body_for_content_types_oapg( @@ -125,6 +195,41 @@ class PostUriReferenceFormatResponseBodyForContentTypes(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -132,7 +237,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_uri_reference_format_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uri_template_format_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uri_template_format_response_body_for_content_types/post.py index b418915fbaf..f3fd2c9d749 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uri_template_format_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uri_template_format_response_body_for_content_types/post.py @@ -78,6 +78,41 @@ class ApiResponseFor200(api_client.ApiResponse): class BaseApi(api_client.Api): + @typing.overload + def _post_uri_template_format_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_uri_template_format_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_uri_template_format_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_uri_template_format_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -85,7 +120,7 @@ def _post_uri_template_format_response_body_for_content_types_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -127,6 +162,41 @@ class instances class PostUriTemplateFormatResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_uri_template_format_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_uri_template_format_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_uri_template_format_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_uri_template_format_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -134,7 +204,7 @@ def post_uri_template_format_response_body_for_content_types( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_uri_template_format_response_body_for_content_types_oapg( @@ -148,6 +218,41 @@ def post_uri_template_format_response_body_for_content_types( class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -155,7 +260,7 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_uri_template_format_response_body_for_content_types_oapg( diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uri_template_format_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uri_template_format_response_body_for_content_types/post.pyi index 7e04b30ce5d..eea991df4df 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uri_template_format_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uri_template_format_response_body_for_content_types/post.pyi @@ -55,6 +55,41 @@ _all_accept_content_types = ( class BaseApi(api_client.Api): + @typing.overload + def _post_uri_template_format_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def _post_uri_template_format_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def _post_uri_template_format_response_body_for_content_types_oapg( + self: api_client.Api, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def _post_uri_template_format_response_body_for_content_types_oapg( self: api_client.Api, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -62,7 +97,7 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: """ @@ -104,6 +139,41 @@ class BaseApi(api_client.Api): class PostUriTemplateFormatResponseBodyForContentTypes(BaseApi): # this class is used by api classes that refer to endpoints with operationId fn names + @typing.overload + def post_uri_template_format_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post_uri_template_format_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post_uri_template_format_response_body_for_content_types( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post_uri_template_format_response_body_for_content_types( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -111,7 +181,7 @@ class PostUriTemplateFormatResponseBodyForContentTypes(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_uri_template_format_response_body_for_content_types_oapg( @@ -125,6 +195,41 @@ class PostUriTemplateFormatResponseBodyForContentTypes(BaseApi): class ApiForpost(BaseApi): # this class is used by api classes that refer to endpoints by path and http method names + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[False] = False, + ) -> typing.Union[ + api_client.ApiResponse, + ]: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: typing_extensions.Literal[True] = True, + ) -> api_client.ApiResponseWithoutDeserialization: + ... + + @typing.overload + def post( + self: BaseApi, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization + ]: + ... + def post( self: BaseApi, accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -132,7 +237,7 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - ApiResponseFor200, + api_client.ApiResponse, api_client.ApiResponseWithoutDeserialization ]: return self._post_uri_template_format_response_body_for_content_types_oapg( From 607e4c891fe2911117a3be133a969e2be6adacb9 Mon Sep 17 00:00:00 2001 From: Elton Chou Date: Sun, 2 Oct 2022 13:27:43 +0800 Subject: [PATCH 05/11] Handle overload in existing template --- .../main/resources/python/endpoint.handlebars | 27 +++--- .../resources/python/endpoint_args.handlebars | 89 +++++++++++++------ .../python/endpoint_args_overload.handlebars | 52 ----------- 3 files changed, 76 insertions(+), 92 deletions(-) delete mode 100644 modules/openapi-json-schema-generator/src/main/resources/python/endpoint_args_overload.handlebars diff --git a/modules/openapi-json-schema-generator/src/main/resources/python/endpoint.handlebars b/modules/openapi-json-schema-generator/src/main/resources/python/endpoint.handlebars index 6593cf17300..fe23b3cde62 100644 --- a/modules/openapi-json-schema-generator/src/main/resources/python/endpoint.handlebars +++ b/modules/openapi-json-schema-generator/src/main/resources/python/endpoint.handlebars @@ -388,19 +388,18 @@ class BaseApi(api_client.Api): @typing.overload def _{{operationId}}_oapg( - {{> endpoint_args_overload selfType="api_client.Api" isSkip=false}} + {{> endpoint_args isOverload=true skipDeserialization="False"}} @typing.overload def _{{operationId}}_oapg( - {{> endpoint_args_overload selfType="api_client.Api" isSkip=true}} + {{> endpoint_args isOverload=true skipDeserialization="True"}} @typing.overload def _{{operationId}}_oapg( - {{> endpoint_args selfType="api_client.Api" }} - ... + {{> endpoint_args isOverload=true skipDeserialization="null"}} def _{{operationId}}_oapg( - {{> endpoint_args selfType="api_client.Api" }} + {{> endpoint_args isOverload=false skipDeserialization="null"}} """ {{#if summary}} {{summary}} @@ -548,19 +547,18 @@ class {{operationIdCamelCase}}(BaseApi): @typing.overload def {{operationId}}( - {{> endpoint_args_overload selfType="BaseApi" isSkip=false}} + {{> endpoint_args isOverload=true skipDeserialization="False"}} @typing.overload def {{operationId}}( - {{> endpoint_args_overload selfType="BaseApi" isSkip=true}} + {{> endpoint_args isOverload=true skipDeserialization="True"}} @typing.overload def {{operationId}}( - {{> endpoint_args selfType="BaseApi" }} - ... + {{> endpoint_args isOverload=true skipDeserialization="null"}} def {{operationId}}( - {{> endpoint_args selfType="BaseApi" }} + {{> endpoint_args isOverload=false skipDeserialization="null"}} return self._{{operationId}}_oapg( {{> endpoint_args_passed }} ) @@ -571,19 +569,18 @@ class ApiFor{{httpMethod}}(BaseApi): @typing.overload def {{httpMethod}}( - {{> endpoint_args_overload selfType="BaseApi" isSkip=false}} + {{> endpoint_args isOverload=true skipDeserialization="False"}} @typing.overload def {{httpMethod}}( - {{> endpoint_args_overload selfType="BaseApi" isSkip=true}} + {{> endpoint_args isOverload=true skipDeserialization="True"}} @typing.overload def {{httpMethod}}( - {{> endpoint_args selfType="BaseApi" }} - ... + {{> endpoint_args isOverload=true skipDeserialization="null"}} def {{httpMethod}}( - {{> endpoint_args selfType="BaseApi" }} + {{> endpoint_args isOverload=false skipDeserialization="null"}} return self._{{operationId}}_oapg( {{> endpoint_args_passed }} ) diff --git a/modules/openapi-json-schema-generator/src/main/resources/python/endpoint_args.handlebars b/modules/openapi-json-schema-generator/src/main/resources/python/endpoint_args.handlebars index 98e25c8bf14..713921a73bf 100644 --- a/modules/openapi-json-schema-generator/src/main/resources/python/endpoint_args.handlebars +++ b/modules/openapi-json-schema-generator/src/main/resources/python/endpoint_args.handlebars @@ -1,48 +1,87 @@ - self: {{selfType}}, + self, {{#if bodyParam}} -{{#with bodyParam}} - body: typing.Union[{{#each content}}{{#with this.schema}}{{baseName}}, {{> model_templates/schema_python_types }}{{/with}}{{/each}}{{#unless required}}schemas.Unset] = schemas.unset{{else}}]{{/unless}}, -{{/with}} + {{#with bodyParam}} + {{#if isOverload}} + body: typing.Union[{{#each content}}{{#with this.schema}}{{baseName}},{{> model_templates/schema_python_types }}{{/with}}{{/each}}{{#unless required}}schemas.Unset] = schemas.unset{{else}}]{{/unless}}, + {{else}} + body, + {{/if}} + {{/with}} {{/if}} {{#if queryParams}} - query_params: RequestQueryParams = frozendict.frozendict(), + query_params{{#if isOverload}}: RequestQueryParams{{/if}} = frozendict.frozendict(), {{/if}} {{#if headerParams}} - header_params: RequestHeaderParams = frozendict.frozendict(), + header_params{{#if isOverload}}: RequestHeaderParams{{/if}} = frozendict.frozendict(), {{/if}} {{#if pathParams}} - path_params: RequestPathParams = frozendict.frozendict(), + path_params{{#if isOverload}}: RequestPathParams{{/if}} = frozendict.frozendict(), {{/if}} {{#if cookieParams}} - cookie_params: RequestCookieParams = frozendict.frozendict(), + cookie_params{{#if isOverload}}: RequestCookieParams{{/if}} = frozendict.frozendict(), {{/if}} {{#with bodyParam}} -{{#each content}} -{{#if @first}} - content_type: str = '{{{@key}}}', -{{/if}} -{{/each}} + {{#each content}} + {{#if @first}} + content_type{{#if isOverload}}: str{{/if}} = '{{{@key}}}', + {{/if}} + {{/each}} {{/with}} {{#if produces}} - accept_content_types: typing.Tuple[str] = _all_accept_content_types, + accept_content_types{{#if isOverload}}: typing.Tuple[str]{{/if}} = _all_accept_content_types, {{/if}} {{#if servers}} - host_index: typing.Optional[int] = None, + host_index{{#if isOverload}}: typing.Optional[int]{{/if}} = None, {{/if}} - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + stream{{#if isOverload}}: bool{{/if}} = False, + timeout{{#if isOverload}}: typing.Optional[typing.Union[int, typing.Tuple]]{{/if}} = None, + {{#if isOverload}} + {{#eq skipDeserialization "True"}} + skip_deserialization: typing_extensions.Literal[True] = True, + {{/eq}} + {{#eq skipDeserialization "False"}} + skip_deserialization: typing_extensions.Literal[False] = False, + {{/eq}} + {{#eq skipDeserialization "null"}} skip_deserialization: bool = False, + {{/eq}} + {{else}} + skip_deserialization = False, + {{/if}} +{{#eq skipDeserialization "True"}} +) -> api_client.ApiResponseWithoutDeserialization: +{{/eq}} +{{#eq skipDeserialization "False"}} ) -> typing.Union[ -{{#each responses}} - {{#if isDefault}} + {{#each responses}} + {{#if isDefault}} ApiResponseForDefault, - {{else}} - {{#if is2xx}} + {{else}} + {{#if is2xx}} ApiResponseFor{{code}}, + {{/if}} {{/if}} + {{/each}} +]: +{{/eq}} +{{#eq skipDeserialization "null"}} + {{#if isOverload}} +) -> typing.Union[ + {{#each responses}} + {{#if isDefault}} + ApiResponseForDefault, + {{else}} + {{#if is2xx}} + ApiResponseFor{{code}}, + {{/if}} + {{/if}} + {{/each}} + api_client.ApiResponseWithoutDeserialization, +]: {{else}} - api_client.ApiResponse, +): {{/if}} -{{/each}} - api_client.ApiResponseWithoutDeserialization -]: +{{/eq}} +{{#if isOverload}} + ... +{{/if}} \ No newline at end of file diff --git a/modules/openapi-json-schema-generator/src/main/resources/python/endpoint_args_overload.handlebars b/modules/openapi-json-schema-generator/src/main/resources/python/endpoint_args_overload.handlebars deleted file mode 100644 index 7df611e7633..00000000000 --- a/modules/openapi-json-schema-generator/src/main/resources/python/endpoint_args_overload.handlebars +++ /dev/null @@ -1,52 +0,0 @@ - self: {{selfType}}, -{{#if bodyParam}} -{{#with bodyParam}} - body: typing.Union[{{#each content}}{{#with this.schema}}{{baseName}}, {{> model_templates/schema_python_types }}{{/with}}{{/each}}{{#unless required}}schemas.Unset] = schemas.unset{{else}}]{{/unless}}, -{{/with}} -{{/if}} -{{#if queryParams}} - query_params: RequestQueryParams = frozendict.frozendict(), -{{/if}} -{{#if headerParams}} - header_params: RequestHeaderParams = frozendict.frozendict(), -{{/if}} -{{#if pathParams}} - path_params: RequestPathParams = frozendict.frozendict(), -{{/if}} -{{#if cookieParams}} - cookie_params: RequestCookieParams = frozendict.frozendict(), -{{/if}} -{{#with bodyParam}} -{{#each content}} -{{#if @first}} - content_type: str = '{{{@key}}}', -{{/if}} -{{/each}} -{{/with}} -{{#if produces}} - accept_content_types: typing.Tuple[str] = _all_accept_content_types, -{{/if}} -{{#if servers}} - host_index: typing.Optional[int] = None, -{{/if}} - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: typing_extensions.Literal[{{#if isSkip}}True{{else}}False{{/if}}] = {{#if isSkip}}True{{else}}False{{/if}}, -{{#if isSkip}} -) -> api_client.ApiResponseWithoutDeserialization: -{{else}} -) -> typing.Union[ -{{#each responses}} - {{#if isDefault}} - ApiResponseForDefault, - {{else}} - {{#if is2xx}} - ApiResponseFor{{code}}, - {{/if}} - {{else}} - api_client.ApiResponse, - {{/if}} -{{/each}} -]: -{{/if}} - ... From 3be03d76cdf1279861828a1ffe4cbd531a6c7892 Mon Sep 17 00:00:00 2001 From: Elton Chou Date: Sun, 2 Oct 2022 13:28:55 +0800 Subject: [PATCH 06/11] Remove generic type --- .../src/main/resources/python/api_client.handlebars | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/modules/openapi-json-schema-generator/src/main/resources/python/api_client.handlebars b/modules/openapi-json-schema-generator/src/main/resources/python/api_client.handlebars index f8a5bde65a6..d67e7e3d575 100644 --- a/modules/openapi-json-schema-generator/src/main/resources/python/api_client.handlebars +++ b/modules/openapi-json-schema-generator/src/main/resources/python/api_client.handlebars @@ -812,16 +812,13 @@ class JSONDetector: return True return False -Response_T = typing.TypeVar("Response_T", bound=ApiResponse) - -class OpenApiResponse(JSONDetector, typing.Generic[Response_T]): - response_cls: typing.Type[Response_T] +class OpenApiResponse(JSONDetector): __filename_content_disposition_pattern = re.compile('filename="(.+?)"') def __init__( self, - response_cls: typing.Type[Response_T] = ApiResponse, + response_cls: typing.Type[ApiResponse] = ApiResponse, content: typing.Optional[typing.Dict[str, MediaType]] = None, headers: typing.Optional[typing.List[HeaderParameter]] = None, ): @@ -906,7 +903,7 @@ class OpenApiResponse(JSONDetector, typing.Generic[Response_T]): for part in msg.get_payload() } - def deserialize(self, response: urllib3.HTTPResponse, configuration: Configuration) -> Response_T: + def deserialize(self, response: urllib3.HTTPResponse, configuration: Configuration) -> ApiResponse: content_type = response.getheader('content-type') deserialized_body = unset streamed = response.supports_chunked_reads() From f1855035c346f79eb50b56dbb284c3b6f1987848 Mon Sep 17 00:00:00 2001 From: Elton Chou Date: Sun, 2 Oct 2022 13:29:33 +0800 Subject: [PATCH 07/11] Update samples --- .../python/unit_test_api/api_client.py | 9 +- .../post.py | 105 +++++++------- .../post.pyi | 105 +++++++------- .../post.py | 105 +++++++------- .../post.pyi | 105 +++++++------- .../post.py | 105 +++++++------- .../post.pyi | 105 +++++++------- .../post.py | 105 +++++++------- .../post.pyi | 105 +++++++------- .../post.py | 105 +++++++------- .../post.pyi | 105 +++++++------- .../post.py | 105 +++++++------- .../post.pyi | 105 +++++++------- .../post.py | 105 +++++++------- .../post.pyi | 105 +++++++------- .../post.py | 105 +++++++------- .../post.pyi | 105 +++++++------- .../post.py | 105 +++++++------- .../post.pyi | 105 +++++++------- .../post.py | 105 +++++++------- .../post.pyi | 105 +++++++------- .../post.py | 105 +++++++------- .../post.pyi | 105 +++++++------- .../post.py | 105 +++++++------- .../post.pyi | 105 +++++++------- .../post.py | 105 +++++++------- .../post.pyi | 105 +++++++------- .../post.py | 105 +++++++------- .../post.pyi | 105 +++++++------- .../post.py | 105 +++++++------- .../post.pyi | 105 +++++++------- .../post.py | 105 +++++++------- .../post.pyi | 105 +++++++------- .../post.py | 105 +++++++------- .../post.pyi | 105 +++++++------- .../post.py | 105 +++++++------- .../post.pyi | 105 +++++++------- .../post.py | 105 +++++++------- .../post.pyi | 105 +++++++------- .../post.py | 105 +++++++------- .../post.pyi | 105 +++++++------- .../post.py | 105 +++++++------- .../post.pyi | 105 +++++++------- .../post.py | 105 +++++++------- .../post.pyi | 105 +++++++------- .../post.py | 105 +++++++------- .../post.pyi | 105 +++++++------- .../post.py | 105 +++++++------- .../post.pyi | 105 +++++++------- .../post.py | 105 +++++++------- .../post.pyi | 105 +++++++------- .../post.py | 105 +++++++------- .../post.pyi | 105 +++++++------- .../post.py | 105 +++++++------- .../post.pyi | 105 +++++++------- .../post.py | 105 +++++++------- .../post.pyi | 105 +++++++------- .../post.py | 105 +++++++------- .../post.pyi | 105 +++++++------- .../post.py | 105 +++++++------- .../post.pyi | 105 +++++++------- .../post.py | 105 +++++++------- .../post.pyi | 105 +++++++------- .../post.py | 105 +++++++------- .../post.pyi | 105 +++++++------- .../post.py | 105 +++++++------- .../post.pyi | 105 +++++++------- .../post.py | 105 +++++++------- .../post.pyi | 105 +++++++------- .../post.py | 105 +++++++------- .../post.pyi | 105 +++++++------- .../post.py | 105 +++++++------- .../post.pyi | 105 +++++++------- .../post.py | 105 +++++++------- .../post.pyi | 105 +++++++------- .../post.py | 105 +++++++------- .../post.pyi | 105 +++++++------- .../post.py | 105 +++++++------- .../post.pyi | 105 +++++++------- .../post.py | 105 +++++++------- .../post.pyi | 105 +++++++------- .../post.py | 105 +++++++------- .../post.pyi | 105 +++++++------- .../post.py | 105 +++++++------- .../post.pyi | 105 +++++++------- .../post.py | 105 +++++++------- .../post.pyi | 105 +++++++------- .../post.py | 105 +++++++------- .../post.pyi | 105 +++++++------- .../post.py | 105 +++++++------- .../post.pyi | 105 +++++++------- .../post.py | 105 +++++++------- .../post.pyi | 105 +++++++------- .../post.py | 105 +++++++------- .../post.pyi | 105 +++++++------- .../post.py | 105 +++++++------- .../post.pyi | 105 +++++++------- .../post.py | 105 +++++++------- .../post.pyi | 105 +++++++------- .../post.py | 105 +++++++------- .../post.pyi | 105 +++++++------- .../post.py | 105 +++++++------- .../post.pyi | 105 +++++++------- .../post.py | 105 +++++++------- .../post.pyi | 105 +++++++------- .../post.py | 105 +++++++------- .../post.pyi | 105 +++++++------- .../post.py | 105 +++++++------- .../post.pyi | 105 +++++++------- .../post.py | 105 +++++++------- .../post.pyi | 105 +++++++------- .../post.py | 105 +++++++------- .../post.pyi | 105 +++++++------- .../post.py | 105 +++++++------- .../post.pyi | 105 +++++++------- .../post.py | 105 +++++++------- .../post.pyi | 105 +++++++------- .../post.py | 105 +++++++------- .../post.pyi | 105 +++++++------- .../post.py | 105 +++++++------- .../post.pyi | 105 +++++++------- .../post.py | 105 +++++++------- .../post.pyi | 105 +++++++------- .../post.py | 105 +++++++------- .../post.pyi | 105 +++++++------- .../post.py | 105 +++++++------- .../post.pyi | 105 +++++++------- .../post.py | 105 +++++++------- .../post.pyi | 105 +++++++------- .../post.py | 105 +++++++------- .../post.pyi | 105 +++++++------- .../post.py | 105 +++++++------- .../post.pyi | 105 +++++++------- .../post.py | 105 +++++++------- .../post.pyi | 105 +++++++------- .../post.py | 105 +++++++------- .../post.pyi | 105 +++++++------- .../post.py | 105 +++++++------- .../post.pyi | 105 +++++++------- .../post.py | 105 +++++++------- .../post.pyi | 105 +++++++------- .../post.py | 105 +++++++------- .../post.pyi | 105 +++++++------- .../post.py | 105 +++++++------- .../post.pyi | 105 +++++++------- .../post.py | 105 +++++++------- .../post.pyi | 105 +++++++------- .../post.py | 105 +++++++------- .../post.pyi | 105 +++++++------- .../post.py | 105 +++++++------- .../post.pyi | 105 +++++++------- .../post.py | 105 +++++++------- .../post.pyi | 105 +++++++------- .../post.py | 105 +++++++------- .../post.pyi | 105 +++++++------- .../post.py | 105 +++++++------- .../post.pyi | 105 +++++++------- .../post.py | 105 +++++++------- .../post.pyi | 105 +++++++------- .../post.py | 105 +++++++------- .../post.pyi | 105 +++++++------- .../post.py | 105 +++++++------- .../post.pyi | 105 +++++++------- .../post.py | 105 +++++++------- .../post.pyi | 105 +++++++------- .../post.py | 105 +++++++------- .../post.pyi | 105 +++++++------- .../post.py | 105 +++++++------- .../post.pyi | 105 +++++++------- .../post.py | 105 +++++++------- .../post.pyi | 105 +++++++------- .../post.py | 105 +++++++------- .../post.pyi | 105 +++++++------- .../post.py | 105 +++++++------- .../post.pyi | 105 +++++++------- .../post.py | 81 +++++------ .../post.pyi | 81 +++++------ .../post.py | 81 +++++------ .../post.pyi | 81 +++++------ .../post.py | 81 +++++------ .../post.pyi | 81 +++++------ .../post.py | 81 +++++------ .../post.pyi | 81 +++++------ .../post.py | 81 +++++------ .../post.pyi | 81 +++++------ .../post.py | 81 +++++------ .../post.pyi | 81 +++++------ .../post.py | 81 +++++------ .../post.pyi | 81 +++++------ .../post.py | 81 +++++------ .../post.pyi | 81 +++++------ .../post.py | 81 +++++------ .../post.pyi | 81 +++++------ .../post.py | 81 +++++------ .../post.pyi | 81 +++++------ .../post.py | 81 +++++------ .../post.pyi | 81 +++++------ .../post.py | 81 +++++------ .../post.pyi | 81 +++++------ .../post.py | 81 +++++------ .../post.pyi | 81 +++++------ .../post.py | 81 +++++------ .../post.pyi | 81 +++++------ .../post.py | 81 +++++------ .../post.pyi | 81 +++++------ .../post.py | 81 +++++------ .../post.pyi | 81 +++++------ .../post.py | 81 +++++------ .../post.pyi | 81 +++++------ .../post.py | 81 +++++------ .../post.pyi | 81 +++++------ .../post.py | 81 +++++------ .../post.pyi | 81 +++++------ .../post.py | 81 +++++------ .../post.pyi | 81 +++++------ .../post.py | 81 +++++------ .../post.pyi | 81 +++++------ .../post.py | 81 +++++------ .../post.pyi | 81 +++++------ .../post.py | 81 +++++------ .../post.pyi | 81 +++++------ .../post.py | 81 +++++------ .../post.pyi | 81 +++++------ .../post.py | 81 +++++------ .../post.pyi | 81 +++++------ .../post.py | 81 +++++------ .../post.pyi | 81 +++++------ .../post.py | 81 +++++------ .../post.pyi | 81 +++++------ .../post.py | 81 +++++------ .../post.pyi | 81 +++++------ .../post.py | 81 +++++------ .../post.pyi | 81 +++++------ .../post.py | 81 +++++------ .../post.pyi | 81 +++++------ .../post.py | 81 +++++------ .../post.pyi | 81 +++++------ .../post.py | 81 +++++------ .../post.pyi | 81 +++++------ .../post.py | 81 +++++------ .../post.pyi | 81 +++++------ .../post.py | 81 +++++------ .../post.pyi | 81 +++++------ .../post.py | 81 +++++------ .../post.pyi | 81 +++++------ .../post.py | 81 +++++------ .../post.pyi | 81 +++++------ .../post.py | 81 +++++------ .../post.pyi | 81 +++++------ .../post.py | 81 +++++------ .../post.pyi | 81 +++++------ .../post.py | 81 +++++------ .../post.pyi | 81 +++++------ .../post.py | 81 +++++------ .../post.pyi | 81 +++++------ .../post.py | 81 +++++------ .../post.pyi | 81 +++++------ .../post.py | 81 +++++------ .../post.pyi | 81 +++++------ .../post.py | 81 +++++------ .../post.pyi | 81 +++++------ .../post.py | 81 +++++------ .../post.pyi | 81 +++++------ .../post.py | 81 +++++------ .../post.pyi | 81 +++++------ .../post.py | 81 +++++------ .../post.pyi | 81 +++++------ .../post.py | 81 +++++------ .../post.pyi | 81 +++++------ .../post.py | 81 +++++------ .../post.pyi | 81 +++++------ .../post.py | 81 +++++------ .../post.pyi | 81 +++++------ .../post.py | 81 +++++------ .../post.pyi | 81 +++++------ .../post.py | 81 +++++------ .../post.pyi | 81 +++++------ .../post.py | 81 +++++------ .../post.pyi | 81 +++++------ .../post.py | 81 +++++------ .../post.pyi | 81 +++++------ .../post.py | 81 +++++------ .../post.pyi | 81 +++++------ .../post.py | 81 +++++------ .../post.pyi | 81 +++++------ .../post.py | 81 +++++------ .../post.pyi | 81 +++++------ .../post.py | 81 +++++------ .../post.pyi | 81 +++++------ .../post.py | 81 +++++------ .../post.pyi | 81 +++++------ .../post.py | 81 +++++------ .../post.pyi | 81 +++++------ .../post.py | 81 +++++------ .../post.pyi | 81 +++++------ .../post.py | 81 +++++------ .../post.pyi | 81 +++++------ .../post.py | 81 +++++------ .../post.pyi | 81 +++++------ .../post.py | 81 +++++------ .../post.pyi | 81 +++++------ .../post.py | 81 +++++------ .../post.pyi | 81 +++++------ .../post.py | 81 +++++------ .../post.pyi | 81 +++++------ .../post.py | 81 +++++------ .../post.pyi | 81 +++++------ .../post.py | 81 +++++------ .../post.pyi | 81 +++++------ .../post.py | 81 +++++------ .../post.pyi | 81 +++++------ .../post.py | 81 +++++------ .../post.pyi | 81 +++++------ .../post.py | 81 +++++------ .../post.pyi | 81 +++++------ .../post.py | 81 +++++------ .../post.pyi | 81 +++++------ .../post.py | 81 +++++------ .../post.pyi | 81 +++++------ .../post.py | 81 +++++------ .../post.pyi | 81 +++++------ .../post.py | 81 +++++------ .../post.pyi | 81 +++++------ .../post.py | 81 +++++------ .../post.pyi | 81 +++++------ .../post.py | 81 +++++------ .../post.pyi | 81 +++++------ .../post.py | 81 +++++------ .../post.pyi | 81 +++++------ .../post.py | 81 +++++------ .../post.pyi | 81 +++++------ .../post.py | 81 +++++------ .../post.pyi | 81 +++++------ .../post.py | 81 +++++------ .../post.pyi | 81 +++++------ .../post.py | 81 +++++------ .../post.pyi | 81 +++++------ .../post.py | 81 +++++------ .../post.pyi | 81 +++++------ .../post.py | 81 +++++------ .../post.pyi | 81 +++++------ .../post.py | 81 +++++------ .../post.pyi | 81 +++++------ .../post.py | 81 +++++------ .../post.pyi | 81 +++++------ .../post.py | 81 +++++------ .../post.pyi | 81 +++++------ .../post.py | 81 +++++------ .../post.pyi | 81 +++++------ .../python/petstore_api/api_client.py | 9 +- .../paths/another_fake_dummy/patch.py | 111 +++++++------- .../paths/another_fake_dummy/patch.pyi | 111 +++++++------- .../python/petstore_api/paths/fake/delete.py | 81 +++++------ .../python/petstore_api/paths/fake/delete.pyi | 81 +++++------ .../python/petstore_api/paths/fake/get.py | 120 +++++++--------- .../python/petstore_api/paths/fake/get.pyi | 120 +++++++--------- .../python/petstore_api/paths/fake/patch.py | 111 +++++++------- .../python/petstore_api/paths/fake/patch.pyi | 111 +++++++------- .../python/petstore_api/paths/fake/post.py | 108 ++++++-------- .../python/petstore_api/paths/fake/post.pyi | 108 ++++++-------- .../get.py | 111 +++++++------- .../get.pyi | 111 +++++++------- .../paths/fake_body_with_file_schema/put.py | 105 +++++++------- .../paths/fake_body_with_file_schema/put.pyi | 105 +++++++------- .../paths/fake_body_with_query_params/put.py | 111 +++++++------- .../paths/fake_body_with_query_params/put.pyi | 111 +++++++------- .../paths/fake_case_sensitive_params/put.py | 81 +++++------ .../paths/fake_case_sensitive_params/put.pyi | 81 +++++------ .../paths/fake_classname_test/patch.py | 111 +++++++------- .../paths/fake_classname_test/patch.pyi | 111 +++++++------- .../paths/fake_delete_coffee_id/delete.py | 84 +++++------ .../paths/fake_delete_coffee_id/delete.pyi | 84 +++++------ .../petstore_api/paths/fake_health/get.py | 81 +++++------ .../petstore_api/paths/fake_health/get.pyi | 81 +++++------ .../fake_inline_additional_properties/post.py | 105 +++++++------- .../post.pyi | 105 +++++++------- .../paths/fake_inline_composition_/post.py | 117 +++++++-------- .../paths/fake_inline_composition_/post.pyi | 117 +++++++-------- .../paths/fake_json_form_data/get.py | 105 +++++++------- .../paths/fake_json_form_data/get.pyi | 105 +++++++------- .../paths/fake_json_patch/patch.py | 105 +++++++------- .../paths/fake_json_patch/patch.pyi | 105 +++++++------- .../paths/fake_json_with_charset/post.py | 111 +++++++------- .../paths/fake_json_with_charset/post.pyi | 111 +++++++------- .../paths/fake_obj_in_query/get.py | 81 +++++------ .../paths/fake_obj_in_query/get.pyi | 81 +++++------ .../post.py | 135 ++++++++---------- .../post.pyi | 135 ++++++++---------- .../post.py | 117 +++++++-------- .../post.pyi | 117 +++++++-------- .../paths/fake_ref_obj_in_query/get.py | 81 +++++------ .../paths/fake_ref_obj_in_query/get.pyi | 81 +++++------ .../paths/fake_refs_array_of_enums/post.py | 111 +++++++------- .../paths/fake_refs_array_of_enums/post.pyi | 111 +++++++------- .../paths/fake_refs_arraymodel/post.py | 111 +++++++------- .../paths/fake_refs_arraymodel/post.pyi | 111 +++++++------- .../paths/fake_refs_boolean/post.py | 111 +++++++------- .../paths/fake_refs_boolean/post.pyi | 111 +++++++------- .../post.py | 111 +++++++------- .../post.pyi | 111 +++++++------- .../petstore_api/paths/fake_refs_enum/post.py | 111 +++++++------- .../paths/fake_refs_enum/post.pyi | 111 +++++++------- .../paths/fake_refs_mammal/post.py | 111 +++++++------- .../paths/fake_refs_mammal/post.pyi | 111 +++++++------- .../paths/fake_refs_number/post.py | 111 +++++++------- .../paths/fake_refs_number/post.pyi | 111 +++++++------- .../post.py | 111 +++++++------- .../post.pyi | 111 +++++++------- .../paths/fake_refs_string/post.py | 111 +++++++------- .../paths/fake_refs_string/post.pyi | 111 +++++++------- .../paths/fake_response_without_schema/get.py | 81 +++++------ .../fake_response_without_schema/get.pyi | 81 +++++------ .../paths/fake_test_query_paramters/put.py | 81 +++++------ .../paths/fake_test_query_paramters/put.pyi | 81 +++++------ .../paths/fake_upload_download_file/post.py | 111 +++++++------- .../paths/fake_upload_download_file/post.pyi | 111 +++++++------- .../paths/fake_upload_file/post.py | 111 +++++++------- .../paths/fake_upload_file/post.pyi | 111 +++++++------- .../paths/fake_upload_files/post.py | 111 +++++++------- .../paths/fake_upload_files/post.pyi | 111 +++++++------- .../python/petstore_api/paths/foo/get.py | 69 ++++----- .../python/petstore_api/paths/foo/get.pyi | 69 ++++----- .../python/petstore_api/paths/pet/post.py | 120 +++++++--------- .../python/petstore_api/paths/pet/post.pyi | 120 +++++++--------- .../python/petstore_api/paths/pet/put.py | 123 ++++++---------- .../python/petstore_api/paths/pet/put.pyi | 123 ++++++---------- .../paths/pet_find_by_status/get.py | 96 +++++-------- .../paths/pet_find_by_status/get.pyi | 96 +++++-------- .../paths/pet_find_by_tags/get.py | 96 +++++-------- .../paths/pet_find_by_tags/get.pyi | 96 +++++-------- .../petstore_api/paths/pet_pet_id/delete.py | 81 +++++------ .../petstore_api/paths/pet_pet_id/delete.pyi | 81 +++++------ .../petstore_api/paths/pet_pet_id/get.py | 105 +++++--------- .../petstore_api/paths/pet_pet_id/get.pyi | 105 +++++--------- .../petstore_api/paths/pet_pet_id/post.py | 105 ++++++-------- .../petstore_api/paths/pet_pet_id/post.pyi | 105 ++++++-------- .../paths/pet_pet_id_upload_image/post.py | 117 +++++++-------- .../paths/pet_pet_id_upload_image/post.pyi | 117 +++++++-------- .../petstore_api/paths/store_inventory/get.py | 81 +++++------ .../paths/store_inventory/get.pyi | 81 +++++------ .../petstore_api/paths/store_order/post.py | 120 +++++++--------- .../petstore_api/paths/store_order/post.pyi | 120 +++++++--------- .../paths/store_order_order_id/delete.py | 84 ++++------- .../paths/store_order_order_id/delete.pyi | 84 ++++------- .../paths/store_order_order_id/get.py | 105 +++++--------- .../paths/store_order_order_id/get.pyi | 105 +++++--------- .../python/petstore_api/paths/user/post.py | 93 ++++++------ .../python/petstore_api/paths/user/post.pyi | 93 ++++++------ .../paths/user_create_with_array/post.py | 93 ++++++------ .../paths/user_create_with_array/post.pyi | 93 ++++++------ .../paths/user_create_with_list/post.py | 93 ++++++------ .../paths/user_create_with_list/post.pyi | 93 ++++++------ .../petstore_api/paths/user_login/get.py | 96 +++++-------- .../petstore_api/paths/user_login/get.pyi | 96 +++++-------- .../petstore_api/paths/user_logout/get.py | 63 ++++---- .../petstore_api/paths/user_logout/get.pyi | 63 ++++---- .../paths/user_username/delete.py | 84 ++++------- .../paths/user_username/delete.pyi | 84 ++++------- .../petstore_api/paths/user_username/get.py | 105 +++++--------- .../petstore_api/paths/user_username/get.pyi | 105 +++++--------- .../petstore_api/paths/user_username/put.py | 114 ++++++--------- .../petstore_api/paths/user_username/put.pyi | 114 ++++++--------- 462 files changed, 19608 insertions(+), 24192 deletions(-) diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/api_client.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/api_client.py index d07a56a5083..e1de9fcc9c6 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/api_client.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/api_client.py @@ -816,16 +816,13 @@ def _content_type_is_json(cls, content_type: str) -> bool: return True return False -Response_T = typing.TypeVar("Response_T", bound=ApiResponse) - -class OpenApiResponse(JSONDetector, typing.Generic[Response_T]): - response_cls: typing.Type[Response_T] +class OpenApiResponse(JSONDetector): __filename_content_disposition_pattern = re.compile('filename="(.+?)"') def __init__( self, - response_cls: typing.Type[Response_T] = ApiResponse, + response_cls: typing.Type[ApiResponse] = ApiResponse, content: typing.Optional[typing.Dict[str, MediaType]] = None, headers: typing.Optional[typing.List[HeaderParameter]] = None, ): @@ -910,7 +907,7 @@ def __deserialize_multipart_form_data( for part in msg.get_payload() } - def deserialize(self, response: urllib3.HTTPResponse, configuration: Configuration) -> Response_T: + def deserialize(self, response: urllib3.HTTPResponse, configuration: Configuration) -> ApiResponse: content_type = response.getheader('content-type') deserialized_body = unset streamed = response.supports_chunked_reads() diff --git a/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 b/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 index ad9a472bb05..c1f4ada281d 100644 --- a/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 +++ b/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 @@ -61,21 +61,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_additionalproperties_allows_a_schema_which_should_validate_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_additionalproperties_allows_a_schema_which_should_validate_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -85,29 +85,26 @@ def _post_additionalproperties_allows_a_schema_which_should_validate_request_bod @typing.overload def _post_additionalproperties_allows_a_schema_which_should_validate_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_additionalproperties_allows_a_schema_which_should_validate_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -159,21 +156,21 @@ class PostAdditionalpropertiesAllowsASchemaWhichShouldValidateRequestBody(BaseAp @typing.overload def post_additionalproperties_allows_a_schema_which_should_validate_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_additionalproperties_allows_a_schema_which_should_validate_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -183,29 +180,26 @@ def post_additionalproperties_allows_a_schema_which_should_validate_request_body @typing.overload def post_additionalproperties_allows_a_schema_which_should_validate_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_additionalproperties_allows_a_schema_which_should_validate_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_additionalproperties_allows_a_schema_which_should_validate_request_body_oapg( body=body, content_type=content_type, @@ -220,21 +214,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -244,29 +238,26 @@ def post( @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_additionalproperties_allows_a_schema_which_should_validate_request_body_oapg( body=body, content_type=content_type, diff --git a/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 b/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 index 919e22c2767..63d5ca2d373 100644 --- a/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 +++ b/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 @@ -35,21 +35,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_additionalproperties_allows_a_schema_which_should_validate_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_additionalproperties_allows_a_schema_which_should_validate_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,29 +59,26 @@ class BaseApi(api_client.Api): @typing.overload def _post_additionalproperties_allows_a_schema_which_should_validate_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_additionalproperties_allows_a_schema_which_should_validate_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -133,21 +130,21 @@ class PostAdditionalpropertiesAllowsASchemaWhichShouldValidateRequestBody(BaseAp @typing.overload def post_additionalproperties_allows_a_schema_which_should_validate_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_additionalproperties_allows_a_schema_which_should_validate_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -157,29 +154,26 @@ class PostAdditionalpropertiesAllowsASchemaWhichShouldValidateRequestBody(BaseAp @typing.overload def post_additionalproperties_allows_a_schema_which_should_validate_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_additionalproperties_allows_a_schema_which_should_validate_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_additionalproperties_allows_a_schema_which_should_validate_request_body_oapg( body=body, content_type=content_type, @@ -194,21 +188,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -218,29 +212,26 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_additionalproperties_allows_a_schema_which_should_validate_request_body_oapg( body=body, content_type=content_type, diff --git a/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 b/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 index 9ef2a4b0540..f414126f954 100644 --- a/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 +++ b/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 @@ -61,21 +61,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_additionalproperties_are_allowed_by_default_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_additionalproperties_are_allowed_by_default_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -85,29 +85,26 @@ def _post_additionalproperties_are_allowed_by_default_request_body_oapg( @typing.overload def _post_additionalproperties_are_allowed_by_default_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_additionalproperties_are_allowed_by_default_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -159,21 +156,21 @@ class PostAdditionalpropertiesAreAllowedByDefaultRequestBody(BaseApi): @typing.overload def post_additionalproperties_are_allowed_by_default_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_additionalproperties_are_allowed_by_default_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -183,29 +180,26 @@ def post_additionalproperties_are_allowed_by_default_request_body( @typing.overload def post_additionalproperties_are_allowed_by_default_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_additionalproperties_are_allowed_by_default_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_additionalproperties_are_allowed_by_default_request_body_oapg( body=body, content_type=content_type, @@ -220,21 +214,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -244,29 +238,26 @@ def post( @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_additionalproperties_are_allowed_by_default_request_body_oapg( body=body, content_type=content_type, diff --git a/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 b/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 index 27df8ebfd9e..ee8204d05bf 100644 --- a/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 +++ b/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 @@ -35,21 +35,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_additionalproperties_are_allowed_by_default_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_additionalproperties_are_allowed_by_default_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,29 +59,26 @@ class BaseApi(api_client.Api): @typing.overload def _post_additionalproperties_are_allowed_by_default_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_additionalproperties_are_allowed_by_default_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -133,21 +130,21 @@ class PostAdditionalpropertiesAreAllowedByDefaultRequestBody(BaseApi): @typing.overload def post_additionalproperties_are_allowed_by_default_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_additionalproperties_are_allowed_by_default_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -157,29 +154,26 @@ class PostAdditionalpropertiesAreAllowedByDefaultRequestBody(BaseApi): @typing.overload def post_additionalproperties_are_allowed_by_default_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_additionalproperties_are_allowed_by_default_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_additionalproperties_are_allowed_by_default_request_body_oapg( body=body, content_type=content_type, @@ -194,21 +188,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -218,29 +212,26 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_additionalproperties_are_allowed_by_default_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post.py index 5ec90b556e6..c033b0cd25a 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post.py @@ -61,21 +61,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_additionalproperties_can_exist_by_itself_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_additionalproperties_can_exist_by_itself_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -85,29 +85,26 @@ def _post_additionalproperties_can_exist_by_itself_request_body_oapg( @typing.overload def _post_additionalproperties_can_exist_by_itself_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_additionalproperties_can_exist_by_itself_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -159,21 +156,21 @@ class PostAdditionalpropertiesCanExistByItselfRequestBody(BaseApi): @typing.overload def post_additionalproperties_can_exist_by_itself_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_additionalproperties_can_exist_by_itself_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -183,29 +180,26 @@ def post_additionalproperties_can_exist_by_itself_request_body( @typing.overload def post_additionalproperties_can_exist_by_itself_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_additionalproperties_can_exist_by_itself_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_additionalproperties_can_exist_by_itself_request_body_oapg( body=body, content_type=content_type, @@ -220,21 +214,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -244,29 +238,26 @@ def post( @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_additionalproperties_can_exist_by_itself_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post.pyi index a58d3b99bb2..52b2d83f316 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post.pyi @@ -35,21 +35,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_additionalproperties_can_exist_by_itself_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_additionalproperties_can_exist_by_itself_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,29 +59,26 @@ class BaseApi(api_client.Api): @typing.overload def _post_additionalproperties_can_exist_by_itself_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_additionalproperties_can_exist_by_itself_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -133,21 +130,21 @@ class PostAdditionalpropertiesCanExistByItselfRequestBody(BaseApi): @typing.overload def post_additionalproperties_can_exist_by_itself_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_additionalproperties_can_exist_by_itself_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -157,29 +154,26 @@ class PostAdditionalpropertiesCanExistByItselfRequestBody(BaseApi): @typing.overload def post_additionalproperties_can_exist_by_itself_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_additionalproperties_can_exist_by_itself_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_additionalproperties_can_exist_by_itself_request_body_oapg( body=body, content_type=content_type, @@ -194,21 +188,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -218,29 +212,26 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_additionalproperties_can_exist_by_itself_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_should_not_look_in_applicators_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_should_not_look_in_applicators_request_body/post.py index bbb5ed5e127..7517767744e 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_should_not_look_in_applicators_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_should_not_look_in_applicators_request_body/post.py @@ -61,21 +61,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_additionalproperties_should_not_look_in_applicators_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_additionalproperties_should_not_look_in_applicators_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -85,29 +85,26 @@ def _post_additionalproperties_should_not_look_in_applicators_request_body_oapg( @typing.overload def _post_additionalproperties_should_not_look_in_applicators_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_additionalproperties_should_not_look_in_applicators_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -159,21 +156,21 @@ class PostAdditionalpropertiesShouldNotLookInApplicatorsRequestBody(BaseApi): @typing.overload def post_additionalproperties_should_not_look_in_applicators_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_additionalproperties_should_not_look_in_applicators_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -183,29 +180,26 @@ def post_additionalproperties_should_not_look_in_applicators_request_body( @typing.overload def post_additionalproperties_should_not_look_in_applicators_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_additionalproperties_should_not_look_in_applicators_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_additionalproperties_should_not_look_in_applicators_request_body_oapg( body=body, content_type=content_type, @@ -220,21 +214,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -244,29 +238,26 @@ def post( @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_additionalproperties_should_not_look_in_applicators_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_should_not_look_in_applicators_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_should_not_look_in_applicators_request_body/post.pyi index 4ae645ede0f..d38e5ee139f 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_should_not_look_in_applicators_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_should_not_look_in_applicators_request_body/post.pyi @@ -35,21 +35,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_additionalproperties_should_not_look_in_applicators_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_additionalproperties_should_not_look_in_applicators_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,29 +59,26 @@ class BaseApi(api_client.Api): @typing.overload def _post_additionalproperties_should_not_look_in_applicators_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_additionalproperties_should_not_look_in_applicators_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -133,21 +130,21 @@ class PostAdditionalpropertiesShouldNotLookInApplicatorsRequestBody(BaseApi): @typing.overload def post_additionalproperties_should_not_look_in_applicators_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_additionalproperties_should_not_look_in_applicators_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -157,29 +154,26 @@ class PostAdditionalpropertiesShouldNotLookInApplicatorsRequestBody(BaseApi): @typing.overload def post_additionalproperties_should_not_look_in_applicators_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_additionalproperties_should_not_look_in_applicators_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_additionalproperties_should_not_look_in_applicators_request_body_oapg( body=body, content_type=content_type, @@ -194,21 +188,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -218,29 +212,26 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_additionalproperties_should_not_look_in_applicators_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post.py index 6a6f1bd5bf7..36606757c8d 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post.py @@ -61,21 +61,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_allof_combined_with_anyof_oneof_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_allof_combined_with_anyof_oneof_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -85,29 +85,26 @@ def _post_allof_combined_with_anyof_oneof_request_body_oapg( @typing.overload def _post_allof_combined_with_anyof_oneof_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_allof_combined_with_anyof_oneof_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -159,21 +156,21 @@ class PostAllofCombinedWithAnyofOneofRequestBody(BaseApi): @typing.overload def post_allof_combined_with_anyof_oneof_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_allof_combined_with_anyof_oneof_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -183,29 +180,26 @@ def post_allof_combined_with_anyof_oneof_request_body( @typing.overload def post_allof_combined_with_anyof_oneof_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_allof_combined_with_anyof_oneof_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_allof_combined_with_anyof_oneof_request_body_oapg( body=body, content_type=content_type, @@ -220,21 +214,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -244,29 +238,26 @@ def post( @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_allof_combined_with_anyof_oneof_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post.pyi index 0b5a1be0bbc..79e7f5be5bd 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post.pyi @@ -35,21 +35,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_allof_combined_with_anyof_oneof_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_allof_combined_with_anyof_oneof_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,29 +59,26 @@ class BaseApi(api_client.Api): @typing.overload def _post_allof_combined_with_anyof_oneof_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_allof_combined_with_anyof_oneof_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -133,21 +130,21 @@ class PostAllofCombinedWithAnyofOneofRequestBody(BaseApi): @typing.overload def post_allof_combined_with_anyof_oneof_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_allof_combined_with_anyof_oneof_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -157,29 +154,26 @@ class PostAllofCombinedWithAnyofOneofRequestBody(BaseApi): @typing.overload def post_allof_combined_with_anyof_oneof_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_allof_combined_with_anyof_oneof_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_allof_combined_with_anyof_oneof_request_body_oapg( body=body, content_type=content_type, @@ -194,21 +188,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -218,29 +212,26 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_allof_combined_with_anyof_oneof_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_request_body/post.py index 51550fb73bb..bd2ce78f547 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_request_body/post.py @@ -61,21 +61,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_allof_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_allof_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -85,29 +85,26 @@ def _post_allof_request_body_oapg( @typing.overload def _post_allof_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_allof_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -159,21 +156,21 @@ class PostAllofRequestBody(BaseApi): @typing.overload def post_allof_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_allof_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -183,29 +180,26 @@ def post_allof_request_body( @typing.overload def post_allof_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_allof_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_allof_request_body_oapg( body=body, content_type=content_type, @@ -220,21 +214,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -244,29 +238,26 @@ def post( @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_allof_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_request_body/post.pyi index c9727570a31..6fe9186c274 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_request_body/post.pyi @@ -35,21 +35,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_allof_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_allof_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,29 +59,26 @@ class BaseApi(api_client.Api): @typing.overload def _post_allof_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_allof_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -133,21 +130,21 @@ class PostAllofRequestBody(BaseApi): @typing.overload def post_allof_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_allof_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -157,29 +154,26 @@ class PostAllofRequestBody(BaseApi): @typing.overload def post_allof_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_allof_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_allof_request_body_oapg( body=body, content_type=content_type, @@ -194,21 +188,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -218,29 +212,26 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_allof_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_simple_types_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_simple_types_request_body/post.py index 067f83b7cf0..566077192af 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_simple_types_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_simple_types_request_body/post.py @@ -61,21 +61,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_allof_simple_types_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_allof_simple_types_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -85,29 +85,26 @@ def _post_allof_simple_types_request_body_oapg( @typing.overload def _post_allof_simple_types_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_allof_simple_types_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -159,21 +156,21 @@ class PostAllofSimpleTypesRequestBody(BaseApi): @typing.overload def post_allof_simple_types_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_allof_simple_types_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -183,29 +180,26 @@ def post_allof_simple_types_request_body( @typing.overload def post_allof_simple_types_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_allof_simple_types_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_allof_simple_types_request_body_oapg( body=body, content_type=content_type, @@ -220,21 +214,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -244,29 +238,26 @@ def post( @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_allof_simple_types_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_simple_types_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_simple_types_request_body/post.pyi index dcda4c17e85..65cb0c58043 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_simple_types_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_simple_types_request_body/post.pyi @@ -35,21 +35,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_allof_simple_types_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_allof_simple_types_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,29 +59,26 @@ class BaseApi(api_client.Api): @typing.overload def _post_allof_simple_types_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_allof_simple_types_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -133,21 +130,21 @@ class PostAllofSimpleTypesRequestBody(BaseApi): @typing.overload def post_allof_simple_types_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_allof_simple_types_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -157,29 +154,26 @@ class PostAllofSimpleTypesRequestBody(BaseApi): @typing.overload def post_allof_simple_types_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_allof_simple_types_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_allof_simple_types_request_body_oapg( body=body, content_type=content_type, @@ -194,21 +188,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -218,29 +212,26 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_allof_simple_types_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_base_schema_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_base_schema_request_body/post.py index 5a0c9b04c7f..11f851d706c 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_base_schema_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_base_schema_request_body/post.py @@ -61,21 +61,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_allof_with_base_schema_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_allof_with_base_schema_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -85,29 +85,26 @@ def _post_allof_with_base_schema_request_body_oapg( @typing.overload def _post_allof_with_base_schema_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_allof_with_base_schema_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -159,21 +156,21 @@ class PostAllofWithBaseSchemaRequestBody(BaseApi): @typing.overload def post_allof_with_base_schema_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_allof_with_base_schema_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -183,29 +180,26 @@ def post_allof_with_base_schema_request_body( @typing.overload def post_allof_with_base_schema_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_allof_with_base_schema_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_allof_with_base_schema_request_body_oapg( body=body, content_type=content_type, @@ -220,21 +214,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -244,29 +238,26 @@ def post( @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_allof_with_base_schema_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_base_schema_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_base_schema_request_body/post.pyi index 50238230626..22150c5dab7 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_base_schema_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_base_schema_request_body/post.pyi @@ -35,21 +35,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_allof_with_base_schema_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_allof_with_base_schema_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,29 +59,26 @@ class BaseApi(api_client.Api): @typing.overload def _post_allof_with_base_schema_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_allof_with_base_schema_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -133,21 +130,21 @@ class PostAllofWithBaseSchemaRequestBody(BaseApi): @typing.overload def post_allof_with_base_schema_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_allof_with_base_schema_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -157,29 +154,26 @@ class PostAllofWithBaseSchemaRequestBody(BaseApi): @typing.overload def post_allof_with_base_schema_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_allof_with_base_schema_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_allof_with_base_schema_request_body_oapg( body=body, content_type=content_type, @@ -194,21 +188,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -218,29 +212,26 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_allof_with_base_schema_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_one_empty_schema_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_one_empty_schema_request_body/post.py index 3ba28823aa0..2dec41c9e41 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_one_empty_schema_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_one_empty_schema_request_body/post.py @@ -61,21 +61,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_allof_with_one_empty_schema_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_allof_with_one_empty_schema_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -85,29 +85,26 @@ def _post_allof_with_one_empty_schema_request_body_oapg( @typing.overload def _post_allof_with_one_empty_schema_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_allof_with_one_empty_schema_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -159,21 +156,21 @@ class PostAllofWithOneEmptySchemaRequestBody(BaseApi): @typing.overload def post_allof_with_one_empty_schema_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_allof_with_one_empty_schema_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -183,29 +180,26 @@ def post_allof_with_one_empty_schema_request_body( @typing.overload def post_allof_with_one_empty_schema_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_allof_with_one_empty_schema_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_allof_with_one_empty_schema_request_body_oapg( body=body, content_type=content_type, @@ -220,21 +214,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -244,29 +238,26 @@ def post( @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_allof_with_one_empty_schema_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_one_empty_schema_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_one_empty_schema_request_body/post.pyi index 5fe9c9fe2cf..dda432f3151 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_one_empty_schema_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_one_empty_schema_request_body/post.pyi @@ -35,21 +35,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_allof_with_one_empty_schema_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_allof_with_one_empty_schema_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,29 +59,26 @@ class BaseApi(api_client.Api): @typing.overload def _post_allof_with_one_empty_schema_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_allof_with_one_empty_schema_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -133,21 +130,21 @@ class PostAllofWithOneEmptySchemaRequestBody(BaseApi): @typing.overload def post_allof_with_one_empty_schema_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_allof_with_one_empty_schema_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -157,29 +154,26 @@ class PostAllofWithOneEmptySchemaRequestBody(BaseApi): @typing.overload def post_allof_with_one_empty_schema_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_allof_with_one_empty_schema_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_allof_with_one_empty_schema_request_body_oapg( body=body, content_type=content_type, @@ -194,21 +188,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -218,29 +212,26 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_allof_with_one_empty_schema_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post.py index caec07c871a..d317dc88dec 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post.py @@ -61,21 +61,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_allof_with_the_first_empty_schema_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_allof_with_the_first_empty_schema_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -85,29 +85,26 @@ def _post_allof_with_the_first_empty_schema_request_body_oapg( @typing.overload def _post_allof_with_the_first_empty_schema_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_allof_with_the_first_empty_schema_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -159,21 +156,21 @@ class PostAllofWithTheFirstEmptySchemaRequestBody(BaseApi): @typing.overload def post_allof_with_the_first_empty_schema_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_allof_with_the_first_empty_schema_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -183,29 +180,26 @@ def post_allof_with_the_first_empty_schema_request_body( @typing.overload def post_allof_with_the_first_empty_schema_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_allof_with_the_first_empty_schema_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_allof_with_the_first_empty_schema_request_body_oapg( body=body, content_type=content_type, @@ -220,21 +214,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -244,29 +238,26 @@ def post( @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_allof_with_the_first_empty_schema_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post.pyi index 7ca0d1373b6..fc5f7e2fce1 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post.pyi @@ -35,21 +35,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_allof_with_the_first_empty_schema_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_allof_with_the_first_empty_schema_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,29 +59,26 @@ class BaseApi(api_client.Api): @typing.overload def _post_allof_with_the_first_empty_schema_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_allof_with_the_first_empty_schema_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -133,21 +130,21 @@ class PostAllofWithTheFirstEmptySchemaRequestBody(BaseApi): @typing.overload def post_allof_with_the_first_empty_schema_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_allof_with_the_first_empty_schema_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -157,29 +154,26 @@ class PostAllofWithTheFirstEmptySchemaRequestBody(BaseApi): @typing.overload def post_allof_with_the_first_empty_schema_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_allof_with_the_first_empty_schema_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_allof_with_the_first_empty_schema_request_body_oapg( body=body, content_type=content_type, @@ -194,21 +188,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -218,29 +212,26 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_allof_with_the_first_empty_schema_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post.py index 9046c0c244f..7ac5ea4cd54 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post.py @@ -61,21 +61,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_allof_with_the_last_empty_schema_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_allof_with_the_last_empty_schema_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -85,29 +85,26 @@ def _post_allof_with_the_last_empty_schema_request_body_oapg( @typing.overload def _post_allof_with_the_last_empty_schema_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_allof_with_the_last_empty_schema_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -159,21 +156,21 @@ class PostAllofWithTheLastEmptySchemaRequestBody(BaseApi): @typing.overload def post_allof_with_the_last_empty_schema_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_allof_with_the_last_empty_schema_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -183,29 +180,26 @@ def post_allof_with_the_last_empty_schema_request_body( @typing.overload def post_allof_with_the_last_empty_schema_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_allof_with_the_last_empty_schema_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_allof_with_the_last_empty_schema_request_body_oapg( body=body, content_type=content_type, @@ -220,21 +214,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -244,29 +238,26 @@ def post( @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_allof_with_the_last_empty_schema_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post.pyi index bb974bf9b42..4ad3f707042 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post.pyi @@ -35,21 +35,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_allof_with_the_last_empty_schema_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_allof_with_the_last_empty_schema_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,29 +59,26 @@ class BaseApi(api_client.Api): @typing.overload def _post_allof_with_the_last_empty_schema_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_allof_with_the_last_empty_schema_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -133,21 +130,21 @@ class PostAllofWithTheLastEmptySchemaRequestBody(BaseApi): @typing.overload def post_allof_with_the_last_empty_schema_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_allof_with_the_last_empty_schema_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -157,29 +154,26 @@ class PostAllofWithTheLastEmptySchemaRequestBody(BaseApi): @typing.overload def post_allof_with_the_last_empty_schema_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_allof_with_the_last_empty_schema_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_allof_with_the_last_empty_schema_request_body_oapg( body=body, content_type=content_type, @@ -194,21 +188,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -218,29 +212,26 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_allof_with_the_last_empty_schema_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post.py index 286a8403896..1c65de04a98 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post.py @@ -61,21 +61,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_allof_with_two_empty_schemas_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_allof_with_two_empty_schemas_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -85,29 +85,26 @@ def _post_allof_with_two_empty_schemas_request_body_oapg( @typing.overload def _post_allof_with_two_empty_schemas_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_allof_with_two_empty_schemas_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -159,21 +156,21 @@ class PostAllofWithTwoEmptySchemasRequestBody(BaseApi): @typing.overload def post_allof_with_two_empty_schemas_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_allof_with_two_empty_schemas_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -183,29 +180,26 @@ def post_allof_with_two_empty_schemas_request_body( @typing.overload def post_allof_with_two_empty_schemas_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_allof_with_two_empty_schemas_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_allof_with_two_empty_schemas_request_body_oapg( body=body, content_type=content_type, @@ -220,21 +214,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -244,29 +238,26 @@ def post( @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_allof_with_two_empty_schemas_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post.pyi index 726e607c704..03b8372ce1c 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post.pyi @@ -35,21 +35,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_allof_with_two_empty_schemas_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_allof_with_two_empty_schemas_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,29 +59,26 @@ class BaseApi(api_client.Api): @typing.overload def _post_allof_with_two_empty_schemas_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_allof_with_two_empty_schemas_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -133,21 +130,21 @@ class PostAllofWithTwoEmptySchemasRequestBody(BaseApi): @typing.overload def post_allof_with_two_empty_schemas_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_allof_with_two_empty_schemas_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -157,29 +154,26 @@ class PostAllofWithTwoEmptySchemasRequestBody(BaseApi): @typing.overload def post_allof_with_two_empty_schemas_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_allof_with_two_empty_schemas_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_allof_with_two_empty_schemas_request_body_oapg( body=body, content_type=content_type, @@ -194,21 +188,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -218,29 +212,26 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_allof_with_two_empty_schemas_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_complex_types_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_complex_types_request_body/post.py index 3131ebf5714..adc072324dc 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_complex_types_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_complex_types_request_body/post.py @@ -61,21 +61,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_anyof_complex_types_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_anyof_complex_types_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -85,29 +85,26 @@ def _post_anyof_complex_types_request_body_oapg( @typing.overload def _post_anyof_complex_types_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_anyof_complex_types_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -159,21 +156,21 @@ class PostAnyofComplexTypesRequestBody(BaseApi): @typing.overload def post_anyof_complex_types_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_anyof_complex_types_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -183,29 +180,26 @@ def post_anyof_complex_types_request_body( @typing.overload def post_anyof_complex_types_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_anyof_complex_types_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_anyof_complex_types_request_body_oapg( body=body, content_type=content_type, @@ -220,21 +214,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -244,29 +238,26 @@ def post( @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_anyof_complex_types_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_complex_types_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_complex_types_request_body/post.pyi index 6a327efff90..56407ebc631 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_complex_types_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_complex_types_request_body/post.pyi @@ -35,21 +35,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_anyof_complex_types_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_anyof_complex_types_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,29 +59,26 @@ class BaseApi(api_client.Api): @typing.overload def _post_anyof_complex_types_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_anyof_complex_types_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -133,21 +130,21 @@ class PostAnyofComplexTypesRequestBody(BaseApi): @typing.overload def post_anyof_complex_types_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_anyof_complex_types_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -157,29 +154,26 @@ class PostAnyofComplexTypesRequestBody(BaseApi): @typing.overload def post_anyof_complex_types_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_anyof_complex_types_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_anyof_complex_types_request_body_oapg( body=body, content_type=content_type, @@ -194,21 +188,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -218,29 +212,26 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_anyof_complex_types_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_request_body/post.py index 8ce4296f110..9bd7dc27772 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_request_body/post.py @@ -61,21 +61,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_anyof_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_anyof_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -85,29 +85,26 @@ def _post_anyof_request_body_oapg( @typing.overload def _post_anyof_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_anyof_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -159,21 +156,21 @@ class PostAnyofRequestBody(BaseApi): @typing.overload def post_anyof_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_anyof_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -183,29 +180,26 @@ def post_anyof_request_body( @typing.overload def post_anyof_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_anyof_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_anyof_request_body_oapg( body=body, content_type=content_type, @@ -220,21 +214,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -244,29 +238,26 @@ def post( @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_anyof_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_request_body/post.pyi index a2988592dcb..816706a4ef9 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_request_body/post.pyi @@ -35,21 +35,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_anyof_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_anyof_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,29 +59,26 @@ class BaseApi(api_client.Api): @typing.overload def _post_anyof_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_anyof_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -133,21 +130,21 @@ class PostAnyofRequestBody(BaseApi): @typing.overload def post_anyof_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_anyof_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -157,29 +154,26 @@ class PostAnyofRequestBody(BaseApi): @typing.overload def post_anyof_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_anyof_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_anyof_request_body_oapg( body=body, content_type=content_type, @@ -194,21 +188,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -218,29 +212,26 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_anyof_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_with_base_schema_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_with_base_schema_request_body/post.py index 7256aef1ef1..2d131cdeebd 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_with_base_schema_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_with_base_schema_request_body/post.py @@ -61,21 +61,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_anyof_with_base_schema_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_anyof_with_base_schema_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -85,29 +85,26 @@ def _post_anyof_with_base_schema_request_body_oapg( @typing.overload def _post_anyof_with_base_schema_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_anyof_with_base_schema_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -159,21 +156,21 @@ class PostAnyofWithBaseSchemaRequestBody(BaseApi): @typing.overload def post_anyof_with_base_schema_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_anyof_with_base_schema_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -183,29 +180,26 @@ def post_anyof_with_base_schema_request_body( @typing.overload def post_anyof_with_base_schema_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_anyof_with_base_schema_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_anyof_with_base_schema_request_body_oapg( body=body, content_type=content_type, @@ -220,21 +214,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -244,29 +238,26 @@ def post( @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_anyof_with_base_schema_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_with_base_schema_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_with_base_schema_request_body/post.pyi index 3025f688460..61bb5491245 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_with_base_schema_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_with_base_schema_request_body/post.pyi @@ -35,21 +35,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_anyof_with_base_schema_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_anyof_with_base_schema_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,29 +59,26 @@ class BaseApi(api_client.Api): @typing.overload def _post_anyof_with_base_schema_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_anyof_with_base_schema_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -133,21 +130,21 @@ class PostAnyofWithBaseSchemaRequestBody(BaseApi): @typing.overload def post_anyof_with_base_schema_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_anyof_with_base_schema_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -157,29 +154,26 @@ class PostAnyofWithBaseSchemaRequestBody(BaseApi): @typing.overload def post_anyof_with_base_schema_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_anyof_with_base_schema_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_anyof_with_base_schema_request_body_oapg( body=body, content_type=content_type, @@ -194,21 +188,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -218,29 +212,26 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_anyof_with_base_schema_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_with_one_empty_schema_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_with_one_empty_schema_request_body/post.py index 2a32844ed8d..9cb217b32cd 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_with_one_empty_schema_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_with_one_empty_schema_request_body/post.py @@ -61,21 +61,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_anyof_with_one_empty_schema_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_anyof_with_one_empty_schema_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -85,29 +85,26 @@ def _post_anyof_with_one_empty_schema_request_body_oapg( @typing.overload def _post_anyof_with_one_empty_schema_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_anyof_with_one_empty_schema_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -159,21 +156,21 @@ class PostAnyofWithOneEmptySchemaRequestBody(BaseApi): @typing.overload def post_anyof_with_one_empty_schema_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_anyof_with_one_empty_schema_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -183,29 +180,26 @@ def post_anyof_with_one_empty_schema_request_body( @typing.overload def post_anyof_with_one_empty_schema_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_anyof_with_one_empty_schema_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_anyof_with_one_empty_schema_request_body_oapg( body=body, content_type=content_type, @@ -220,21 +214,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -244,29 +238,26 @@ def post( @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_anyof_with_one_empty_schema_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_with_one_empty_schema_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_with_one_empty_schema_request_body/post.pyi index d14b78e30c8..ee861a147b1 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_with_one_empty_schema_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_with_one_empty_schema_request_body/post.pyi @@ -35,21 +35,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_anyof_with_one_empty_schema_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_anyof_with_one_empty_schema_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,29 +59,26 @@ class BaseApi(api_client.Api): @typing.overload def _post_anyof_with_one_empty_schema_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_anyof_with_one_empty_schema_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -133,21 +130,21 @@ class PostAnyofWithOneEmptySchemaRequestBody(BaseApi): @typing.overload def post_anyof_with_one_empty_schema_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_anyof_with_one_empty_schema_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -157,29 +154,26 @@ class PostAnyofWithOneEmptySchemaRequestBody(BaseApi): @typing.overload def post_anyof_with_one_empty_schema_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_anyof_with_one_empty_schema_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_anyof_with_one_empty_schema_request_body_oapg( body=body, content_type=content_type, @@ -194,21 +188,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -218,29 +212,26 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_anyof_with_one_empty_schema_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post.py index 32e2db24e5c..a0d9c2b86ca 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post.py @@ -61,21 +61,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_array_type_matches_arrays_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_array_type_matches_arrays_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -85,29 +85,26 @@ def _post_array_type_matches_arrays_request_body_oapg( @typing.overload def _post_array_type_matches_arrays_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_array_type_matches_arrays_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -159,21 +156,21 @@ class PostArrayTypeMatchesArraysRequestBody(BaseApi): @typing.overload def post_array_type_matches_arrays_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_array_type_matches_arrays_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -183,29 +180,26 @@ def post_array_type_matches_arrays_request_body( @typing.overload def post_array_type_matches_arrays_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_array_type_matches_arrays_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_array_type_matches_arrays_request_body_oapg( body=body, content_type=content_type, @@ -220,21 +214,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -244,29 +238,26 @@ def post( @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_array_type_matches_arrays_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post.pyi index e910489bff4..6026fd3d462 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post.pyi @@ -35,21 +35,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_array_type_matches_arrays_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_array_type_matches_arrays_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,29 +59,26 @@ class BaseApi(api_client.Api): @typing.overload def _post_array_type_matches_arrays_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_array_type_matches_arrays_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -133,21 +130,21 @@ class PostArrayTypeMatchesArraysRequestBody(BaseApi): @typing.overload def post_array_type_matches_arrays_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_array_type_matches_arrays_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -157,29 +154,26 @@ class PostArrayTypeMatchesArraysRequestBody(BaseApi): @typing.overload def post_array_type_matches_arrays_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_array_type_matches_arrays_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_array_type_matches_arrays_request_body_oapg( body=body, content_type=content_type, @@ -194,21 +188,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -218,29 +212,26 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_array_type_matches_arrays_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_boolean_type_matches_booleans_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_boolean_type_matches_booleans_request_body/post.py index 37a1d196b8c..f5da8825c3d 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_boolean_type_matches_booleans_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_boolean_type_matches_booleans_request_body/post.py @@ -59,21 +59,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_boolean_type_matches_booleans_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, bool, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,bool, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_boolean_type_matches_booleans_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, bool, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,bool, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -83,29 +83,26 @@ def _post_boolean_type_matches_booleans_request_body_oapg( @typing.overload def _post_boolean_type_matches_booleans_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, bool, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,bool, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_boolean_type_matches_booleans_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, bool, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -157,21 +154,21 @@ class PostBooleanTypeMatchesBooleansRequestBody(BaseApi): @typing.overload def post_boolean_type_matches_booleans_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, bool, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,bool, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_boolean_type_matches_booleans_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, bool, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,bool, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -181,29 +178,26 @@ def post_boolean_type_matches_booleans_request_body( @typing.overload def post_boolean_type_matches_booleans_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, bool, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,bool, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_boolean_type_matches_booleans_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, bool, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_boolean_type_matches_booleans_request_body_oapg( body=body, content_type=content_type, @@ -218,21 +212,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, bool, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,bool, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, bool, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,bool, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -242,29 +236,26 @@ def post( @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, bool, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,bool, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, bool, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_boolean_type_matches_booleans_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_boolean_type_matches_booleans_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_boolean_type_matches_booleans_request_body/post.pyi index 6a0fe5541c1..f2c160406a7 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_boolean_type_matches_booleans_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_boolean_type_matches_booleans_request_body/post.pyi @@ -33,21 +33,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_boolean_type_matches_booleans_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, bool, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,bool, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_boolean_type_matches_booleans_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, bool, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,bool, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -57,29 +57,26 @@ class BaseApi(api_client.Api): @typing.overload def _post_boolean_type_matches_booleans_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, bool, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,bool, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_boolean_type_matches_booleans_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, bool, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -131,21 +128,21 @@ class PostBooleanTypeMatchesBooleansRequestBody(BaseApi): @typing.overload def post_boolean_type_matches_booleans_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, bool, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,bool, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_boolean_type_matches_booleans_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, bool, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,bool, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -155,29 +152,26 @@ class PostBooleanTypeMatchesBooleansRequestBody(BaseApi): @typing.overload def post_boolean_type_matches_booleans_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, bool, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,bool, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_boolean_type_matches_booleans_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, bool, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_boolean_type_matches_booleans_request_body_oapg( body=body, content_type=content_type, @@ -192,21 +186,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, bool, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,bool, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, bool, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,bool, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -216,29 +210,26 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, bool, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,bool, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, bool, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_boolean_type_matches_booleans_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_int_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_int_request_body/post.py index 2ea6a000c20..5716deff2d7 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_int_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_int_request_body/post.py @@ -61,21 +61,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_by_int_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_by_int_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -85,29 +85,26 @@ def _post_by_int_request_body_oapg( @typing.overload def _post_by_int_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_by_int_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -159,21 +156,21 @@ class PostByIntRequestBody(BaseApi): @typing.overload def post_by_int_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_by_int_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -183,29 +180,26 @@ def post_by_int_request_body( @typing.overload def post_by_int_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_by_int_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_by_int_request_body_oapg( body=body, content_type=content_type, @@ -220,21 +214,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -244,29 +238,26 @@ def post( @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_by_int_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_int_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_int_request_body/post.pyi index 1abac10f02e..04441f8b33d 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_int_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_int_request_body/post.pyi @@ -35,21 +35,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_by_int_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_by_int_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,29 +59,26 @@ class BaseApi(api_client.Api): @typing.overload def _post_by_int_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_by_int_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -133,21 +130,21 @@ class PostByIntRequestBody(BaseApi): @typing.overload def post_by_int_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_by_int_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -157,29 +154,26 @@ class PostByIntRequestBody(BaseApi): @typing.overload def post_by_int_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_by_int_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_by_int_request_body_oapg( body=body, content_type=content_type, @@ -194,21 +188,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -218,29 +212,26 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_by_int_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_number_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_number_request_body/post.py index edb82dd228d..d0fbc68482d 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_number_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_number_request_body/post.py @@ -61,21 +61,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_by_number_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_by_number_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -85,29 +85,26 @@ def _post_by_number_request_body_oapg( @typing.overload def _post_by_number_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_by_number_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -159,21 +156,21 @@ class PostByNumberRequestBody(BaseApi): @typing.overload def post_by_number_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_by_number_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -183,29 +180,26 @@ def post_by_number_request_body( @typing.overload def post_by_number_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_by_number_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_by_number_request_body_oapg( body=body, content_type=content_type, @@ -220,21 +214,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -244,29 +238,26 @@ def post( @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_by_number_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_number_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_number_request_body/post.pyi index 703b98f665c..4be040237c9 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_number_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_number_request_body/post.pyi @@ -35,21 +35,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_by_number_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_by_number_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,29 +59,26 @@ class BaseApi(api_client.Api): @typing.overload def _post_by_number_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_by_number_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -133,21 +130,21 @@ class PostByNumberRequestBody(BaseApi): @typing.overload def post_by_number_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_by_number_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -157,29 +154,26 @@ class PostByNumberRequestBody(BaseApi): @typing.overload def post_by_number_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_by_number_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_by_number_request_body_oapg( body=body, content_type=content_type, @@ -194,21 +188,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -218,29 +212,26 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_by_number_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_small_number_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_small_number_request_body/post.py index 160d3a75ab8..e31d5ee66b7 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_small_number_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_small_number_request_body/post.py @@ -61,21 +61,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_by_small_number_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_by_small_number_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -85,29 +85,26 @@ def _post_by_small_number_request_body_oapg( @typing.overload def _post_by_small_number_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_by_small_number_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -159,21 +156,21 @@ class PostBySmallNumberRequestBody(BaseApi): @typing.overload def post_by_small_number_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_by_small_number_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -183,29 +180,26 @@ def post_by_small_number_request_body( @typing.overload def post_by_small_number_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_by_small_number_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_by_small_number_request_body_oapg( body=body, content_type=content_type, @@ -220,21 +214,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -244,29 +238,26 @@ def post( @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_by_small_number_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_small_number_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_small_number_request_body/post.pyi index d8c40e9931b..66853a4cb0a 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_small_number_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_small_number_request_body/post.pyi @@ -35,21 +35,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_by_small_number_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_by_small_number_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,29 +59,26 @@ class BaseApi(api_client.Api): @typing.overload def _post_by_small_number_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_by_small_number_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -133,21 +130,21 @@ class PostBySmallNumberRequestBody(BaseApi): @typing.overload def post_by_small_number_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_by_small_number_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -157,29 +154,26 @@ class PostBySmallNumberRequestBody(BaseApi): @typing.overload def post_by_small_number_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_by_small_number_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_by_small_number_request_body_oapg( body=body, content_type=content_type, @@ -194,21 +188,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -218,29 +212,26 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_by_small_number_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_date_time_format_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_date_time_format_request_body/post.py index 0dab618888a..76b6e1f3156 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_date_time_format_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_date_time_format_request_body/post.py @@ -82,21 +82,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_date_time_format_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_date_time_format_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -106,29 +106,26 @@ def _post_date_time_format_request_body_oapg( @typing.overload def _post_date_time_format_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_date_time_format_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -180,21 +177,21 @@ class PostDateTimeFormatRequestBody(BaseApi): @typing.overload def post_date_time_format_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_date_time_format_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -204,29 +201,26 @@ def post_date_time_format_request_body( @typing.overload def post_date_time_format_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_date_time_format_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_date_time_format_request_body_oapg( body=body, content_type=content_type, @@ -241,21 +235,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -265,29 +259,26 @@ def post( @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_date_time_format_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_date_time_format_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_date_time_format_request_body/post.pyi index 70cad94af25..bec917837c3 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_date_time_format_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_date_time_format_request_body/post.pyi @@ -56,21 +56,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_date_time_format_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_date_time_format_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -80,29 +80,26 @@ class BaseApi(api_client.Api): @typing.overload def _post_date_time_format_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_date_time_format_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -154,21 +151,21 @@ class PostDateTimeFormatRequestBody(BaseApi): @typing.overload def post_date_time_format_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_date_time_format_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -178,29 +175,26 @@ class PostDateTimeFormatRequestBody(BaseApi): @typing.overload def post_date_time_format_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_date_time_format_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_date_time_format_request_body_oapg( body=body, content_type=content_type, @@ -215,21 +209,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -239,29 +233,26 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_date_time_format_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_email_format_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_email_format_request_body/post.py index 4bd894ac7db..4bba7736535 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_email_format_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_email_format_request_body/post.py @@ -81,21 +81,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_email_format_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_email_format_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -105,29 +105,26 @@ def _post_email_format_request_body_oapg( @typing.overload def _post_email_format_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_email_format_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -179,21 +176,21 @@ class PostEmailFormatRequestBody(BaseApi): @typing.overload def post_email_format_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_email_format_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -203,29 +200,26 @@ def post_email_format_request_body( @typing.overload def post_email_format_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_email_format_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_email_format_request_body_oapg( body=body, content_type=content_type, @@ -240,21 +234,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -264,29 +258,26 @@ def post( @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_email_format_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_email_format_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_email_format_request_body/post.pyi index 26dd3d1b04f..a9042e5ea8b 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_email_format_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_email_format_request_body/post.pyi @@ -55,21 +55,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_email_format_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_email_format_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -79,29 +79,26 @@ class BaseApi(api_client.Api): @typing.overload def _post_email_format_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_email_format_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -153,21 +150,21 @@ class PostEmailFormatRequestBody(BaseApi): @typing.overload def post_email_format_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_email_format_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -177,29 +174,26 @@ class PostEmailFormatRequestBody(BaseApi): @typing.overload def post_email_format_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_email_format_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_email_format_request_body_oapg( body=body, content_type=content_type, @@ -214,21 +208,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -238,29 +232,26 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_email_format_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post.py index 10047d90181..d73a2744c03 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post.py @@ -61,21 +61,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_enum_with0_does_not_match_false_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_enum_with0_does_not_match_false_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -85,29 +85,26 @@ def _post_enum_with0_does_not_match_false_request_body_oapg( @typing.overload def _post_enum_with0_does_not_match_false_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_enum_with0_does_not_match_false_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -159,21 +156,21 @@ class PostEnumWith0DoesNotMatchFalseRequestBody(BaseApi): @typing.overload def post_enum_with0_does_not_match_false_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_enum_with0_does_not_match_false_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -183,29 +180,26 @@ def post_enum_with0_does_not_match_false_request_body( @typing.overload def post_enum_with0_does_not_match_false_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_enum_with0_does_not_match_false_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_enum_with0_does_not_match_false_request_body_oapg( body=body, content_type=content_type, @@ -220,21 +214,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -244,29 +238,26 @@ def post( @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_enum_with0_does_not_match_false_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post.pyi index d4f801495e5..debb33c2686 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post.pyi @@ -35,21 +35,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_enum_with0_does_not_match_false_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_enum_with0_does_not_match_false_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,29 +59,26 @@ class BaseApi(api_client.Api): @typing.overload def _post_enum_with0_does_not_match_false_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_enum_with0_does_not_match_false_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -133,21 +130,21 @@ class PostEnumWith0DoesNotMatchFalseRequestBody(BaseApi): @typing.overload def post_enum_with0_does_not_match_false_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_enum_with0_does_not_match_false_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -157,29 +154,26 @@ class PostEnumWith0DoesNotMatchFalseRequestBody(BaseApi): @typing.overload def post_enum_with0_does_not_match_false_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_enum_with0_does_not_match_false_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_enum_with0_does_not_match_false_request_body_oapg( body=body, content_type=content_type, @@ -194,21 +188,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -218,29 +212,26 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_enum_with0_does_not_match_false_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with1_does_not_match_true_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with1_does_not_match_true_request_body/post.py index 15d5b96ff0c..c36312154e3 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with1_does_not_match_true_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with1_does_not_match_true_request_body/post.py @@ -61,21 +61,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_enum_with1_does_not_match_true_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_enum_with1_does_not_match_true_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -85,29 +85,26 @@ def _post_enum_with1_does_not_match_true_request_body_oapg( @typing.overload def _post_enum_with1_does_not_match_true_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_enum_with1_does_not_match_true_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -159,21 +156,21 @@ class PostEnumWith1DoesNotMatchTrueRequestBody(BaseApi): @typing.overload def post_enum_with1_does_not_match_true_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_enum_with1_does_not_match_true_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -183,29 +180,26 @@ def post_enum_with1_does_not_match_true_request_body( @typing.overload def post_enum_with1_does_not_match_true_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_enum_with1_does_not_match_true_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_enum_with1_does_not_match_true_request_body_oapg( body=body, content_type=content_type, @@ -220,21 +214,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -244,29 +238,26 @@ def post( @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_enum_with1_does_not_match_true_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with1_does_not_match_true_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with1_does_not_match_true_request_body/post.pyi index 6282749456b..0e566f00073 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with1_does_not_match_true_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with1_does_not_match_true_request_body/post.pyi @@ -35,21 +35,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_enum_with1_does_not_match_true_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_enum_with1_does_not_match_true_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,29 +59,26 @@ class BaseApi(api_client.Api): @typing.overload def _post_enum_with1_does_not_match_true_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_enum_with1_does_not_match_true_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -133,21 +130,21 @@ class PostEnumWith1DoesNotMatchTrueRequestBody(BaseApi): @typing.overload def post_enum_with1_does_not_match_true_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_enum_with1_does_not_match_true_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -157,29 +154,26 @@ class PostEnumWith1DoesNotMatchTrueRequestBody(BaseApi): @typing.overload def post_enum_with1_does_not_match_true_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_enum_with1_does_not_match_true_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_enum_with1_does_not_match_true_request_body_oapg( body=body, content_type=content_type, @@ -194,21 +188,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -218,29 +212,26 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_enum_with1_does_not_match_true_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_escaped_characters_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_escaped_characters_request_body/post.py index b3c60ded73f..764a4da29a8 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_escaped_characters_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_escaped_characters_request_body/post.py @@ -61,21 +61,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_enum_with_escaped_characters_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_enum_with_escaped_characters_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -85,29 +85,26 @@ def _post_enum_with_escaped_characters_request_body_oapg( @typing.overload def _post_enum_with_escaped_characters_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_enum_with_escaped_characters_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -159,21 +156,21 @@ class PostEnumWithEscapedCharactersRequestBody(BaseApi): @typing.overload def post_enum_with_escaped_characters_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_enum_with_escaped_characters_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -183,29 +180,26 @@ def post_enum_with_escaped_characters_request_body( @typing.overload def post_enum_with_escaped_characters_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_enum_with_escaped_characters_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_enum_with_escaped_characters_request_body_oapg( body=body, content_type=content_type, @@ -220,21 +214,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -244,29 +238,26 @@ def post( @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_enum_with_escaped_characters_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_escaped_characters_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_escaped_characters_request_body/post.pyi index 8d2e3daa4c4..4387965075d 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_escaped_characters_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_escaped_characters_request_body/post.pyi @@ -35,21 +35,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_enum_with_escaped_characters_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_enum_with_escaped_characters_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,29 +59,26 @@ class BaseApi(api_client.Api): @typing.overload def _post_enum_with_escaped_characters_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_enum_with_escaped_characters_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -133,21 +130,21 @@ class PostEnumWithEscapedCharactersRequestBody(BaseApi): @typing.overload def post_enum_with_escaped_characters_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_enum_with_escaped_characters_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -157,29 +154,26 @@ class PostEnumWithEscapedCharactersRequestBody(BaseApi): @typing.overload def post_enum_with_escaped_characters_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_enum_with_escaped_characters_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_enum_with_escaped_characters_request_body_oapg( body=body, content_type=content_type, @@ -194,21 +188,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -218,29 +212,26 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_enum_with_escaped_characters_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_false_does_not_match0_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_false_does_not_match0_request_body/post.py index f996c4291ea..d38fc3236bb 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_false_does_not_match0_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_false_does_not_match0_request_body/post.py @@ -61,21 +61,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_enum_with_false_does_not_match0_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_enum_with_false_does_not_match0_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -85,29 +85,26 @@ def _post_enum_with_false_does_not_match0_request_body_oapg( @typing.overload def _post_enum_with_false_does_not_match0_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_enum_with_false_does_not_match0_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -159,21 +156,21 @@ class PostEnumWithFalseDoesNotMatch0RequestBody(BaseApi): @typing.overload def post_enum_with_false_does_not_match0_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_enum_with_false_does_not_match0_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -183,29 +180,26 @@ def post_enum_with_false_does_not_match0_request_body( @typing.overload def post_enum_with_false_does_not_match0_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_enum_with_false_does_not_match0_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_enum_with_false_does_not_match0_request_body_oapg( body=body, content_type=content_type, @@ -220,21 +214,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -244,29 +238,26 @@ def post( @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_enum_with_false_does_not_match0_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_false_does_not_match0_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_false_does_not_match0_request_body/post.pyi index ea9a84ea09a..cc70ff31110 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_false_does_not_match0_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_false_does_not_match0_request_body/post.pyi @@ -35,21 +35,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_enum_with_false_does_not_match0_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_enum_with_false_does_not_match0_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,29 +59,26 @@ class BaseApi(api_client.Api): @typing.overload def _post_enum_with_false_does_not_match0_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_enum_with_false_does_not_match0_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -133,21 +130,21 @@ class PostEnumWithFalseDoesNotMatch0RequestBody(BaseApi): @typing.overload def post_enum_with_false_does_not_match0_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_enum_with_false_does_not_match0_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -157,29 +154,26 @@ class PostEnumWithFalseDoesNotMatch0RequestBody(BaseApi): @typing.overload def post_enum_with_false_does_not_match0_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_enum_with_false_does_not_match0_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_enum_with_false_does_not_match0_request_body_oapg( body=body, content_type=content_type, @@ -194,21 +188,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -218,29 +212,26 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_enum_with_false_does_not_match0_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_true_does_not_match1_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_true_does_not_match1_request_body/post.py index 091a6e2e881..e686cbacee7 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_true_does_not_match1_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_true_does_not_match1_request_body/post.py @@ -61,21 +61,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_enum_with_true_does_not_match1_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_enum_with_true_does_not_match1_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -85,29 +85,26 @@ def _post_enum_with_true_does_not_match1_request_body_oapg( @typing.overload def _post_enum_with_true_does_not_match1_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_enum_with_true_does_not_match1_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -159,21 +156,21 @@ class PostEnumWithTrueDoesNotMatch1RequestBody(BaseApi): @typing.overload def post_enum_with_true_does_not_match1_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_enum_with_true_does_not_match1_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -183,29 +180,26 @@ def post_enum_with_true_does_not_match1_request_body( @typing.overload def post_enum_with_true_does_not_match1_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_enum_with_true_does_not_match1_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_enum_with_true_does_not_match1_request_body_oapg( body=body, content_type=content_type, @@ -220,21 +214,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -244,29 +238,26 @@ def post( @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_enum_with_true_does_not_match1_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_true_does_not_match1_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_true_does_not_match1_request_body/post.pyi index 3c8522ff484..d3c6b701746 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_true_does_not_match1_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_true_does_not_match1_request_body/post.pyi @@ -35,21 +35,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_enum_with_true_does_not_match1_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_enum_with_true_does_not_match1_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,29 +59,26 @@ class BaseApi(api_client.Api): @typing.overload def _post_enum_with_true_does_not_match1_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_enum_with_true_does_not_match1_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -133,21 +130,21 @@ class PostEnumWithTrueDoesNotMatch1RequestBody(BaseApi): @typing.overload def post_enum_with_true_does_not_match1_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_enum_with_true_does_not_match1_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -157,29 +154,26 @@ class PostEnumWithTrueDoesNotMatch1RequestBody(BaseApi): @typing.overload def post_enum_with_true_does_not_match1_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_enum_with_true_does_not_match1_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_enum_with_true_does_not_match1_request_body_oapg( body=body, content_type=content_type, @@ -194,21 +188,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -218,29 +212,26 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_enum_with_true_does_not_match1_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post.py index da7b6731817..e07c82b9f58 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post.py @@ -61,21 +61,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_enums_in_properties_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_enums_in_properties_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -85,29 +85,26 @@ def _post_enums_in_properties_request_body_oapg( @typing.overload def _post_enums_in_properties_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_enums_in_properties_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -159,21 +156,21 @@ class PostEnumsInPropertiesRequestBody(BaseApi): @typing.overload def post_enums_in_properties_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_enums_in_properties_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -183,29 +180,26 @@ def post_enums_in_properties_request_body( @typing.overload def post_enums_in_properties_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_enums_in_properties_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_enums_in_properties_request_body_oapg( body=body, content_type=content_type, @@ -220,21 +214,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -244,29 +238,26 @@ def post( @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_enums_in_properties_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post.pyi index c613b2a013a..95278557051 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post.pyi @@ -35,21 +35,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_enums_in_properties_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_enums_in_properties_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,29 +59,26 @@ class BaseApi(api_client.Api): @typing.overload def _post_enums_in_properties_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_enums_in_properties_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -133,21 +130,21 @@ class PostEnumsInPropertiesRequestBody(BaseApi): @typing.overload def post_enums_in_properties_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_enums_in_properties_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -157,29 +154,26 @@ class PostEnumsInPropertiesRequestBody(BaseApi): @typing.overload def post_enums_in_properties_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_enums_in_properties_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_enums_in_properties_request_body_oapg( body=body, content_type=content_type, @@ -194,21 +188,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -218,29 +212,26 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_enums_in_properties_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_forbidden_property_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_forbidden_property_request_body/post.py index 02973a8577c..205b10ea25c 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_forbidden_property_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_forbidden_property_request_body/post.py @@ -61,21 +61,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_forbidden_property_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_forbidden_property_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -85,29 +85,26 @@ def _post_forbidden_property_request_body_oapg( @typing.overload def _post_forbidden_property_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_forbidden_property_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -159,21 +156,21 @@ class PostForbiddenPropertyRequestBody(BaseApi): @typing.overload def post_forbidden_property_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_forbidden_property_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -183,29 +180,26 @@ def post_forbidden_property_request_body( @typing.overload def post_forbidden_property_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_forbidden_property_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_forbidden_property_request_body_oapg( body=body, content_type=content_type, @@ -220,21 +214,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -244,29 +238,26 @@ def post( @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_forbidden_property_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_forbidden_property_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_forbidden_property_request_body/post.pyi index c2bba9c6673..aa31d852101 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_forbidden_property_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_forbidden_property_request_body/post.pyi @@ -35,21 +35,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_forbidden_property_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_forbidden_property_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,29 +59,26 @@ class BaseApi(api_client.Api): @typing.overload def _post_forbidden_property_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_forbidden_property_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -133,21 +130,21 @@ class PostForbiddenPropertyRequestBody(BaseApi): @typing.overload def post_forbidden_property_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_forbidden_property_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -157,29 +154,26 @@ class PostForbiddenPropertyRequestBody(BaseApi): @typing.overload def post_forbidden_property_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_forbidden_property_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_forbidden_property_request_body_oapg( body=body, content_type=content_type, @@ -194,21 +188,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -218,29 +212,26 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_forbidden_property_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_hostname_format_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_hostname_format_request_body/post.py index 88dee0dadde..a436f0d38a0 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_hostname_format_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_hostname_format_request_body/post.py @@ -81,21 +81,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_hostname_format_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_hostname_format_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -105,29 +105,26 @@ def _post_hostname_format_request_body_oapg( @typing.overload def _post_hostname_format_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_hostname_format_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -179,21 +176,21 @@ class PostHostnameFormatRequestBody(BaseApi): @typing.overload def post_hostname_format_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_hostname_format_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -203,29 +200,26 @@ def post_hostname_format_request_body( @typing.overload def post_hostname_format_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_hostname_format_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_hostname_format_request_body_oapg( body=body, content_type=content_type, @@ -240,21 +234,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -264,29 +258,26 @@ def post( @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_hostname_format_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_hostname_format_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_hostname_format_request_body/post.pyi index 9f4d07563e1..a51be22111c 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_hostname_format_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_hostname_format_request_body/post.pyi @@ -55,21 +55,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_hostname_format_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_hostname_format_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -79,29 +79,26 @@ class BaseApi(api_client.Api): @typing.overload def _post_hostname_format_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_hostname_format_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -153,21 +150,21 @@ class PostHostnameFormatRequestBody(BaseApi): @typing.overload def post_hostname_format_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_hostname_format_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -177,29 +174,26 @@ class PostHostnameFormatRequestBody(BaseApi): @typing.overload def post_hostname_format_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_hostname_format_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_hostname_format_request_body_oapg( body=body, content_type=content_type, @@ -214,21 +208,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -238,29 +232,26 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_hostname_format_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post.py index 0220e9c7554..3dd112e772e 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post.py @@ -59,21 +59,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_integer_type_matches_integers_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, decimal.Decimal, int, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,decimal.Decimal, int, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_integer_type_matches_integers_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, decimal.Decimal, int, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,decimal.Decimal, int, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -83,29 +83,26 @@ def _post_integer_type_matches_integers_request_body_oapg( @typing.overload def _post_integer_type_matches_integers_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, decimal.Decimal, int, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,decimal.Decimal, int, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_integer_type_matches_integers_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, decimal.Decimal, int, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -157,21 +154,21 @@ class PostIntegerTypeMatchesIntegersRequestBody(BaseApi): @typing.overload def post_integer_type_matches_integers_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, decimal.Decimal, int, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,decimal.Decimal, int, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_integer_type_matches_integers_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, decimal.Decimal, int, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,decimal.Decimal, int, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -181,29 +178,26 @@ def post_integer_type_matches_integers_request_body( @typing.overload def post_integer_type_matches_integers_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, decimal.Decimal, int, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,decimal.Decimal, int, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_integer_type_matches_integers_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, decimal.Decimal, int, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_integer_type_matches_integers_request_body_oapg( body=body, content_type=content_type, @@ -218,21 +212,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, decimal.Decimal, int, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,decimal.Decimal, int, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, decimal.Decimal, int, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,decimal.Decimal, int, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -242,29 +236,26 @@ def post( @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, decimal.Decimal, int, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,decimal.Decimal, int, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, decimal.Decimal, int, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_integer_type_matches_integers_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post.pyi index 81462af11d1..5e8c945246a 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post.pyi @@ -33,21 +33,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_integer_type_matches_integers_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, decimal.Decimal, int, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,decimal.Decimal, int, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_integer_type_matches_integers_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, decimal.Decimal, int, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,decimal.Decimal, int, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -57,29 +57,26 @@ class BaseApi(api_client.Api): @typing.overload def _post_integer_type_matches_integers_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, decimal.Decimal, int, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,decimal.Decimal, int, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_integer_type_matches_integers_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, decimal.Decimal, int, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -131,21 +128,21 @@ class PostIntegerTypeMatchesIntegersRequestBody(BaseApi): @typing.overload def post_integer_type_matches_integers_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, decimal.Decimal, int, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,decimal.Decimal, int, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_integer_type_matches_integers_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, decimal.Decimal, int, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,decimal.Decimal, int, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -155,29 +152,26 @@ class PostIntegerTypeMatchesIntegersRequestBody(BaseApi): @typing.overload def post_integer_type_matches_integers_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, decimal.Decimal, int, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,decimal.Decimal, int, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_integer_type_matches_integers_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, decimal.Decimal, int, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_integer_type_matches_integers_request_body_oapg( body=body, content_type=content_type, @@ -192,21 +186,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, decimal.Decimal, int, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,decimal.Decimal, int, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, decimal.Decimal, int, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,decimal.Decimal, int, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -216,29 +210,26 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, decimal.Decimal, int, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,decimal.Decimal, int, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, decimal.Decimal, int, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_integer_type_matches_integers_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body/post.py index bc43fff9da0..0931822f80d 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body/post.py @@ -61,21 +61,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -85,29 +85,26 @@ def _post_invalid_instance_should_not_raise_error_when_float_division_inf_reques @typing.overload def _post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -159,21 +156,21 @@ class PostInvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInfRequestBody(Base @typing.overload def post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -183,29 +180,26 @@ def post_invalid_instance_should_not_raise_error_when_float_division_inf_request @typing.overload def post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body_oapg( body=body, content_type=content_type, @@ -220,21 +214,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -244,29 +238,26 @@ def post( @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body/post.pyi index 77acdccea43..19eb4812731 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body/post.pyi @@ -35,21 +35,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,29 +59,26 @@ class BaseApi(api_client.Api): @typing.overload def _post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -133,21 +130,21 @@ class PostInvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInfRequestBody(Base @typing.overload def post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -157,29 +154,26 @@ class PostInvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInfRequestBody(Base @typing.overload def post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body_oapg( body=body, content_type=content_type, @@ -194,21 +188,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -218,29 +212,26 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_invalid_string_value_for_default_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_invalid_string_value_for_default_request_body/post.py index d246fc7a5e4..18937f559b2 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_invalid_string_value_for_default_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_invalid_string_value_for_default_request_body/post.py @@ -61,21 +61,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_invalid_string_value_for_default_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_invalid_string_value_for_default_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -85,29 +85,26 @@ def _post_invalid_string_value_for_default_request_body_oapg( @typing.overload def _post_invalid_string_value_for_default_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_invalid_string_value_for_default_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -159,21 +156,21 @@ class PostInvalidStringValueForDefaultRequestBody(BaseApi): @typing.overload def post_invalid_string_value_for_default_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_invalid_string_value_for_default_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -183,29 +180,26 @@ def post_invalid_string_value_for_default_request_body( @typing.overload def post_invalid_string_value_for_default_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_invalid_string_value_for_default_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_invalid_string_value_for_default_request_body_oapg( body=body, content_type=content_type, @@ -220,21 +214,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -244,29 +238,26 @@ def post( @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_invalid_string_value_for_default_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_invalid_string_value_for_default_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_invalid_string_value_for_default_request_body/post.pyi index 5abb7516496..0a7ee77eaef 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_invalid_string_value_for_default_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_invalid_string_value_for_default_request_body/post.pyi @@ -35,21 +35,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_invalid_string_value_for_default_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_invalid_string_value_for_default_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,29 +59,26 @@ class BaseApi(api_client.Api): @typing.overload def _post_invalid_string_value_for_default_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_invalid_string_value_for_default_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -133,21 +130,21 @@ class PostInvalidStringValueForDefaultRequestBody(BaseApi): @typing.overload def post_invalid_string_value_for_default_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_invalid_string_value_for_default_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -157,29 +154,26 @@ class PostInvalidStringValueForDefaultRequestBody(BaseApi): @typing.overload def post_invalid_string_value_for_default_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_invalid_string_value_for_default_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_invalid_string_value_for_default_request_body_oapg( body=body, content_type=content_type, @@ -194,21 +188,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -218,29 +212,26 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_invalid_string_value_for_default_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ipv4_format_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ipv4_format_request_body/post.py index bc9766ea4cc..84c4bc7ccfa 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ipv4_format_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ipv4_format_request_body/post.py @@ -81,21 +81,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_ipv4_format_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_ipv4_format_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -105,29 +105,26 @@ def _post_ipv4_format_request_body_oapg( @typing.overload def _post_ipv4_format_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_ipv4_format_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -179,21 +176,21 @@ class PostIpv4FormatRequestBody(BaseApi): @typing.overload def post_ipv4_format_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_ipv4_format_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -203,29 +200,26 @@ def post_ipv4_format_request_body( @typing.overload def post_ipv4_format_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_ipv4_format_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_ipv4_format_request_body_oapg( body=body, content_type=content_type, @@ -240,21 +234,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -264,29 +258,26 @@ def post( @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_ipv4_format_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ipv4_format_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ipv4_format_request_body/post.pyi index 5a612d67826..cf0cdee9970 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ipv4_format_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ipv4_format_request_body/post.pyi @@ -55,21 +55,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_ipv4_format_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_ipv4_format_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -79,29 +79,26 @@ class BaseApi(api_client.Api): @typing.overload def _post_ipv4_format_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_ipv4_format_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -153,21 +150,21 @@ class PostIpv4FormatRequestBody(BaseApi): @typing.overload def post_ipv4_format_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_ipv4_format_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -177,29 +174,26 @@ class PostIpv4FormatRequestBody(BaseApi): @typing.overload def post_ipv4_format_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_ipv4_format_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_ipv4_format_request_body_oapg( body=body, content_type=content_type, @@ -214,21 +208,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -238,29 +232,26 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_ipv4_format_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ipv6_format_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ipv6_format_request_body/post.py index 5e40d534e55..635d839216d 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ipv6_format_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ipv6_format_request_body/post.py @@ -81,21 +81,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_ipv6_format_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_ipv6_format_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -105,29 +105,26 @@ def _post_ipv6_format_request_body_oapg( @typing.overload def _post_ipv6_format_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_ipv6_format_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -179,21 +176,21 @@ class PostIpv6FormatRequestBody(BaseApi): @typing.overload def post_ipv6_format_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_ipv6_format_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -203,29 +200,26 @@ def post_ipv6_format_request_body( @typing.overload def post_ipv6_format_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_ipv6_format_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_ipv6_format_request_body_oapg( body=body, content_type=content_type, @@ -240,21 +234,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -264,29 +258,26 @@ def post( @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_ipv6_format_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ipv6_format_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ipv6_format_request_body/post.pyi index 101be22c24a..c71b3b3af84 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ipv6_format_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ipv6_format_request_body/post.pyi @@ -55,21 +55,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_ipv6_format_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_ipv6_format_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -79,29 +79,26 @@ class BaseApi(api_client.Api): @typing.overload def _post_ipv6_format_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_ipv6_format_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -153,21 +150,21 @@ class PostIpv6FormatRequestBody(BaseApi): @typing.overload def post_ipv6_format_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_ipv6_format_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -177,29 +174,26 @@ class PostIpv6FormatRequestBody(BaseApi): @typing.overload def post_ipv6_format_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_ipv6_format_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_ipv6_format_request_body_oapg( body=body, content_type=content_type, @@ -214,21 +208,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -238,29 +232,26 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_ipv6_format_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post.py index 4029648143e..8b637b6211e 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post.py @@ -81,21 +81,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_json_pointer_format_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_json_pointer_format_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -105,29 +105,26 @@ def _post_json_pointer_format_request_body_oapg( @typing.overload def _post_json_pointer_format_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_json_pointer_format_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -179,21 +176,21 @@ class PostJsonPointerFormatRequestBody(BaseApi): @typing.overload def post_json_pointer_format_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_json_pointer_format_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -203,29 +200,26 @@ def post_json_pointer_format_request_body( @typing.overload def post_json_pointer_format_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_json_pointer_format_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_json_pointer_format_request_body_oapg( body=body, content_type=content_type, @@ -240,21 +234,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -264,29 +258,26 @@ def post( @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_json_pointer_format_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post.pyi index dd338d2b745..3221653d10e 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post.pyi @@ -55,21 +55,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_json_pointer_format_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_json_pointer_format_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -79,29 +79,26 @@ class BaseApi(api_client.Api): @typing.overload def _post_json_pointer_format_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_json_pointer_format_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -153,21 +150,21 @@ class PostJsonPointerFormatRequestBody(BaseApi): @typing.overload def post_json_pointer_format_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_json_pointer_format_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -177,29 +174,26 @@ class PostJsonPointerFormatRequestBody(BaseApi): @typing.overload def post_json_pointer_format_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_json_pointer_format_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_json_pointer_format_request_body_oapg( body=body, content_type=content_type, @@ -214,21 +208,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -238,29 +232,26 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_json_pointer_format_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maximum_validation_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maximum_validation_request_body/post.py index c2802178ba5..3fa5343a279 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maximum_validation_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maximum_validation_request_body/post.py @@ -61,21 +61,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_maximum_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_maximum_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -85,29 +85,26 @@ def _post_maximum_validation_request_body_oapg( @typing.overload def _post_maximum_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_maximum_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -159,21 +156,21 @@ class PostMaximumValidationRequestBody(BaseApi): @typing.overload def post_maximum_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_maximum_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -183,29 +180,26 @@ def post_maximum_validation_request_body( @typing.overload def post_maximum_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_maximum_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_maximum_validation_request_body_oapg( body=body, content_type=content_type, @@ -220,21 +214,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -244,29 +238,26 @@ def post( @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_maximum_validation_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maximum_validation_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maximum_validation_request_body/post.pyi index c7ed21f2364..6abfecb5858 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maximum_validation_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maximum_validation_request_body/post.pyi @@ -35,21 +35,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_maximum_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_maximum_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,29 +59,26 @@ class BaseApi(api_client.Api): @typing.overload def _post_maximum_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_maximum_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -133,21 +130,21 @@ class PostMaximumValidationRequestBody(BaseApi): @typing.overload def post_maximum_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_maximum_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -157,29 +154,26 @@ class PostMaximumValidationRequestBody(BaseApi): @typing.overload def post_maximum_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_maximum_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_maximum_validation_request_body_oapg( body=body, content_type=content_type, @@ -194,21 +188,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -218,29 +212,26 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_maximum_validation_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post.py index 72658c4838e..1204d80c8ea 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post.py @@ -61,21 +61,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_maximum_validation_with_unsigned_integer_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_maximum_validation_with_unsigned_integer_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -85,29 +85,26 @@ def _post_maximum_validation_with_unsigned_integer_request_body_oapg( @typing.overload def _post_maximum_validation_with_unsigned_integer_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_maximum_validation_with_unsigned_integer_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -159,21 +156,21 @@ class PostMaximumValidationWithUnsignedIntegerRequestBody(BaseApi): @typing.overload def post_maximum_validation_with_unsigned_integer_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_maximum_validation_with_unsigned_integer_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -183,29 +180,26 @@ def post_maximum_validation_with_unsigned_integer_request_body( @typing.overload def post_maximum_validation_with_unsigned_integer_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_maximum_validation_with_unsigned_integer_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_maximum_validation_with_unsigned_integer_request_body_oapg( body=body, content_type=content_type, @@ -220,21 +214,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -244,29 +238,26 @@ def post( @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_maximum_validation_with_unsigned_integer_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post.pyi index 5ed672e1e72..fedcf4bad0d 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post.pyi @@ -35,21 +35,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_maximum_validation_with_unsigned_integer_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_maximum_validation_with_unsigned_integer_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,29 +59,26 @@ class BaseApi(api_client.Api): @typing.overload def _post_maximum_validation_with_unsigned_integer_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_maximum_validation_with_unsigned_integer_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -133,21 +130,21 @@ class PostMaximumValidationWithUnsignedIntegerRequestBody(BaseApi): @typing.overload def post_maximum_validation_with_unsigned_integer_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_maximum_validation_with_unsigned_integer_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -157,29 +154,26 @@ class PostMaximumValidationWithUnsignedIntegerRequestBody(BaseApi): @typing.overload def post_maximum_validation_with_unsigned_integer_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_maximum_validation_with_unsigned_integer_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_maximum_validation_with_unsigned_integer_request_body_oapg( body=body, content_type=content_type, @@ -194,21 +188,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -218,29 +212,26 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_maximum_validation_with_unsigned_integer_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post.py index 37df60ebcfb..c615b1f2ca3 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post.py @@ -61,21 +61,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_maxitems_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_maxitems_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -85,29 +85,26 @@ def _post_maxitems_validation_request_body_oapg( @typing.overload def _post_maxitems_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_maxitems_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -159,21 +156,21 @@ class PostMaxitemsValidationRequestBody(BaseApi): @typing.overload def post_maxitems_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_maxitems_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -183,29 +180,26 @@ def post_maxitems_validation_request_body( @typing.overload def post_maxitems_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_maxitems_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_maxitems_validation_request_body_oapg( body=body, content_type=content_type, @@ -220,21 +214,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -244,29 +238,26 @@ def post( @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_maxitems_validation_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post.pyi index 901982a6634..3a273466be4 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post.pyi @@ -35,21 +35,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_maxitems_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_maxitems_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,29 +59,26 @@ class BaseApi(api_client.Api): @typing.overload def _post_maxitems_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_maxitems_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -133,21 +130,21 @@ class PostMaxitemsValidationRequestBody(BaseApi): @typing.overload def post_maxitems_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_maxitems_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -157,29 +154,26 @@ class PostMaxitemsValidationRequestBody(BaseApi): @typing.overload def post_maxitems_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_maxitems_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_maxitems_validation_request_body_oapg( body=body, content_type=content_type, @@ -194,21 +188,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -218,29 +212,26 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_maxitems_validation_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post.py index 86588dc829e..48d5e063b49 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post.py @@ -61,21 +61,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_maxlength_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_maxlength_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -85,29 +85,26 @@ def _post_maxlength_validation_request_body_oapg( @typing.overload def _post_maxlength_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_maxlength_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -159,21 +156,21 @@ class PostMaxlengthValidationRequestBody(BaseApi): @typing.overload def post_maxlength_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_maxlength_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -183,29 +180,26 @@ def post_maxlength_validation_request_body( @typing.overload def post_maxlength_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_maxlength_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_maxlength_validation_request_body_oapg( body=body, content_type=content_type, @@ -220,21 +214,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -244,29 +238,26 @@ def post( @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_maxlength_validation_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post.pyi index 509355f6506..5ad55e13665 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post.pyi @@ -35,21 +35,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_maxlength_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_maxlength_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,29 +59,26 @@ class BaseApi(api_client.Api): @typing.overload def _post_maxlength_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_maxlength_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -133,21 +130,21 @@ class PostMaxlengthValidationRequestBody(BaseApi): @typing.overload def post_maxlength_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_maxlength_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -157,29 +154,26 @@ class PostMaxlengthValidationRequestBody(BaseApi): @typing.overload def post_maxlength_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_maxlength_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_maxlength_validation_request_body_oapg( body=body, content_type=content_type, @@ -194,21 +188,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -218,29 +212,26 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_maxlength_validation_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post.py index 916400bf202..1d244bdb8f7 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post.py @@ -61,21 +61,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_maxproperties0_means_the_object_is_empty_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_maxproperties0_means_the_object_is_empty_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -85,29 +85,26 @@ def _post_maxproperties0_means_the_object_is_empty_request_body_oapg( @typing.overload def _post_maxproperties0_means_the_object_is_empty_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_maxproperties0_means_the_object_is_empty_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -159,21 +156,21 @@ class PostMaxproperties0MeansTheObjectIsEmptyRequestBody(BaseApi): @typing.overload def post_maxproperties0_means_the_object_is_empty_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_maxproperties0_means_the_object_is_empty_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -183,29 +180,26 @@ def post_maxproperties0_means_the_object_is_empty_request_body( @typing.overload def post_maxproperties0_means_the_object_is_empty_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_maxproperties0_means_the_object_is_empty_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_maxproperties0_means_the_object_is_empty_request_body_oapg( body=body, content_type=content_type, @@ -220,21 +214,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -244,29 +238,26 @@ def post( @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_maxproperties0_means_the_object_is_empty_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post.pyi index 2d36c5259d2..cf54e45505a 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post.pyi @@ -35,21 +35,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_maxproperties0_means_the_object_is_empty_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_maxproperties0_means_the_object_is_empty_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,29 +59,26 @@ class BaseApi(api_client.Api): @typing.overload def _post_maxproperties0_means_the_object_is_empty_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_maxproperties0_means_the_object_is_empty_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -133,21 +130,21 @@ class PostMaxproperties0MeansTheObjectIsEmptyRequestBody(BaseApi): @typing.overload def post_maxproperties0_means_the_object_is_empty_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_maxproperties0_means_the_object_is_empty_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -157,29 +154,26 @@ class PostMaxproperties0MeansTheObjectIsEmptyRequestBody(BaseApi): @typing.overload def post_maxproperties0_means_the_object_is_empty_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_maxproperties0_means_the_object_is_empty_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_maxproperties0_means_the_object_is_empty_request_body_oapg( body=body, content_type=content_type, @@ -194,21 +188,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -218,29 +212,26 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_maxproperties0_means_the_object_is_empty_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post.py index 79c5d1b08a6..f2632e845df 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post.py @@ -61,21 +61,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_maxproperties_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_maxproperties_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -85,29 +85,26 @@ def _post_maxproperties_validation_request_body_oapg( @typing.overload def _post_maxproperties_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_maxproperties_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -159,21 +156,21 @@ class PostMaxpropertiesValidationRequestBody(BaseApi): @typing.overload def post_maxproperties_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_maxproperties_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -183,29 +180,26 @@ def post_maxproperties_validation_request_body( @typing.overload def post_maxproperties_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_maxproperties_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_maxproperties_validation_request_body_oapg( body=body, content_type=content_type, @@ -220,21 +214,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -244,29 +238,26 @@ def post( @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_maxproperties_validation_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post.pyi index 60dcdeed414..fa7291c673c 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post.pyi @@ -35,21 +35,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_maxproperties_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_maxproperties_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,29 +59,26 @@ class BaseApi(api_client.Api): @typing.overload def _post_maxproperties_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_maxproperties_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -133,21 +130,21 @@ class PostMaxpropertiesValidationRequestBody(BaseApi): @typing.overload def post_maxproperties_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_maxproperties_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -157,29 +154,26 @@ class PostMaxpropertiesValidationRequestBody(BaseApi): @typing.overload def post_maxproperties_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_maxproperties_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_maxproperties_validation_request_body_oapg( body=body, content_type=content_type, @@ -194,21 +188,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -218,29 +212,26 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_maxproperties_validation_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minimum_validation_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minimum_validation_request_body/post.py index 1e4aa10df83..aa3a03a396e 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minimum_validation_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minimum_validation_request_body/post.py @@ -61,21 +61,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_minimum_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_minimum_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -85,29 +85,26 @@ def _post_minimum_validation_request_body_oapg( @typing.overload def _post_minimum_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_minimum_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -159,21 +156,21 @@ class PostMinimumValidationRequestBody(BaseApi): @typing.overload def post_minimum_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_minimum_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -183,29 +180,26 @@ def post_minimum_validation_request_body( @typing.overload def post_minimum_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_minimum_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_minimum_validation_request_body_oapg( body=body, content_type=content_type, @@ -220,21 +214,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -244,29 +238,26 @@ def post( @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_minimum_validation_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minimum_validation_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minimum_validation_request_body/post.pyi index 70193d1610e..f7bf2dafd83 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minimum_validation_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minimum_validation_request_body/post.pyi @@ -35,21 +35,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_minimum_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_minimum_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,29 +59,26 @@ class BaseApi(api_client.Api): @typing.overload def _post_minimum_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_minimum_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -133,21 +130,21 @@ class PostMinimumValidationRequestBody(BaseApi): @typing.overload def post_minimum_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_minimum_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -157,29 +154,26 @@ class PostMinimumValidationRequestBody(BaseApi): @typing.overload def post_minimum_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_minimum_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_minimum_validation_request_body_oapg( body=body, content_type=content_type, @@ -194,21 +188,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -218,29 +212,26 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_minimum_validation_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post.py index 2306cce1aa7..30467ad405c 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post.py @@ -61,21 +61,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_minimum_validation_with_signed_integer_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_minimum_validation_with_signed_integer_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -85,29 +85,26 @@ def _post_minimum_validation_with_signed_integer_request_body_oapg( @typing.overload def _post_minimum_validation_with_signed_integer_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_minimum_validation_with_signed_integer_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -159,21 +156,21 @@ class PostMinimumValidationWithSignedIntegerRequestBody(BaseApi): @typing.overload def post_minimum_validation_with_signed_integer_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_minimum_validation_with_signed_integer_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -183,29 +180,26 @@ def post_minimum_validation_with_signed_integer_request_body( @typing.overload def post_minimum_validation_with_signed_integer_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_minimum_validation_with_signed_integer_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_minimum_validation_with_signed_integer_request_body_oapg( body=body, content_type=content_type, @@ -220,21 +214,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -244,29 +238,26 @@ def post( @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_minimum_validation_with_signed_integer_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post.pyi index 440e9b16193..a8e76f4ec4d 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post.pyi @@ -35,21 +35,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_minimum_validation_with_signed_integer_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_minimum_validation_with_signed_integer_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,29 +59,26 @@ class BaseApi(api_client.Api): @typing.overload def _post_minimum_validation_with_signed_integer_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_minimum_validation_with_signed_integer_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -133,21 +130,21 @@ class PostMinimumValidationWithSignedIntegerRequestBody(BaseApi): @typing.overload def post_minimum_validation_with_signed_integer_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_minimum_validation_with_signed_integer_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -157,29 +154,26 @@ class PostMinimumValidationWithSignedIntegerRequestBody(BaseApi): @typing.overload def post_minimum_validation_with_signed_integer_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_minimum_validation_with_signed_integer_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_minimum_validation_with_signed_integer_request_body_oapg( body=body, content_type=content_type, @@ -194,21 +188,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -218,29 +212,26 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_minimum_validation_with_signed_integer_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minitems_validation_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minitems_validation_request_body/post.py index c61b9574a1f..c16f90818b8 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minitems_validation_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minitems_validation_request_body/post.py @@ -61,21 +61,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_minitems_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_minitems_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -85,29 +85,26 @@ def _post_minitems_validation_request_body_oapg( @typing.overload def _post_minitems_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_minitems_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -159,21 +156,21 @@ class PostMinitemsValidationRequestBody(BaseApi): @typing.overload def post_minitems_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_minitems_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -183,29 +180,26 @@ def post_minitems_validation_request_body( @typing.overload def post_minitems_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_minitems_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_minitems_validation_request_body_oapg( body=body, content_type=content_type, @@ -220,21 +214,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -244,29 +238,26 @@ def post( @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_minitems_validation_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minitems_validation_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minitems_validation_request_body/post.pyi index f06ac188a9a..1c33c964c29 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minitems_validation_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minitems_validation_request_body/post.pyi @@ -35,21 +35,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_minitems_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_minitems_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,29 +59,26 @@ class BaseApi(api_client.Api): @typing.overload def _post_minitems_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_minitems_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -133,21 +130,21 @@ class PostMinitemsValidationRequestBody(BaseApi): @typing.overload def post_minitems_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_minitems_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -157,29 +154,26 @@ class PostMinitemsValidationRequestBody(BaseApi): @typing.overload def post_minitems_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_minitems_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_minitems_validation_request_body_oapg( body=body, content_type=content_type, @@ -194,21 +188,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -218,29 +212,26 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_minitems_validation_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minlength_validation_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minlength_validation_request_body/post.py index 4677753488c..2e1de9fb6d8 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minlength_validation_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minlength_validation_request_body/post.py @@ -61,21 +61,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_minlength_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_minlength_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -85,29 +85,26 @@ def _post_minlength_validation_request_body_oapg( @typing.overload def _post_minlength_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_minlength_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -159,21 +156,21 @@ class PostMinlengthValidationRequestBody(BaseApi): @typing.overload def post_minlength_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_minlength_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -183,29 +180,26 @@ def post_minlength_validation_request_body( @typing.overload def post_minlength_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_minlength_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_minlength_validation_request_body_oapg( body=body, content_type=content_type, @@ -220,21 +214,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -244,29 +238,26 @@ def post( @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_minlength_validation_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minlength_validation_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minlength_validation_request_body/post.pyi index 70d0692be80..40266d38a20 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minlength_validation_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minlength_validation_request_body/post.pyi @@ -35,21 +35,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_minlength_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_minlength_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,29 +59,26 @@ class BaseApi(api_client.Api): @typing.overload def _post_minlength_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_minlength_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -133,21 +130,21 @@ class PostMinlengthValidationRequestBody(BaseApi): @typing.overload def post_minlength_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_minlength_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -157,29 +154,26 @@ class PostMinlengthValidationRequestBody(BaseApi): @typing.overload def post_minlength_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_minlength_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_minlength_validation_request_body_oapg( body=body, content_type=content_type, @@ -194,21 +188,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -218,29 +212,26 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_minlength_validation_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post.py index 2d5bcf20051..cd3e2a3a1cd 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post.py @@ -61,21 +61,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_minproperties_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_minproperties_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -85,29 +85,26 @@ def _post_minproperties_validation_request_body_oapg( @typing.overload def _post_minproperties_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_minproperties_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -159,21 +156,21 @@ class PostMinpropertiesValidationRequestBody(BaseApi): @typing.overload def post_minproperties_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_minproperties_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -183,29 +180,26 @@ def post_minproperties_validation_request_body( @typing.overload def post_minproperties_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_minproperties_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_minproperties_validation_request_body_oapg( body=body, content_type=content_type, @@ -220,21 +214,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -244,29 +238,26 @@ def post( @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_minproperties_validation_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post.pyi index 2477f7d549a..f3be424163d 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post.pyi @@ -35,21 +35,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_minproperties_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_minproperties_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,29 +59,26 @@ class BaseApi(api_client.Api): @typing.overload def _post_minproperties_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_minproperties_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -133,21 +130,21 @@ class PostMinpropertiesValidationRequestBody(BaseApi): @typing.overload def post_minproperties_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_minproperties_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -157,29 +154,26 @@ class PostMinpropertiesValidationRequestBody(BaseApi): @typing.overload def post_minproperties_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_minproperties_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_minproperties_validation_request_body_oapg( body=body, content_type=content_type, @@ -194,21 +188,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -218,29 +212,26 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_minproperties_validation_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post.py index 0f1a6e76e81..9491d46c18a 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post.py @@ -61,21 +61,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_nested_allof_to_check_validation_semantics_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_nested_allof_to_check_validation_semantics_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -85,29 +85,26 @@ def _post_nested_allof_to_check_validation_semantics_request_body_oapg( @typing.overload def _post_nested_allof_to_check_validation_semantics_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_nested_allof_to_check_validation_semantics_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -159,21 +156,21 @@ class PostNestedAllofToCheckValidationSemanticsRequestBody(BaseApi): @typing.overload def post_nested_allof_to_check_validation_semantics_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_nested_allof_to_check_validation_semantics_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -183,29 +180,26 @@ def post_nested_allof_to_check_validation_semantics_request_body( @typing.overload def post_nested_allof_to_check_validation_semantics_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_nested_allof_to_check_validation_semantics_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_nested_allof_to_check_validation_semantics_request_body_oapg( body=body, content_type=content_type, @@ -220,21 +214,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -244,29 +238,26 @@ def post( @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_nested_allof_to_check_validation_semantics_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post.pyi index 603bafde3c9..b9d587f203b 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post.pyi @@ -35,21 +35,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_nested_allof_to_check_validation_semantics_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_nested_allof_to_check_validation_semantics_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,29 +59,26 @@ class BaseApi(api_client.Api): @typing.overload def _post_nested_allof_to_check_validation_semantics_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_nested_allof_to_check_validation_semantics_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -133,21 +130,21 @@ class PostNestedAllofToCheckValidationSemanticsRequestBody(BaseApi): @typing.overload def post_nested_allof_to_check_validation_semantics_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_nested_allof_to_check_validation_semantics_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -157,29 +154,26 @@ class PostNestedAllofToCheckValidationSemanticsRequestBody(BaseApi): @typing.overload def post_nested_allof_to_check_validation_semantics_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_nested_allof_to_check_validation_semantics_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_nested_allof_to_check_validation_semantics_request_body_oapg( body=body, content_type=content_type, @@ -194,21 +188,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -218,29 +212,26 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_nested_allof_to_check_validation_semantics_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post.py index 66fe1bfdf7d..c499e8f98d9 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post.py @@ -61,21 +61,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_nested_anyof_to_check_validation_semantics_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_nested_anyof_to_check_validation_semantics_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -85,29 +85,26 @@ def _post_nested_anyof_to_check_validation_semantics_request_body_oapg( @typing.overload def _post_nested_anyof_to_check_validation_semantics_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_nested_anyof_to_check_validation_semantics_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -159,21 +156,21 @@ class PostNestedAnyofToCheckValidationSemanticsRequestBody(BaseApi): @typing.overload def post_nested_anyof_to_check_validation_semantics_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_nested_anyof_to_check_validation_semantics_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -183,29 +180,26 @@ def post_nested_anyof_to_check_validation_semantics_request_body( @typing.overload def post_nested_anyof_to_check_validation_semantics_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_nested_anyof_to_check_validation_semantics_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_nested_anyof_to_check_validation_semantics_request_body_oapg( body=body, content_type=content_type, @@ -220,21 +214,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -244,29 +238,26 @@ def post( @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_nested_anyof_to_check_validation_semantics_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post.pyi index 154acaadedd..17bacec2ff8 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post.pyi @@ -35,21 +35,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_nested_anyof_to_check_validation_semantics_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_nested_anyof_to_check_validation_semantics_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,29 +59,26 @@ class BaseApi(api_client.Api): @typing.overload def _post_nested_anyof_to_check_validation_semantics_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_nested_anyof_to_check_validation_semantics_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -133,21 +130,21 @@ class PostNestedAnyofToCheckValidationSemanticsRequestBody(BaseApi): @typing.overload def post_nested_anyof_to_check_validation_semantics_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_nested_anyof_to_check_validation_semantics_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -157,29 +154,26 @@ class PostNestedAnyofToCheckValidationSemanticsRequestBody(BaseApi): @typing.overload def post_nested_anyof_to_check_validation_semantics_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_nested_anyof_to_check_validation_semantics_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_nested_anyof_to_check_validation_semantics_request_body_oapg( body=body, content_type=content_type, @@ -194,21 +188,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -218,29 +212,26 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_nested_anyof_to_check_validation_semantics_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_items_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_items_request_body/post.py index d58df883e32..ed8743801b2 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_items_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_items_request_body/post.py @@ -61,21 +61,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_nested_items_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_nested_items_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -85,29 +85,26 @@ def _post_nested_items_request_body_oapg( @typing.overload def _post_nested_items_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_nested_items_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -159,21 +156,21 @@ class PostNestedItemsRequestBody(BaseApi): @typing.overload def post_nested_items_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_nested_items_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -183,29 +180,26 @@ def post_nested_items_request_body( @typing.overload def post_nested_items_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_nested_items_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_nested_items_request_body_oapg( body=body, content_type=content_type, @@ -220,21 +214,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -244,29 +238,26 @@ def post( @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_nested_items_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_items_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_items_request_body/post.pyi index 2a7d71b3eef..67303cb2cd8 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_items_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_items_request_body/post.pyi @@ -35,21 +35,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_nested_items_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_nested_items_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,29 +59,26 @@ class BaseApi(api_client.Api): @typing.overload def _post_nested_items_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_nested_items_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -133,21 +130,21 @@ class PostNestedItemsRequestBody(BaseApi): @typing.overload def post_nested_items_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_nested_items_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -157,29 +154,26 @@ class PostNestedItemsRequestBody(BaseApi): @typing.overload def post_nested_items_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_nested_items_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_nested_items_request_body_oapg( body=body, content_type=content_type, @@ -194,21 +188,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -218,29 +212,26 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_nested_items_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post.py index e6b87a9864a..ac8d51c046b 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post.py @@ -61,21 +61,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_nested_oneof_to_check_validation_semantics_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_nested_oneof_to_check_validation_semantics_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -85,29 +85,26 @@ def _post_nested_oneof_to_check_validation_semantics_request_body_oapg( @typing.overload def _post_nested_oneof_to_check_validation_semantics_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_nested_oneof_to_check_validation_semantics_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -159,21 +156,21 @@ class PostNestedOneofToCheckValidationSemanticsRequestBody(BaseApi): @typing.overload def post_nested_oneof_to_check_validation_semantics_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_nested_oneof_to_check_validation_semantics_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -183,29 +180,26 @@ def post_nested_oneof_to_check_validation_semantics_request_body( @typing.overload def post_nested_oneof_to_check_validation_semantics_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_nested_oneof_to_check_validation_semantics_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_nested_oneof_to_check_validation_semantics_request_body_oapg( body=body, content_type=content_type, @@ -220,21 +214,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -244,29 +238,26 @@ def post( @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_nested_oneof_to_check_validation_semantics_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post.pyi index 69fc29e7950..c5d3e1c6056 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post.pyi @@ -35,21 +35,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_nested_oneof_to_check_validation_semantics_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_nested_oneof_to_check_validation_semantics_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,29 +59,26 @@ class BaseApi(api_client.Api): @typing.overload def _post_nested_oneof_to_check_validation_semantics_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_nested_oneof_to_check_validation_semantics_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -133,21 +130,21 @@ class PostNestedOneofToCheckValidationSemanticsRequestBody(BaseApi): @typing.overload def post_nested_oneof_to_check_validation_semantics_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_nested_oneof_to_check_validation_semantics_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -157,29 +154,26 @@ class PostNestedOneofToCheckValidationSemanticsRequestBody(BaseApi): @typing.overload def post_nested_oneof_to_check_validation_semantics_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_nested_oneof_to_check_validation_semantics_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_nested_oneof_to_check_validation_semantics_request_body_oapg( body=body, content_type=content_type, @@ -194,21 +188,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -218,29 +212,26 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_nested_oneof_to_check_validation_semantics_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post.py index ec1601abfb7..bc69f89e3de 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post.py @@ -130,21 +130,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_not_more_complex_schema_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_not_more_complex_schema_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -154,29 +154,26 @@ def _post_not_more_complex_schema_request_body_oapg( @typing.overload def _post_not_more_complex_schema_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_not_more_complex_schema_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -228,21 +225,21 @@ class PostNotMoreComplexSchemaRequestBody(BaseApi): @typing.overload def post_not_more_complex_schema_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_not_more_complex_schema_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -252,29 +249,26 @@ def post_not_more_complex_schema_request_body( @typing.overload def post_not_more_complex_schema_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_not_more_complex_schema_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_not_more_complex_schema_request_body_oapg( body=body, content_type=content_type, @@ -289,21 +283,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -313,29 +307,26 @@ def post( @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_not_more_complex_schema_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post.pyi index 74cb16a7167..d0639aef0b5 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post.pyi @@ -104,21 +104,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_not_more_complex_schema_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_not_more_complex_schema_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -128,29 +128,26 @@ class BaseApi(api_client.Api): @typing.overload def _post_not_more_complex_schema_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_not_more_complex_schema_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -202,21 +199,21 @@ class PostNotMoreComplexSchemaRequestBody(BaseApi): @typing.overload def post_not_more_complex_schema_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_not_more_complex_schema_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -226,29 +223,26 @@ class PostNotMoreComplexSchemaRequestBody(BaseApi): @typing.overload def post_not_more_complex_schema_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_not_more_complex_schema_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_not_more_complex_schema_request_body_oapg( body=body, content_type=content_type, @@ -263,21 +257,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -287,29 +281,26 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_not_more_complex_schema_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_not_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_not_request_body/post.py index 2efb4ce5601..6cfcd90fbdc 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_not_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_not_request_body/post.py @@ -81,21 +81,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_not_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_not_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -105,29 +105,26 @@ def _post_not_request_body_oapg( @typing.overload def _post_not_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_not_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -179,21 +176,21 @@ class PostNotRequestBody(BaseApi): @typing.overload def post_not_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_not_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -203,29 +200,26 @@ def post_not_request_body( @typing.overload def post_not_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_not_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_not_request_body_oapg( body=body, content_type=content_type, @@ -240,21 +234,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -264,29 +258,26 @@ def post( @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_not_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_not_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_not_request_body/post.pyi index 3b0d40f042a..3b5a981e8b7 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_not_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_not_request_body/post.pyi @@ -55,21 +55,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_not_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_not_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -79,29 +79,26 @@ class BaseApi(api_client.Api): @typing.overload def _post_not_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_not_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -153,21 +150,21 @@ class PostNotRequestBody(BaseApi): @typing.overload def post_not_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_not_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -177,29 +174,26 @@ class PostNotRequestBody(BaseApi): @typing.overload def post_not_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_not_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_not_request_body_oapg( body=body, content_type=content_type, @@ -214,21 +208,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -238,29 +232,26 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_not_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post.py index fa0b0aea10b..94f20101f24 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post.py @@ -61,21 +61,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_nul_characters_in_strings_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_nul_characters_in_strings_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -85,29 +85,26 @@ def _post_nul_characters_in_strings_request_body_oapg( @typing.overload def _post_nul_characters_in_strings_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_nul_characters_in_strings_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -159,21 +156,21 @@ class PostNulCharactersInStringsRequestBody(BaseApi): @typing.overload def post_nul_characters_in_strings_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_nul_characters_in_strings_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -183,29 +180,26 @@ def post_nul_characters_in_strings_request_body( @typing.overload def post_nul_characters_in_strings_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_nul_characters_in_strings_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_nul_characters_in_strings_request_body_oapg( body=body, content_type=content_type, @@ -220,21 +214,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -244,29 +238,26 @@ def post( @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_nul_characters_in_strings_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post.pyi index 29d828a730e..6b3597d0648 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post.pyi @@ -35,21 +35,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_nul_characters_in_strings_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_nul_characters_in_strings_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,29 +59,26 @@ class BaseApi(api_client.Api): @typing.overload def _post_nul_characters_in_strings_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_nul_characters_in_strings_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -133,21 +130,21 @@ class PostNulCharactersInStringsRequestBody(BaseApi): @typing.overload def post_nul_characters_in_strings_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_nul_characters_in_strings_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -157,29 +154,26 @@ class PostNulCharactersInStringsRequestBody(BaseApi): @typing.overload def post_nul_characters_in_strings_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_nul_characters_in_strings_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_nul_characters_in_strings_request_body_oapg( body=body, content_type=content_type, @@ -194,21 +188,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -218,29 +212,26 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_nul_characters_in_strings_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post.py index e93e3bcd912..f0298ee7a39 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post.py @@ -59,21 +59,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_null_type_matches_only_the_null_object_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, None, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,None, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_null_type_matches_only_the_null_object_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, None, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,None, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -83,29 +83,26 @@ def _post_null_type_matches_only_the_null_object_request_body_oapg( @typing.overload def _post_null_type_matches_only_the_null_object_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, None, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,None, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_null_type_matches_only_the_null_object_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, None, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -157,21 +154,21 @@ class PostNullTypeMatchesOnlyTheNullObjectRequestBody(BaseApi): @typing.overload def post_null_type_matches_only_the_null_object_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, None, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,None, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_null_type_matches_only_the_null_object_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, None, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,None, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -181,29 +178,26 @@ def post_null_type_matches_only_the_null_object_request_body( @typing.overload def post_null_type_matches_only_the_null_object_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, None, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,None, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_null_type_matches_only_the_null_object_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, None, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_null_type_matches_only_the_null_object_request_body_oapg( body=body, content_type=content_type, @@ -218,21 +212,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, None, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,None, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, None, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,None, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -242,29 +236,26 @@ def post( @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, None, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,None, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, None, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_null_type_matches_only_the_null_object_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post.pyi index e100a4d94c7..da3318b7a21 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post.pyi @@ -33,21 +33,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_null_type_matches_only_the_null_object_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, None, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,None, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_null_type_matches_only_the_null_object_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, None, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,None, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -57,29 +57,26 @@ class BaseApi(api_client.Api): @typing.overload def _post_null_type_matches_only_the_null_object_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, None, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,None, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_null_type_matches_only_the_null_object_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, None, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -131,21 +128,21 @@ class PostNullTypeMatchesOnlyTheNullObjectRequestBody(BaseApi): @typing.overload def post_null_type_matches_only_the_null_object_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, None, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,None, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_null_type_matches_only_the_null_object_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, None, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,None, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -155,29 +152,26 @@ class PostNullTypeMatchesOnlyTheNullObjectRequestBody(BaseApi): @typing.overload def post_null_type_matches_only_the_null_object_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, None, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,None, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_null_type_matches_only_the_null_object_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, None, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_null_type_matches_only_the_null_object_request_body_oapg( body=body, content_type=content_type, @@ -192,21 +186,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, None, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,None, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, None, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,None, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -216,29 +210,26 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, None, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,None, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, None, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_null_type_matches_only_the_null_object_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post.py index a9c8ac6344c..aa9dcdee2e3 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post.py @@ -59,21 +59,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_number_type_matches_numbers_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, decimal.Decimal, int, float, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,decimal.Decimal, int, float, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_number_type_matches_numbers_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, decimal.Decimal, int, float, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,decimal.Decimal, int, float, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -83,29 +83,26 @@ def _post_number_type_matches_numbers_request_body_oapg( @typing.overload def _post_number_type_matches_numbers_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, decimal.Decimal, int, float, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,decimal.Decimal, int, float, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_number_type_matches_numbers_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, decimal.Decimal, int, float, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -157,21 +154,21 @@ class PostNumberTypeMatchesNumbersRequestBody(BaseApi): @typing.overload def post_number_type_matches_numbers_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, decimal.Decimal, int, float, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,decimal.Decimal, int, float, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_number_type_matches_numbers_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, decimal.Decimal, int, float, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,decimal.Decimal, int, float, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -181,29 +178,26 @@ def post_number_type_matches_numbers_request_body( @typing.overload def post_number_type_matches_numbers_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, decimal.Decimal, int, float, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,decimal.Decimal, int, float, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_number_type_matches_numbers_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, decimal.Decimal, int, float, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_number_type_matches_numbers_request_body_oapg( body=body, content_type=content_type, @@ -218,21 +212,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, decimal.Decimal, int, float, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,decimal.Decimal, int, float, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, decimal.Decimal, int, float, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,decimal.Decimal, int, float, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -242,29 +236,26 @@ def post( @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, decimal.Decimal, int, float, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,decimal.Decimal, int, float, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, decimal.Decimal, int, float, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_number_type_matches_numbers_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post.pyi index f647aa1565e..882d790db80 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post.pyi @@ -33,21 +33,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_number_type_matches_numbers_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, decimal.Decimal, int, float, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,decimal.Decimal, int, float, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_number_type_matches_numbers_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, decimal.Decimal, int, float, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,decimal.Decimal, int, float, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -57,29 +57,26 @@ class BaseApi(api_client.Api): @typing.overload def _post_number_type_matches_numbers_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, decimal.Decimal, int, float, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,decimal.Decimal, int, float, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_number_type_matches_numbers_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, decimal.Decimal, int, float, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -131,21 +128,21 @@ class PostNumberTypeMatchesNumbersRequestBody(BaseApi): @typing.overload def post_number_type_matches_numbers_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, decimal.Decimal, int, float, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,decimal.Decimal, int, float, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_number_type_matches_numbers_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, decimal.Decimal, int, float, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,decimal.Decimal, int, float, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -155,29 +152,26 @@ class PostNumberTypeMatchesNumbersRequestBody(BaseApi): @typing.overload def post_number_type_matches_numbers_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, decimal.Decimal, int, float, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,decimal.Decimal, int, float, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_number_type_matches_numbers_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, decimal.Decimal, int, float, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_number_type_matches_numbers_request_body_oapg( body=body, content_type=content_type, @@ -192,21 +186,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, decimal.Decimal, int, float, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,decimal.Decimal, int, float, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, decimal.Decimal, int, float, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,decimal.Decimal, int, float, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -216,29 +210,26 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, decimal.Decimal, int, float, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,decimal.Decimal, int, float, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, decimal.Decimal, int, float, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_number_type_matches_numbers_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post.py index 61a27c0759b..7a2569566b1 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post.py @@ -61,21 +61,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_object_properties_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_object_properties_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -85,29 +85,26 @@ def _post_object_properties_validation_request_body_oapg( @typing.overload def _post_object_properties_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_object_properties_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -159,21 +156,21 @@ class PostObjectPropertiesValidationRequestBody(BaseApi): @typing.overload def post_object_properties_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_object_properties_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -183,29 +180,26 @@ def post_object_properties_validation_request_body( @typing.overload def post_object_properties_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_object_properties_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_object_properties_validation_request_body_oapg( body=body, content_type=content_type, @@ -220,21 +214,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -244,29 +238,26 @@ def post( @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_object_properties_validation_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post.pyi index 52b08e61279..cddc3d59e95 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post.pyi @@ -35,21 +35,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_object_properties_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_object_properties_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,29 +59,26 @@ class BaseApi(api_client.Api): @typing.overload def _post_object_properties_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_object_properties_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -133,21 +130,21 @@ class PostObjectPropertiesValidationRequestBody(BaseApi): @typing.overload def post_object_properties_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_object_properties_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -157,29 +154,26 @@ class PostObjectPropertiesValidationRequestBody(BaseApi): @typing.overload def post_object_properties_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_object_properties_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_object_properties_validation_request_body_oapg( body=body, content_type=content_type, @@ -194,21 +188,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -218,29 +212,26 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_object_properties_validation_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post.py index 30e906bbd97..d10dd5667d4 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post.py @@ -59,21 +59,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_object_type_matches_objects_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_object_type_matches_objects_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -83,29 +83,26 @@ def _post_object_type_matches_objects_request_body_oapg( @typing.overload def _post_object_type_matches_objects_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_object_type_matches_objects_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -157,21 +154,21 @@ class PostObjectTypeMatchesObjectsRequestBody(BaseApi): @typing.overload def post_object_type_matches_objects_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_object_type_matches_objects_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -181,29 +178,26 @@ def post_object_type_matches_objects_request_body( @typing.overload def post_object_type_matches_objects_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_object_type_matches_objects_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_object_type_matches_objects_request_body_oapg( body=body, content_type=content_type, @@ -218,21 +212,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -242,29 +236,26 @@ def post( @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_object_type_matches_objects_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post.pyi index 7c7c511c7ac..2287196c2e9 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post.pyi @@ -33,21 +33,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_object_type_matches_objects_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_object_type_matches_objects_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -57,29 +57,26 @@ class BaseApi(api_client.Api): @typing.overload def _post_object_type_matches_objects_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_object_type_matches_objects_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -131,21 +128,21 @@ class PostObjectTypeMatchesObjectsRequestBody(BaseApi): @typing.overload def post_object_type_matches_objects_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_object_type_matches_objects_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -155,29 +152,26 @@ class PostObjectTypeMatchesObjectsRequestBody(BaseApi): @typing.overload def post_object_type_matches_objects_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_object_type_matches_objects_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_object_type_matches_objects_request_body_oapg( body=body, content_type=content_type, @@ -192,21 +186,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -216,29 +210,26 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_object_type_matches_objects_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post.py index 1d50064c396..a5d3f5c38ec 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post.py @@ -61,21 +61,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_oneof_complex_types_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_oneof_complex_types_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -85,29 +85,26 @@ def _post_oneof_complex_types_request_body_oapg( @typing.overload def _post_oneof_complex_types_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_oneof_complex_types_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -159,21 +156,21 @@ class PostOneofComplexTypesRequestBody(BaseApi): @typing.overload def post_oneof_complex_types_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_oneof_complex_types_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -183,29 +180,26 @@ def post_oneof_complex_types_request_body( @typing.overload def post_oneof_complex_types_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_oneof_complex_types_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_oneof_complex_types_request_body_oapg( body=body, content_type=content_type, @@ -220,21 +214,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -244,29 +238,26 @@ def post( @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_oneof_complex_types_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post.pyi index f6c2fae585c..f1eff1228c4 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post.pyi @@ -35,21 +35,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_oneof_complex_types_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_oneof_complex_types_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,29 +59,26 @@ class BaseApi(api_client.Api): @typing.overload def _post_oneof_complex_types_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_oneof_complex_types_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -133,21 +130,21 @@ class PostOneofComplexTypesRequestBody(BaseApi): @typing.overload def post_oneof_complex_types_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_oneof_complex_types_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -157,29 +154,26 @@ class PostOneofComplexTypesRequestBody(BaseApi): @typing.overload def post_oneof_complex_types_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_oneof_complex_types_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_oneof_complex_types_request_body_oapg( body=body, content_type=content_type, @@ -194,21 +188,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -218,29 +212,26 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_oneof_complex_types_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_request_body/post.py index c12247a7e8e..87ba5b962ef 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_request_body/post.py @@ -61,21 +61,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_oneof_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_oneof_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -85,29 +85,26 @@ def _post_oneof_request_body_oapg( @typing.overload def _post_oneof_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_oneof_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -159,21 +156,21 @@ class PostOneofRequestBody(BaseApi): @typing.overload def post_oneof_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_oneof_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -183,29 +180,26 @@ def post_oneof_request_body( @typing.overload def post_oneof_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_oneof_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_oneof_request_body_oapg( body=body, content_type=content_type, @@ -220,21 +214,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -244,29 +238,26 @@ def post( @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_oneof_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_request_body/post.pyi index a5e7b4ba6e3..3b2008012b8 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_request_body/post.pyi @@ -35,21 +35,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_oneof_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_oneof_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,29 +59,26 @@ class BaseApi(api_client.Api): @typing.overload def _post_oneof_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_oneof_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -133,21 +130,21 @@ class PostOneofRequestBody(BaseApi): @typing.overload def post_oneof_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_oneof_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -157,29 +154,26 @@ class PostOneofRequestBody(BaseApi): @typing.overload def post_oneof_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_oneof_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_oneof_request_body_oapg( body=body, content_type=content_type, @@ -194,21 +188,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -218,29 +212,26 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_oneof_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post.py index fe9c2be7b78..40daf6c75e4 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post.py @@ -61,21 +61,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_oneof_with_base_schema_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_oneof_with_base_schema_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -85,29 +85,26 @@ def _post_oneof_with_base_schema_request_body_oapg( @typing.overload def _post_oneof_with_base_schema_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_oneof_with_base_schema_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -159,21 +156,21 @@ class PostOneofWithBaseSchemaRequestBody(BaseApi): @typing.overload def post_oneof_with_base_schema_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_oneof_with_base_schema_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -183,29 +180,26 @@ def post_oneof_with_base_schema_request_body( @typing.overload def post_oneof_with_base_schema_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_oneof_with_base_schema_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_oneof_with_base_schema_request_body_oapg( body=body, content_type=content_type, @@ -220,21 +214,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -244,29 +238,26 @@ def post( @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_oneof_with_base_schema_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post.pyi index c45785f8a18..55e2c6414eb 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post.pyi @@ -35,21 +35,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_oneof_with_base_schema_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_oneof_with_base_schema_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,29 +59,26 @@ class BaseApi(api_client.Api): @typing.overload def _post_oneof_with_base_schema_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_oneof_with_base_schema_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -133,21 +130,21 @@ class PostOneofWithBaseSchemaRequestBody(BaseApi): @typing.overload def post_oneof_with_base_schema_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_oneof_with_base_schema_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -157,29 +154,26 @@ class PostOneofWithBaseSchemaRequestBody(BaseApi): @typing.overload def post_oneof_with_base_schema_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_oneof_with_base_schema_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_oneof_with_base_schema_request_body_oapg( body=body, content_type=content_type, @@ -194,21 +188,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -218,29 +212,26 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_oneof_with_base_schema_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post.py index 8a6b023c64a..944b7870d59 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post.py @@ -61,21 +61,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_oneof_with_empty_schema_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_oneof_with_empty_schema_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -85,29 +85,26 @@ def _post_oneof_with_empty_schema_request_body_oapg( @typing.overload def _post_oneof_with_empty_schema_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_oneof_with_empty_schema_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -159,21 +156,21 @@ class PostOneofWithEmptySchemaRequestBody(BaseApi): @typing.overload def post_oneof_with_empty_schema_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_oneof_with_empty_schema_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -183,29 +180,26 @@ def post_oneof_with_empty_schema_request_body( @typing.overload def post_oneof_with_empty_schema_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_oneof_with_empty_schema_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_oneof_with_empty_schema_request_body_oapg( body=body, content_type=content_type, @@ -220,21 +214,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -244,29 +238,26 @@ def post( @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_oneof_with_empty_schema_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post.pyi index 5633a68eb0a..adc7374ab68 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post.pyi @@ -35,21 +35,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_oneof_with_empty_schema_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_oneof_with_empty_schema_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,29 +59,26 @@ class BaseApi(api_client.Api): @typing.overload def _post_oneof_with_empty_schema_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_oneof_with_empty_schema_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -133,21 +130,21 @@ class PostOneofWithEmptySchemaRequestBody(BaseApi): @typing.overload def post_oneof_with_empty_schema_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_oneof_with_empty_schema_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -157,29 +154,26 @@ class PostOneofWithEmptySchemaRequestBody(BaseApi): @typing.overload def post_oneof_with_empty_schema_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_oneof_with_empty_schema_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_oneof_with_empty_schema_request_body_oapg( body=body, content_type=content_type, @@ -194,21 +188,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -218,29 +212,26 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_oneof_with_empty_schema_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post.py index 8250028a15a..7d41b1ede5c 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post.py @@ -61,21 +61,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_oneof_with_required_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_oneof_with_required_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -85,29 +85,26 @@ def _post_oneof_with_required_request_body_oapg( @typing.overload def _post_oneof_with_required_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_oneof_with_required_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -159,21 +156,21 @@ class PostOneofWithRequiredRequestBody(BaseApi): @typing.overload def post_oneof_with_required_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_oneof_with_required_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -183,29 +180,26 @@ def post_oneof_with_required_request_body( @typing.overload def post_oneof_with_required_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_oneof_with_required_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_oneof_with_required_request_body_oapg( body=body, content_type=content_type, @@ -220,21 +214,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -244,29 +238,26 @@ def post( @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_oneof_with_required_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post.pyi index 42e7ed5e9df..e2946bc9f14 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post.pyi @@ -35,21 +35,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_oneof_with_required_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_oneof_with_required_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,29 +59,26 @@ class BaseApi(api_client.Api): @typing.overload def _post_oneof_with_required_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_oneof_with_required_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -133,21 +130,21 @@ class PostOneofWithRequiredRequestBody(BaseApi): @typing.overload def post_oneof_with_required_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_oneof_with_required_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -157,29 +154,26 @@ class PostOneofWithRequiredRequestBody(BaseApi): @typing.overload def post_oneof_with_required_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_oneof_with_required_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_oneof_with_required_request_body_oapg( body=body, content_type=content_type, @@ -194,21 +188,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -218,29 +212,26 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_oneof_with_required_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post.py index fc2a3b9dc93..3599e977af1 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post.py @@ -61,21 +61,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_pattern_is_not_anchored_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_pattern_is_not_anchored_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -85,29 +85,26 @@ def _post_pattern_is_not_anchored_request_body_oapg( @typing.overload def _post_pattern_is_not_anchored_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_pattern_is_not_anchored_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -159,21 +156,21 @@ class PostPatternIsNotAnchoredRequestBody(BaseApi): @typing.overload def post_pattern_is_not_anchored_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_pattern_is_not_anchored_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -183,29 +180,26 @@ def post_pattern_is_not_anchored_request_body( @typing.overload def post_pattern_is_not_anchored_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_pattern_is_not_anchored_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_pattern_is_not_anchored_request_body_oapg( body=body, content_type=content_type, @@ -220,21 +214,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -244,29 +238,26 @@ def post( @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_pattern_is_not_anchored_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post.pyi index 71ca36a89d7..ef2e85ad4b1 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post.pyi @@ -35,21 +35,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_pattern_is_not_anchored_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_pattern_is_not_anchored_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,29 +59,26 @@ class BaseApi(api_client.Api): @typing.overload def _post_pattern_is_not_anchored_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_pattern_is_not_anchored_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -133,21 +130,21 @@ class PostPatternIsNotAnchoredRequestBody(BaseApi): @typing.overload def post_pattern_is_not_anchored_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_pattern_is_not_anchored_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -157,29 +154,26 @@ class PostPatternIsNotAnchoredRequestBody(BaseApi): @typing.overload def post_pattern_is_not_anchored_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_pattern_is_not_anchored_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_pattern_is_not_anchored_request_body_oapg( body=body, content_type=content_type, @@ -194,21 +188,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -218,29 +212,26 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_pattern_is_not_anchored_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_pattern_validation_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_pattern_validation_request_body/post.py index 62e6a898985..bca019c745d 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_pattern_validation_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_pattern_validation_request_body/post.py @@ -61,21 +61,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_pattern_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_pattern_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -85,29 +85,26 @@ def _post_pattern_validation_request_body_oapg( @typing.overload def _post_pattern_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_pattern_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -159,21 +156,21 @@ class PostPatternValidationRequestBody(BaseApi): @typing.overload def post_pattern_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_pattern_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -183,29 +180,26 @@ def post_pattern_validation_request_body( @typing.overload def post_pattern_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_pattern_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_pattern_validation_request_body_oapg( body=body, content_type=content_type, @@ -220,21 +214,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -244,29 +238,26 @@ def post( @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_pattern_validation_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_pattern_validation_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_pattern_validation_request_body/post.pyi index caccfe0beae..c5cfbf87c87 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_pattern_validation_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_pattern_validation_request_body/post.pyi @@ -35,21 +35,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_pattern_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_pattern_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,29 +59,26 @@ class BaseApi(api_client.Api): @typing.overload def _post_pattern_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_pattern_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -133,21 +130,21 @@ class PostPatternValidationRequestBody(BaseApi): @typing.overload def post_pattern_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_pattern_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -157,29 +154,26 @@ class PostPatternValidationRequestBody(BaseApi): @typing.overload def post_pattern_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_pattern_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_pattern_validation_request_body_oapg( body=body, content_type=content_type, @@ -194,21 +188,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -218,29 +212,26 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_pattern_validation_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post.py index 91f0ead5c2d..029214efccd 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post.py @@ -61,21 +61,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_properties_with_escaped_characters_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_properties_with_escaped_characters_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -85,29 +85,26 @@ def _post_properties_with_escaped_characters_request_body_oapg( @typing.overload def _post_properties_with_escaped_characters_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_properties_with_escaped_characters_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -159,21 +156,21 @@ class PostPropertiesWithEscapedCharactersRequestBody(BaseApi): @typing.overload def post_properties_with_escaped_characters_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_properties_with_escaped_characters_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -183,29 +180,26 @@ def post_properties_with_escaped_characters_request_body( @typing.overload def post_properties_with_escaped_characters_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_properties_with_escaped_characters_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_properties_with_escaped_characters_request_body_oapg( body=body, content_type=content_type, @@ -220,21 +214,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -244,29 +238,26 @@ def post( @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_properties_with_escaped_characters_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post.pyi index 93685c3ad38..a06478ba12d 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post.pyi @@ -35,21 +35,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_properties_with_escaped_characters_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_properties_with_escaped_characters_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,29 +59,26 @@ class BaseApi(api_client.Api): @typing.overload def _post_properties_with_escaped_characters_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_properties_with_escaped_characters_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -133,21 +130,21 @@ class PostPropertiesWithEscapedCharactersRequestBody(BaseApi): @typing.overload def post_properties_with_escaped_characters_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_properties_with_escaped_characters_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -157,29 +154,26 @@ class PostPropertiesWithEscapedCharactersRequestBody(BaseApi): @typing.overload def post_properties_with_escaped_characters_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_properties_with_escaped_characters_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_properties_with_escaped_characters_request_body_oapg( body=body, content_type=content_type, @@ -194,21 +188,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -218,29 +212,26 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_properties_with_escaped_characters_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post.py index 5be001b4735..060818a8089 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post.py @@ -61,21 +61,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_property_named_ref_that_is_not_a_reference_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_property_named_ref_that_is_not_a_reference_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -85,29 +85,26 @@ def _post_property_named_ref_that_is_not_a_reference_request_body_oapg( @typing.overload def _post_property_named_ref_that_is_not_a_reference_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_property_named_ref_that_is_not_a_reference_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -159,21 +156,21 @@ class PostPropertyNamedRefThatIsNotAReferenceRequestBody(BaseApi): @typing.overload def post_property_named_ref_that_is_not_a_reference_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_property_named_ref_that_is_not_a_reference_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -183,29 +180,26 @@ def post_property_named_ref_that_is_not_a_reference_request_body( @typing.overload def post_property_named_ref_that_is_not_a_reference_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_property_named_ref_that_is_not_a_reference_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_property_named_ref_that_is_not_a_reference_request_body_oapg( body=body, content_type=content_type, @@ -220,21 +214,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -244,29 +238,26 @@ def post( @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_property_named_ref_that_is_not_a_reference_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post.pyi index a09256f6890..86a2e7a28de 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post.pyi @@ -35,21 +35,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_property_named_ref_that_is_not_a_reference_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_property_named_ref_that_is_not_a_reference_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,29 +59,26 @@ class BaseApi(api_client.Api): @typing.overload def _post_property_named_ref_that_is_not_a_reference_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_property_named_ref_that_is_not_a_reference_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -133,21 +130,21 @@ class PostPropertyNamedRefThatIsNotAReferenceRequestBody(BaseApi): @typing.overload def post_property_named_ref_that_is_not_a_reference_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_property_named_ref_that_is_not_a_reference_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -157,29 +154,26 @@ class PostPropertyNamedRefThatIsNotAReferenceRequestBody(BaseApi): @typing.overload def post_property_named_ref_that_is_not_a_reference_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_property_named_ref_that_is_not_a_reference_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_property_named_ref_that_is_not_a_reference_request_body_oapg( body=body, content_type=content_type, @@ -194,21 +188,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -218,29 +212,26 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_property_named_ref_that_is_not_a_reference_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_additionalproperties_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_additionalproperties_request_body/post.py index 39a196b3e0a..99c05b6c7d1 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_additionalproperties_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_additionalproperties_request_body/post.py @@ -61,21 +61,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_ref_in_additionalproperties_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_ref_in_additionalproperties_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -85,29 +85,26 @@ def _post_ref_in_additionalproperties_request_body_oapg( @typing.overload def _post_ref_in_additionalproperties_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_ref_in_additionalproperties_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -159,21 +156,21 @@ class PostRefInAdditionalpropertiesRequestBody(BaseApi): @typing.overload def post_ref_in_additionalproperties_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_ref_in_additionalproperties_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -183,29 +180,26 @@ def post_ref_in_additionalproperties_request_body( @typing.overload def post_ref_in_additionalproperties_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_ref_in_additionalproperties_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_ref_in_additionalproperties_request_body_oapg( body=body, content_type=content_type, @@ -220,21 +214,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -244,29 +238,26 @@ def post( @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_ref_in_additionalproperties_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_additionalproperties_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_additionalproperties_request_body/post.pyi index a97cc3a18e1..a65ec1af7e6 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_additionalproperties_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_additionalproperties_request_body/post.pyi @@ -35,21 +35,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_ref_in_additionalproperties_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_ref_in_additionalproperties_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,29 +59,26 @@ class BaseApi(api_client.Api): @typing.overload def _post_ref_in_additionalproperties_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_ref_in_additionalproperties_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -133,21 +130,21 @@ class PostRefInAdditionalpropertiesRequestBody(BaseApi): @typing.overload def post_ref_in_additionalproperties_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_ref_in_additionalproperties_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -157,29 +154,26 @@ class PostRefInAdditionalpropertiesRequestBody(BaseApi): @typing.overload def post_ref_in_additionalproperties_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_ref_in_additionalproperties_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_ref_in_additionalproperties_request_body_oapg( body=body, content_type=content_type, @@ -194,21 +188,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -218,29 +212,26 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_ref_in_additionalproperties_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_allof_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_allof_request_body/post.py index de763f1675a..57eac9c3abd 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_allof_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_allof_request_body/post.py @@ -61,21 +61,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_ref_in_allof_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_ref_in_allof_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -85,29 +85,26 @@ def _post_ref_in_allof_request_body_oapg( @typing.overload def _post_ref_in_allof_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_ref_in_allof_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -159,21 +156,21 @@ class PostRefInAllofRequestBody(BaseApi): @typing.overload def post_ref_in_allof_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_ref_in_allof_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -183,29 +180,26 @@ def post_ref_in_allof_request_body( @typing.overload def post_ref_in_allof_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_ref_in_allof_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_ref_in_allof_request_body_oapg( body=body, content_type=content_type, @@ -220,21 +214,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -244,29 +238,26 @@ def post( @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_ref_in_allof_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_allof_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_allof_request_body/post.pyi index 9faab401b30..0a309316aa5 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_allof_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_allof_request_body/post.pyi @@ -35,21 +35,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_ref_in_allof_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_ref_in_allof_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,29 +59,26 @@ class BaseApi(api_client.Api): @typing.overload def _post_ref_in_allof_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_ref_in_allof_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -133,21 +130,21 @@ class PostRefInAllofRequestBody(BaseApi): @typing.overload def post_ref_in_allof_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_ref_in_allof_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -157,29 +154,26 @@ class PostRefInAllofRequestBody(BaseApi): @typing.overload def post_ref_in_allof_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_ref_in_allof_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_ref_in_allof_request_body_oapg( body=body, content_type=content_type, @@ -194,21 +188,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -218,29 +212,26 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_ref_in_allof_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_anyof_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_anyof_request_body/post.py index ac9e49425ca..cac8ab126a0 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_anyof_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_anyof_request_body/post.py @@ -61,21 +61,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_ref_in_anyof_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_ref_in_anyof_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -85,29 +85,26 @@ def _post_ref_in_anyof_request_body_oapg( @typing.overload def _post_ref_in_anyof_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_ref_in_anyof_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -159,21 +156,21 @@ class PostRefInAnyofRequestBody(BaseApi): @typing.overload def post_ref_in_anyof_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_ref_in_anyof_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -183,29 +180,26 @@ def post_ref_in_anyof_request_body( @typing.overload def post_ref_in_anyof_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_ref_in_anyof_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_ref_in_anyof_request_body_oapg( body=body, content_type=content_type, @@ -220,21 +214,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -244,29 +238,26 @@ def post( @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_ref_in_anyof_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_anyof_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_anyof_request_body/post.pyi index d28c04bf35d..e792ca8b485 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_anyof_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_anyof_request_body/post.pyi @@ -35,21 +35,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_ref_in_anyof_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_ref_in_anyof_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,29 +59,26 @@ class BaseApi(api_client.Api): @typing.overload def _post_ref_in_anyof_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_ref_in_anyof_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -133,21 +130,21 @@ class PostRefInAnyofRequestBody(BaseApi): @typing.overload def post_ref_in_anyof_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_ref_in_anyof_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -157,29 +154,26 @@ class PostRefInAnyofRequestBody(BaseApi): @typing.overload def post_ref_in_anyof_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_ref_in_anyof_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_ref_in_anyof_request_body_oapg( body=body, content_type=content_type, @@ -194,21 +188,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -218,29 +212,26 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_ref_in_anyof_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_items_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_items_request_body/post.py index 46abac2d39b..d9fa22501e8 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_items_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_items_request_body/post.py @@ -61,21 +61,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_ref_in_items_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_ref_in_items_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -85,29 +85,26 @@ def _post_ref_in_items_request_body_oapg( @typing.overload def _post_ref_in_items_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_ref_in_items_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -159,21 +156,21 @@ class PostRefInItemsRequestBody(BaseApi): @typing.overload def post_ref_in_items_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_ref_in_items_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -183,29 +180,26 @@ def post_ref_in_items_request_body( @typing.overload def post_ref_in_items_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_ref_in_items_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_ref_in_items_request_body_oapg( body=body, content_type=content_type, @@ -220,21 +214,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -244,29 +238,26 @@ def post( @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_ref_in_items_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_items_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_items_request_body/post.pyi index 449e4a81a79..201f8e412c1 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_items_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_items_request_body/post.pyi @@ -35,21 +35,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_ref_in_items_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_ref_in_items_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,29 +59,26 @@ class BaseApi(api_client.Api): @typing.overload def _post_ref_in_items_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_ref_in_items_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -133,21 +130,21 @@ class PostRefInItemsRequestBody(BaseApi): @typing.overload def post_ref_in_items_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_ref_in_items_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -157,29 +154,26 @@ class PostRefInItemsRequestBody(BaseApi): @typing.overload def post_ref_in_items_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_ref_in_items_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_ref_in_items_request_body_oapg( body=body, content_type=content_type, @@ -194,21 +188,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -218,29 +212,26 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_ref_in_items_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_not_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_not_request_body/post.py index 71547b803f6..f4f7ccbacfb 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_not_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_not_request_body/post.py @@ -86,21 +86,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_ref_in_not_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_ref_in_not_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -110,29 +110,26 @@ def _post_ref_in_not_request_body_oapg( @typing.overload def _post_ref_in_not_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_ref_in_not_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -184,21 +181,21 @@ class PostRefInNotRequestBody(BaseApi): @typing.overload def post_ref_in_not_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_ref_in_not_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -208,29 +205,26 @@ def post_ref_in_not_request_body( @typing.overload def post_ref_in_not_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_ref_in_not_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_ref_in_not_request_body_oapg( body=body, content_type=content_type, @@ -245,21 +239,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -269,29 +263,26 @@ def post( @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_ref_in_not_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_not_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_not_request_body/post.pyi index f88ea2e23fb..39e6421bc82 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_not_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_not_request_body/post.pyi @@ -60,21 +60,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_ref_in_not_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_ref_in_not_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -84,29 +84,26 @@ class BaseApi(api_client.Api): @typing.overload def _post_ref_in_not_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_ref_in_not_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -158,21 +155,21 @@ class PostRefInNotRequestBody(BaseApi): @typing.overload def post_ref_in_not_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_ref_in_not_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -182,29 +179,26 @@ class PostRefInNotRequestBody(BaseApi): @typing.overload def post_ref_in_not_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_ref_in_not_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_ref_in_not_request_body_oapg( body=body, content_type=content_type, @@ -219,21 +213,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -243,29 +237,26 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_ref_in_not_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_oneof_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_oneof_request_body/post.py index e8000cbddc2..5fdc006e10d 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_oneof_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_oneof_request_body/post.py @@ -61,21 +61,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_ref_in_oneof_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_ref_in_oneof_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -85,29 +85,26 @@ def _post_ref_in_oneof_request_body_oapg( @typing.overload def _post_ref_in_oneof_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_ref_in_oneof_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -159,21 +156,21 @@ class PostRefInOneofRequestBody(BaseApi): @typing.overload def post_ref_in_oneof_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_ref_in_oneof_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -183,29 +180,26 @@ def post_ref_in_oneof_request_body( @typing.overload def post_ref_in_oneof_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_ref_in_oneof_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_ref_in_oneof_request_body_oapg( body=body, content_type=content_type, @@ -220,21 +214,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -244,29 +238,26 @@ def post( @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_ref_in_oneof_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_oneof_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_oneof_request_body/post.pyi index 0a902e2e3f1..0b9d0d0687d 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_oneof_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_oneof_request_body/post.pyi @@ -35,21 +35,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_ref_in_oneof_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_ref_in_oneof_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,29 +59,26 @@ class BaseApi(api_client.Api): @typing.overload def _post_ref_in_oneof_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_ref_in_oneof_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -133,21 +130,21 @@ class PostRefInOneofRequestBody(BaseApi): @typing.overload def post_ref_in_oneof_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_ref_in_oneof_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -157,29 +154,26 @@ class PostRefInOneofRequestBody(BaseApi): @typing.overload def post_ref_in_oneof_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_ref_in_oneof_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_ref_in_oneof_request_body_oapg( body=body, content_type=content_type, @@ -194,21 +188,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -218,29 +212,26 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_ref_in_oneof_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_property_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_property_request_body/post.py index d2e0eb61aad..20a1282c53e 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_property_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_property_request_body/post.py @@ -61,21 +61,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_ref_in_property_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_ref_in_property_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -85,29 +85,26 @@ def _post_ref_in_property_request_body_oapg( @typing.overload def _post_ref_in_property_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_ref_in_property_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -159,21 +156,21 @@ class PostRefInPropertyRequestBody(BaseApi): @typing.overload def post_ref_in_property_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_ref_in_property_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -183,29 +180,26 @@ def post_ref_in_property_request_body( @typing.overload def post_ref_in_property_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_ref_in_property_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_ref_in_property_request_body_oapg( body=body, content_type=content_type, @@ -220,21 +214,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -244,29 +238,26 @@ def post( @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_ref_in_property_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_property_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_property_request_body/post.pyi index 2930b5b4902..e52a17ae898 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_property_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_property_request_body/post.pyi @@ -35,21 +35,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_ref_in_property_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_ref_in_property_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,29 +59,26 @@ class BaseApi(api_client.Api): @typing.overload def _post_ref_in_property_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_ref_in_property_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -133,21 +130,21 @@ class PostRefInPropertyRequestBody(BaseApi): @typing.overload def post_ref_in_property_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_ref_in_property_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -157,29 +154,26 @@ class PostRefInPropertyRequestBody(BaseApi): @typing.overload def post_ref_in_property_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_ref_in_property_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_ref_in_property_request_body_oapg( body=body, content_type=content_type, @@ -194,21 +188,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -218,29 +212,26 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_ref_in_property_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_default_validation_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_default_validation_request_body/post.py index a1109527e13..59969c0d778 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_default_validation_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_default_validation_request_body/post.py @@ -61,21 +61,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_required_default_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_required_default_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -85,29 +85,26 @@ def _post_required_default_validation_request_body_oapg( @typing.overload def _post_required_default_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_required_default_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -159,21 +156,21 @@ class PostRequiredDefaultValidationRequestBody(BaseApi): @typing.overload def post_required_default_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_required_default_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -183,29 +180,26 @@ def post_required_default_validation_request_body( @typing.overload def post_required_default_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_required_default_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_required_default_validation_request_body_oapg( body=body, content_type=content_type, @@ -220,21 +214,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -244,29 +238,26 @@ def post( @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_required_default_validation_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_default_validation_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_default_validation_request_body/post.pyi index b88fbe261ad..fc4589b42cb 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_default_validation_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_default_validation_request_body/post.pyi @@ -35,21 +35,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_required_default_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_required_default_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,29 +59,26 @@ class BaseApi(api_client.Api): @typing.overload def _post_required_default_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_required_default_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -133,21 +130,21 @@ class PostRequiredDefaultValidationRequestBody(BaseApi): @typing.overload def post_required_default_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_required_default_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -157,29 +154,26 @@ class PostRequiredDefaultValidationRequestBody(BaseApi): @typing.overload def post_required_default_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_required_default_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_required_default_validation_request_body_oapg( body=body, content_type=content_type, @@ -194,21 +188,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -218,29 +212,26 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_required_default_validation_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_validation_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_validation_request_body/post.py index 39ef50a5532..523f4f86b75 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_validation_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_validation_request_body/post.py @@ -61,21 +61,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_required_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_required_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -85,29 +85,26 @@ def _post_required_validation_request_body_oapg( @typing.overload def _post_required_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_required_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -159,21 +156,21 @@ class PostRequiredValidationRequestBody(BaseApi): @typing.overload def post_required_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_required_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -183,29 +180,26 @@ def post_required_validation_request_body( @typing.overload def post_required_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_required_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_required_validation_request_body_oapg( body=body, content_type=content_type, @@ -220,21 +214,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -244,29 +238,26 @@ def post( @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_required_validation_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_validation_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_validation_request_body/post.pyi index c6f7af6c0ec..fcdc6cba430 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_validation_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_validation_request_body/post.pyi @@ -35,21 +35,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_required_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_required_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,29 +59,26 @@ class BaseApi(api_client.Api): @typing.overload def _post_required_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_required_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -133,21 +130,21 @@ class PostRequiredValidationRequestBody(BaseApi): @typing.overload def post_required_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_required_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -157,29 +154,26 @@ class PostRequiredValidationRequestBody(BaseApi): @typing.overload def post_required_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_required_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_required_validation_request_body_oapg( body=body, content_type=content_type, @@ -194,21 +188,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -218,29 +212,26 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_required_validation_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post.py index e3a8b5e903c..ee76d8ad04d 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post.py @@ -61,21 +61,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_required_with_empty_array_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_required_with_empty_array_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -85,29 +85,26 @@ def _post_required_with_empty_array_request_body_oapg( @typing.overload def _post_required_with_empty_array_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_required_with_empty_array_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -159,21 +156,21 @@ class PostRequiredWithEmptyArrayRequestBody(BaseApi): @typing.overload def post_required_with_empty_array_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_required_with_empty_array_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -183,29 +180,26 @@ def post_required_with_empty_array_request_body( @typing.overload def post_required_with_empty_array_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_required_with_empty_array_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_required_with_empty_array_request_body_oapg( body=body, content_type=content_type, @@ -220,21 +214,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -244,29 +238,26 @@ def post( @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_required_with_empty_array_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post.pyi index 231c6f75081..a88b299624a 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post.pyi @@ -35,21 +35,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_required_with_empty_array_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_required_with_empty_array_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,29 +59,26 @@ class BaseApi(api_client.Api): @typing.overload def _post_required_with_empty_array_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_required_with_empty_array_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -133,21 +130,21 @@ class PostRequiredWithEmptyArrayRequestBody(BaseApi): @typing.overload def post_required_with_empty_array_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_required_with_empty_array_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -157,29 +154,26 @@ class PostRequiredWithEmptyArrayRequestBody(BaseApi): @typing.overload def post_required_with_empty_array_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_required_with_empty_array_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_required_with_empty_array_request_body_oapg( body=body, content_type=content_type, @@ -194,21 +188,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -218,29 +212,26 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_required_with_empty_array_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post.py index 747a56e677e..17b90f244a4 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post.py @@ -89,21 +89,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_required_with_escaped_characters_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_required_with_escaped_characters_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -113,29 +113,26 @@ def _post_required_with_escaped_characters_request_body_oapg( @typing.overload def _post_required_with_escaped_characters_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_required_with_escaped_characters_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -187,21 +184,21 @@ class PostRequiredWithEscapedCharactersRequestBody(BaseApi): @typing.overload def post_required_with_escaped_characters_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_required_with_escaped_characters_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -211,29 +208,26 @@ def post_required_with_escaped_characters_request_body( @typing.overload def post_required_with_escaped_characters_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_required_with_escaped_characters_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_required_with_escaped_characters_request_body_oapg( body=body, content_type=content_type, @@ -248,21 +242,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -272,29 +266,26 @@ def post( @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_required_with_escaped_characters_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post.pyi index c5cd5f24bf6..f8adfa1338a 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post.pyi @@ -63,21 +63,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_required_with_escaped_characters_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_required_with_escaped_characters_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -87,29 +87,26 @@ class BaseApi(api_client.Api): @typing.overload def _post_required_with_escaped_characters_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_required_with_escaped_characters_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -161,21 +158,21 @@ class PostRequiredWithEscapedCharactersRequestBody(BaseApi): @typing.overload def post_required_with_escaped_characters_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_required_with_escaped_characters_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -185,29 +182,26 @@ class PostRequiredWithEscapedCharactersRequestBody(BaseApi): @typing.overload def post_required_with_escaped_characters_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_required_with_escaped_characters_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_required_with_escaped_characters_request_body_oapg( body=body, content_type=content_type, @@ -222,21 +216,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -246,29 +240,26 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_required_with_escaped_characters_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post.py index 57803865cd3..9b586ae9ac6 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post.py @@ -61,21 +61,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_simple_enum_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_simple_enum_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -85,29 +85,26 @@ def _post_simple_enum_validation_request_body_oapg( @typing.overload def _post_simple_enum_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_simple_enum_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -159,21 +156,21 @@ class PostSimpleEnumValidationRequestBody(BaseApi): @typing.overload def post_simple_enum_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_simple_enum_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -183,29 +180,26 @@ def post_simple_enum_validation_request_body( @typing.overload def post_simple_enum_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_simple_enum_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_simple_enum_validation_request_body_oapg( body=body, content_type=content_type, @@ -220,21 +214,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -244,29 +238,26 @@ def post( @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_simple_enum_validation_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post.pyi index 3f156b839a4..df4db245286 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post.pyi @@ -35,21 +35,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_simple_enum_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_simple_enum_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,29 +59,26 @@ class BaseApi(api_client.Api): @typing.overload def _post_simple_enum_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_simple_enum_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -133,21 +130,21 @@ class PostSimpleEnumValidationRequestBody(BaseApi): @typing.overload def post_simple_enum_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_simple_enum_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -157,29 +154,26 @@ class PostSimpleEnumValidationRequestBody(BaseApi): @typing.overload def post_simple_enum_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_simple_enum_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_simple_enum_validation_request_body_oapg( body=body, content_type=content_type, @@ -194,21 +188,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -218,29 +212,26 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_simple_enum_validation_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post.py index 77d12251675..190383b5f97 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post.py @@ -59,21 +59,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_string_type_matches_strings_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, str, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,str, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_string_type_matches_strings_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, str, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,str, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -83,29 +83,26 @@ def _post_string_type_matches_strings_request_body_oapg( @typing.overload def _post_string_type_matches_strings_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, str, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,str, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_string_type_matches_strings_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, str, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -157,21 +154,21 @@ class PostStringTypeMatchesStringsRequestBody(BaseApi): @typing.overload def post_string_type_matches_strings_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, str, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,str, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_string_type_matches_strings_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, str, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,str, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -181,29 +178,26 @@ def post_string_type_matches_strings_request_body( @typing.overload def post_string_type_matches_strings_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, str, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,str, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_string_type_matches_strings_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, str, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_string_type_matches_strings_request_body_oapg( body=body, content_type=content_type, @@ -218,21 +212,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, str, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,str, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, str, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,str, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -242,29 +236,26 @@ def post( @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, str, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,str, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, str, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_string_type_matches_strings_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post.pyi index f091adfbde6..e11ec86c292 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post.pyi @@ -33,21 +33,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_string_type_matches_strings_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, str, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,str, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_string_type_matches_strings_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, str, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,str, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -57,29 +57,26 @@ class BaseApi(api_client.Api): @typing.overload def _post_string_type_matches_strings_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, str, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,str, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_string_type_matches_strings_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, str, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -131,21 +128,21 @@ class PostStringTypeMatchesStringsRequestBody(BaseApi): @typing.overload def post_string_type_matches_strings_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, str, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,str, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_string_type_matches_strings_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, str, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,str, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -155,29 +152,26 @@ class PostStringTypeMatchesStringsRequestBody(BaseApi): @typing.overload def post_string_type_matches_strings_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, str, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,str, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_string_type_matches_strings_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, str, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_string_type_matches_strings_request_body_oapg( body=body, content_type=content_type, @@ -192,21 +186,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, str, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,str, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, str, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,str, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -216,29 +210,26 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, str, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,str, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, str, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_string_type_matches_strings_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body/post.py index 9cbcccf5188..dd365753b9f 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body/post.py @@ -61,21 +61,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -85,29 +85,26 @@ def _post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_re @typing.overload def _post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -159,21 +156,21 @@ class PostTheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissingRequestBody(Ba @typing.overload def post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -183,29 +180,26 @@ def post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_req @typing.overload def post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body_oapg( body=body, content_type=content_type, @@ -220,21 +214,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -244,29 +238,26 @@ def post( @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body/post.pyi index f3bb885ae59..b8d9b860095 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body/post.pyi @@ -35,21 +35,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,29 +59,26 @@ class BaseApi(api_client.Api): @typing.overload def _post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -133,21 +130,21 @@ class PostTheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissingRequestBody(Ba @typing.overload def post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -157,29 +154,26 @@ class PostTheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissingRequestBody(Ba @typing.overload def post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body_oapg( body=body, content_type=content_type, @@ -194,21 +188,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -218,29 +212,26 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post.py index ab083ff97f2..e4c722222d8 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post.py @@ -61,21 +61,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_uniqueitems_false_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_uniqueitems_false_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -85,29 +85,26 @@ def _post_uniqueitems_false_validation_request_body_oapg( @typing.overload def _post_uniqueitems_false_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_uniqueitems_false_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -159,21 +156,21 @@ class PostUniqueitemsFalseValidationRequestBody(BaseApi): @typing.overload def post_uniqueitems_false_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_uniqueitems_false_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -183,29 +180,26 @@ def post_uniqueitems_false_validation_request_body( @typing.overload def post_uniqueitems_false_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_uniqueitems_false_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_uniqueitems_false_validation_request_body_oapg( body=body, content_type=content_type, @@ -220,21 +214,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -244,29 +238,26 @@ def post( @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_uniqueitems_false_validation_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post.pyi index 8871db7434d..b0ba33d2464 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post.pyi @@ -35,21 +35,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_uniqueitems_false_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_uniqueitems_false_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,29 +59,26 @@ class BaseApi(api_client.Api): @typing.overload def _post_uniqueitems_false_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_uniqueitems_false_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -133,21 +130,21 @@ class PostUniqueitemsFalseValidationRequestBody(BaseApi): @typing.overload def post_uniqueitems_false_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_uniqueitems_false_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -157,29 +154,26 @@ class PostUniqueitemsFalseValidationRequestBody(BaseApi): @typing.overload def post_uniqueitems_false_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_uniqueitems_false_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_uniqueitems_false_validation_request_body_oapg( body=body, content_type=content_type, @@ -194,21 +188,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -218,29 +212,26 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_uniqueitems_false_validation_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post.py index 0a7194152bc..35d7a2eb8fa 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post.py @@ -61,21 +61,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_uniqueitems_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_uniqueitems_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -85,29 +85,26 @@ def _post_uniqueitems_validation_request_body_oapg( @typing.overload def _post_uniqueitems_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_uniqueitems_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -159,21 +156,21 @@ class PostUniqueitemsValidationRequestBody(BaseApi): @typing.overload def post_uniqueitems_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_uniqueitems_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -183,29 +180,26 @@ def post_uniqueitems_validation_request_body( @typing.overload def post_uniqueitems_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_uniqueitems_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_uniqueitems_validation_request_body_oapg( body=body, content_type=content_type, @@ -220,21 +214,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -244,29 +238,26 @@ def post( @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_uniqueitems_validation_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post.pyi index f6bab7053bd..61b98dc9525 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post.pyi @@ -35,21 +35,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_uniqueitems_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_uniqueitems_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,29 +59,26 @@ class BaseApi(api_client.Api): @typing.overload def _post_uniqueitems_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_uniqueitems_validation_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -133,21 +130,21 @@ class PostUniqueitemsValidationRequestBody(BaseApi): @typing.overload def post_uniqueitems_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_uniqueitems_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -157,29 +154,26 @@ class PostUniqueitemsValidationRequestBody(BaseApi): @typing.overload def post_uniqueitems_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_uniqueitems_validation_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_uniqueitems_validation_request_body_oapg( body=body, content_type=content_type, @@ -194,21 +188,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -218,29 +212,26 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_uniqueitems_validation_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_format_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_format_request_body/post.py index 399ea4cb291..71116639b1c 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_format_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_format_request_body/post.py @@ -81,21 +81,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_uri_format_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_uri_format_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -105,29 +105,26 @@ def _post_uri_format_request_body_oapg( @typing.overload def _post_uri_format_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_uri_format_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -179,21 +176,21 @@ class PostUriFormatRequestBody(BaseApi): @typing.overload def post_uri_format_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_uri_format_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -203,29 +200,26 @@ def post_uri_format_request_body( @typing.overload def post_uri_format_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_uri_format_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_uri_format_request_body_oapg( body=body, content_type=content_type, @@ -240,21 +234,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -264,29 +258,26 @@ def post( @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_uri_format_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_format_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_format_request_body/post.pyi index 0e354069eca..bf26ee140a9 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_format_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_format_request_body/post.pyi @@ -55,21 +55,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_uri_format_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_uri_format_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -79,29 +79,26 @@ class BaseApi(api_client.Api): @typing.overload def _post_uri_format_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_uri_format_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -153,21 +150,21 @@ class PostUriFormatRequestBody(BaseApi): @typing.overload def post_uri_format_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_uri_format_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -177,29 +174,26 @@ class PostUriFormatRequestBody(BaseApi): @typing.overload def post_uri_format_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_uri_format_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_uri_format_request_body_oapg( body=body, content_type=content_type, @@ -214,21 +208,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -238,29 +232,26 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_uri_format_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post.py index f1eeb5ac717..2397434582b 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post.py @@ -81,21 +81,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_uri_reference_format_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_uri_reference_format_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -105,29 +105,26 @@ def _post_uri_reference_format_request_body_oapg( @typing.overload def _post_uri_reference_format_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_uri_reference_format_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -179,21 +176,21 @@ class PostUriReferenceFormatRequestBody(BaseApi): @typing.overload def post_uri_reference_format_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_uri_reference_format_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -203,29 +200,26 @@ def post_uri_reference_format_request_body( @typing.overload def post_uri_reference_format_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_uri_reference_format_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_uri_reference_format_request_body_oapg( body=body, content_type=content_type, @@ -240,21 +234,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -264,29 +258,26 @@ def post( @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_uri_reference_format_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post.pyi index 27dee50759b..889064f1641 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post.pyi @@ -55,21 +55,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_uri_reference_format_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_uri_reference_format_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -79,29 +79,26 @@ class BaseApi(api_client.Api): @typing.overload def _post_uri_reference_format_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_uri_reference_format_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -153,21 +150,21 @@ class PostUriReferenceFormatRequestBody(BaseApi): @typing.overload def post_uri_reference_format_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_uri_reference_format_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -177,29 +174,26 @@ class PostUriReferenceFormatRequestBody(BaseApi): @typing.overload def post_uri_reference_format_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_uri_reference_format_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_uri_reference_format_request_body_oapg( body=body, content_type=content_type, @@ -214,21 +208,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -238,29 +232,26 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_uri_reference_format_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_template_format_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_template_format_request_body/post.py index 248c4926937..7ac6ef9d5b4 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_template_format_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_template_format_request_body/post.py @@ -81,21 +81,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_uri_template_format_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_uri_template_format_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -105,29 +105,26 @@ def _post_uri_template_format_request_body_oapg( @typing.overload def _post_uri_template_format_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_uri_template_format_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -179,21 +176,21 @@ class PostUriTemplateFormatRequestBody(BaseApi): @typing.overload def post_uri_template_format_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_uri_template_format_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -203,29 +200,26 @@ def post_uri_template_format_request_body( @typing.overload def post_uri_template_format_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_uri_template_format_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_uri_template_format_request_body_oapg( body=body, content_type=content_type, @@ -240,21 +234,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -264,29 +258,26 @@ def post( @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_uri_template_format_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_template_format_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_template_format_request_body/post.pyi index 56e529b4f4f..c2a99c5b7a6 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_template_format_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_template_format_request_body/post.pyi @@ -55,21 +55,21 @@ class BaseApi(api_client.Api): @typing.overload def _post_uri_template_format_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_uri_template_format_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -79,29 +79,26 @@ class BaseApi(api_client.Api): @typing.overload def _post_uri_template_format_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_uri_template_format_request_body_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -153,21 +150,21 @@ class PostUriTemplateFormatRequestBody(BaseApi): @typing.overload def post_uri_template_format_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_uri_template_format_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -177,29 +174,26 @@ class PostUriTemplateFormatRequestBody(BaseApi): @typing.overload def post_uri_template_format_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_uri_template_format_request_body( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_uri_template_format_request_body_oapg( body=body, content_type=content_type, @@ -214,21 +208,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -238,29 +232,26 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_uri_template_format_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types/post.py index aa5097c02d6..5766ec54e05 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types/post.py @@ -60,19 +60,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -82,27 +82,24 @@ def _post_additionalproperties_allows_a_schema_which_should_validate_response_bo @typing.overload def _post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,19 +141,19 @@ class PostAdditionalpropertiesAllowsASchemaWhichShouldValidateResponseBodyForCon @typing.overload def post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -166,27 +163,24 @@ def post_additionalproperties_allows_a_schema_which_should_validate_response_bod @typing.overload def post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -200,19 +194,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -222,27 +216,24 @@ def post( @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types/post.pyi index 4d30e72db6d..44046acf5cc 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types/post.pyi @@ -37,19 +37,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,27 +59,24 @@ class BaseApi(api_client.Api): @typing.overload def _post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,19 +118,19 @@ class PostAdditionalpropertiesAllowsASchemaWhichShouldValidateResponseBodyForCon @typing.overload def post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -143,27 +140,24 @@ class PostAdditionalpropertiesAllowsASchemaWhichShouldValidateResponseBodyForCon @typing.overload def post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -177,19 +171,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -199,27 +193,24 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post.py index 751405a4975..c3316aac4aa 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post.py @@ -60,19 +60,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_additionalproperties_are_allowed_by_default_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_additionalproperties_are_allowed_by_default_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -82,27 +82,24 @@ def _post_additionalproperties_are_allowed_by_default_response_body_for_content_ @typing.overload def _post_additionalproperties_are_allowed_by_default_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_additionalproperties_are_allowed_by_default_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,19 +141,19 @@ class PostAdditionalpropertiesAreAllowedByDefaultResponseBodyForContentTypes(Bas @typing.overload def post_additionalproperties_are_allowed_by_default_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_additionalproperties_are_allowed_by_default_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -166,27 +163,24 @@ def post_additionalproperties_are_allowed_by_default_response_body_for_content_t @typing.overload def post_additionalproperties_are_allowed_by_default_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_additionalproperties_are_allowed_by_default_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_additionalproperties_are_allowed_by_default_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -200,19 +194,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -222,27 +216,24 @@ def post( @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_additionalproperties_are_allowed_by_default_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post.pyi index ef19e1c6189..3b531cf38ca 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post.pyi @@ -37,19 +37,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_additionalproperties_are_allowed_by_default_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_additionalproperties_are_allowed_by_default_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,27 +59,24 @@ class BaseApi(api_client.Api): @typing.overload def _post_additionalproperties_are_allowed_by_default_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_additionalproperties_are_allowed_by_default_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,19 +118,19 @@ class PostAdditionalpropertiesAreAllowedByDefaultResponseBodyForContentTypes(Bas @typing.overload def post_additionalproperties_are_allowed_by_default_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_additionalproperties_are_allowed_by_default_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -143,27 +140,24 @@ class PostAdditionalpropertiesAreAllowedByDefaultResponseBodyForContentTypes(Bas @typing.overload def post_additionalproperties_are_allowed_by_default_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_additionalproperties_are_allowed_by_default_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_additionalproperties_are_allowed_by_default_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -177,19 +171,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -199,27 +193,24 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_additionalproperties_are_allowed_by_default_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post.py index 3a07812d896..36e40b81ffb 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post.py @@ -60,19 +60,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_additionalproperties_can_exist_by_itself_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_additionalproperties_can_exist_by_itself_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -82,27 +82,24 @@ def _post_additionalproperties_can_exist_by_itself_response_body_for_content_typ @typing.overload def _post_additionalproperties_can_exist_by_itself_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_additionalproperties_can_exist_by_itself_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,19 +141,19 @@ class PostAdditionalpropertiesCanExistByItselfResponseBodyForContentTypes(BaseAp @typing.overload def post_additionalproperties_can_exist_by_itself_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_additionalproperties_can_exist_by_itself_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -166,27 +163,24 @@ def post_additionalproperties_can_exist_by_itself_response_body_for_content_type @typing.overload def post_additionalproperties_can_exist_by_itself_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_additionalproperties_can_exist_by_itself_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_additionalproperties_can_exist_by_itself_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -200,19 +194,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -222,27 +216,24 @@ def post( @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_additionalproperties_can_exist_by_itself_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post.pyi index 8e0c417ea8b..676ee2d34e1 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post.pyi @@ -37,19 +37,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_additionalproperties_can_exist_by_itself_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_additionalproperties_can_exist_by_itself_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,27 +59,24 @@ class BaseApi(api_client.Api): @typing.overload def _post_additionalproperties_can_exist_by_itself_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_additionalproperties_can_exist_by_itself_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,19 +118,19 @@ class PostAdditionalpropertiesCanExistByItselfResponseBodyForContentTypes(BaseAp @typing.overload def post_additionalproperties_can_exist_by_itself_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_additionalproperties_can_exist_by_itself_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -143,27 +140,24 @@ class PostAdditionalpropertiesCanExistByItselfResponseBodyForContentTypes(BaseAp @typing.overload def post_additionalproperties_can_exist_by_itself_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_additionalproperties_can_exist_by_itself_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_additionalproperties_can_exist_by_itself_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -177,19 +171,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -199,27 +193,24 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_additionalproperties_can_exist_by_itself_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types/post.py index dc12338d9c5..6f8b7bda15b 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types/post.py @@ -60,19 +60,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -82,27 +82,24 @@ def _post_additionalproperties_should_not_look_in_applicators_response_body_for_ @typing.overload def _post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,19 +141,19 @@ class PostAdditionalpropertiesShouldNotLookInApplicatorsResponseBodyForContentTy @typing.overload def post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -166,27 +163,24 @@ def post_additionalproperties_should_not_look_in_applicators_response_body_for_c @typing.overload def post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -200,19 +194,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -222,27 +216,24 @@ def post( @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types/post.pyi index fda6a7a1aff..1b820aa31fa 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types/post.pyi @@ -37,19 +37,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,27 +59,24 @@ class BaseApi(api_client.Api): @typing.overload def _post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,19 +118,19 @@ class PostAdditionalpropertiesShouldNotLookInApplicatorsResponseBodyForContentTy @typing.overload def post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -143,27 +140,24 @@ class PostAdditionalpropertiesShouldNotLookInApplicatorsResponseBodyForContentTy @typing.overload def post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -177,19 +171,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -199,27 +193,24 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post.py index b74476956cd..71bfb0ab3af 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post.py @@ -60,19 +60,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_allof_combined_with_anyof_oneof_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_allof_combined_with_anyof_oneof_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -82,27 +82,24 @@ def _post_allof_combined_with_anyof_oneof_response_body_for_content_types_oapg( @typing.overload def _post_allof_combined_with_anyof_oneof_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_allof_combined_with_anyof_oneof_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,19 +141,19 @@ class PostAllofCombinedWithAnyofOneofResponseBodyForContentTypes(BaseApi): @typing.overload def post_allof_combined_with_anyof_oneof_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_allof_combined_with_anyof_oneof_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -166,27 +163,24 @@ def post_allof_combined_with_anyof_oneof_response_body_for_content_types( @typing.overload def post_allof_combined_with_anyof_oneof_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_allof_combined_with_anyof_oneof_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_allof_combined_with_anyof_oneof_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -200,19 +194,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -222,27 +216,24 @@ def post( @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_allof_combined_with_anyof_oneof_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post.pyi index eacb3078725..a387aa9341b 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post.pyi @@ -37,19 +37,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_allof_combined_with_anyof_oneof_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_allof_combined_with_anyof_oneof_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,27 +59,24 @@ class BaseApi(api_client.Api): @typing.overload def _post_allof_combined_with_anyof_oneof_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_allof_combined_with_anyof_oneof_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,19 +118,19 @@ class PostAllofCombinedWithAnyofOneofResponseBodyForContentTypes(BaseApi): @typing.overload def post_allof_combined_with_anyof_oneof_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_allof_combined_with_anyof_oneof_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -143,27 +140,24 @@ class PostAllofCombinedWithAnyofOneofResponseBodyForContentTypes(BaseApi): @typing.overload def post_allof_combined_with_anyof_oneof_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_allof_combined_with_anyof_oneof_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_allof_combined_with_anyof_oneof_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -177,19 +171,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -199,27 +193,24 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_allof_combined_with_anyof_oneof_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_response_body_for_content_types/post.py index 3d32852c973..ef43e92bf05 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_response_body_for_content_types/post.py @@ -60,19 +60,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_allof_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_allof_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -82,27 +82,24 @@ def _post_allof_response_body_for_content_types_oapg( @typing.overload def _post_allof_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_allof_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,19 +141,19 @@ class PostAllofResponseBodyForContentTypes(BaseApi): @typing.overload def post_allof_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_allof_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -166,27 +163,24 @@ def post_allof_response_body_for_content_types( @typing.overload def post_allof_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_allof_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_allof_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -200,19 +194,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -222,27 +216,24 @@ def post( @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_allof_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_response_body_for_content_types/post.pyi index bb2296f1aa3..72eecd7a9ae 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_response_body_for_content_types/post.pyi @@ -37,19 +37,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_allof_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_allof_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,27 +59,24 @@ class BaseApi(api_client.Api): @typing.overload def _post_allof_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_allof_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,19 +118,19 @@ class PostAllofResponseBodyForContentTypes(BaseApi): @typing.overload def post_allof_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_allof_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -143,27 +140,24 @@ class PostAllofResponseBodyForContentTypes(BaseApi): @typing.overload def post_allof_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_allof_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_allof_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -177,19 +171,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -199,27 +193,24 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_allof_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_simple_types_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_simple_types_response_body_for_content_types/post.py index eacda452c71..fb597c4d1c0 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_simple_types_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_simple_types_response_body_for_content_types/post.py @@ -60,19 +60,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_allof_simple_types_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_allof_simple_types_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -82,27 +82,24 @@ def _post_allof_simple_types_response_body_for_content_types_oapg( @typing.overload def _post_allof_simple_types_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_allof_simple_types_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,19 +141,19 @@ class PostAllofSimpleTypesResponseBodyForContentTypes(BaseApi): @typing.overload def post_allof_simple_types_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_allof_simple_types_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -166,27 +163,24 @@ def post_allof_simple_types_response_body_for_content_types( @typing.overload def post_allof_simple_types_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_allof_simple_types_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_allof_simple_types_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -200,19 +194,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -222,27 +216,24 @@ def post( @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_allof_simple_types_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_simple_types_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_simple_types_response_body_for_content_types/post.pyi index 7daad5a5a84..696b0f06851 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_simple_types_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_simple_types_response_body_for_content_types/post.pyi @@ -37,19 +37,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_allof_simple_types_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_allof_simple_types_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,27 +59,24 @@ class BaseApi(api_client.Api): @typing.overload def _post_allof_simple_types_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_allof_simple_types_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,19 +118,19 @@ class PostAllofSimpleTypesResponseBodyForContentTypes(BaseApi): @typing.overload def post_allof_simple_types_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_allof_simple_types_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -143,27 +140,24 @@ class PostAllofSimpleTypesResponseBodyForContentTypes(BaseApi): @typing.overload def post_allof_simple_types_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_allof_simple_types_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_allof_simple_types_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -177,19 +171,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -199,27 +193,24 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_allof_simple_types_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post.py index 84f44f0b698..9df3d8552e4 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post.py @@ -60,19 +60,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_allof_with_base_schema_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_allof_with_base_schema_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -82,27 +82,24 @@ def _post_allof_with_base_schema_response_body_for_content_types_oapg( @typing.overload def _post_allof_with_base_schema_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_allof_with_base_schema_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,19 +141,19 @@ class PostAllofWithBaseSchemaResponseBodyForContentTypes(BaseApi): @typing.overload def post_allof_with_base_schema_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_allof_with_base_schema_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -166,27 +163,24 @@ def post_allof_with_base_schema_response_body_for_content_types( @typing.overload def post_allof_with_base_schema_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_allof_with_base_schema_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_allof_with_base_schema_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -200,19 +194,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -222,27 +216,24 @@ def post( @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_allof_with_base_schema_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post.pyi index de6c4ccf81d..312699ac1c5 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post.pyi @@ -37,19 +37,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_allof_with_base_schema_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_allof_with_base_schema_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,27 +59,24 @@ class BaseApi(api_client.Api): @typing.overload def _post_allof_with_base_schema_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_allof_with_base_schema_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,19 +118,19 @@ class PostAllofWithBaseSchemaResponseBodyForContentTypes(BaseApi): @typing.overload def post_allof_with_base_schema_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_allof_with_base_schema_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -143,27 +140,24 @@ class PostAllofWithBaseSchemaResponseBodyForContentTypes(BaseApi): @typing.overload def post_allof_with_base_schema_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_allof_with_base_schema_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_allof_with_base_schema_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -177,19 +171,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -199,27 +193,24 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_allof_with_base_schema_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post.py index 7dd81a24cc4..45019f8273f 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post.py @@ -60,19 +60,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_allof_with_one_empty_schema_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_allof_with_one_empty_schema_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -82,27 +82,24 @@ def _post_allof_with_one_empty_schema_response_body_for_content_types_oapg( @typing.overload def _post_allof_with_one_empty_schema_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_allof_with_one_empty_schema_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,19 +141,19 @@ class PostAllofWithOneEmptySchemaResponseBodyForContentTypes(BaseApi): @typing.overload def post_allof_with_one_empty_schema_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_allof_with_one_empty_schema_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -166,27 +163,24 @@ def post_allof_with_one_empty_schema_response_body_for_content_types( @typing.overload def post_allof_with_one_empty_schema_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_allof_with_one_empty_schema_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_allof_with_one_empty_schema_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -200,19 +194,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -222,27 +216,24 @@ def post( @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_allof_with_one_empty_schema_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post.pyi index 22589d1de0b..2a10c53732a 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post.pyi @@ -37,19 +37,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_allof_with_one_empty_schema_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_allof_with_one_empty_schema_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,27 +59,24 @@ class BaseApi(api_client.Api): @typing.overload def _post_allof_with_one_empty_schema_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_allof_with_one_empty_schema_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,19 +118,19 @@ class PostAllofWithOneEmptySchemaResponseBodyForContentTypes(BaseApi): @typing.overload def post_allof_with_one_empty_schema_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_allof_with_one_empty_schema_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -143,27 +140,24 @@ class PostAllofWithOneEmptySchemaResponseBodyForContentTypes(BaseApi): @typing.overload def post_allof_with_one_empty_schema_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_allof_with_one_empty_schema_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_allof_with_one_empty_schema_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -177,19 +171,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -199,27 +193,24 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_allof_with_one_empty_schema_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post.py index c3c0acc6fa9..8102cd0e67f 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post.py @@ -60,19 +60,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_allof_with_the_first_empty_schema_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_allof_with_the_first_empty_schema_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -82,27 +82,24 @@ def _post_allof_with_the_first_empty_schema_response_body_for_content_types_oapg @typing.overload def _post_allof_with_the_first_empty_schema_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_allof_with_the_first_empty_schema_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,19 +141,19 @@ class PostAllofWithTheFirstEmptySchemaResponseBodyForContentTypes(BaseApi): @typing.overload def post_allof_with_the_first_empty_schema_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_allof_with_the_first_empty_schema_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -166,27 +163,24 @@ def post_allof_with_the_first_empty_schema_response_body_for_content_types( @typing.overload def post_allof_with_the_first_empty_schema_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_allof_with_the_first_empty_schema_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_allof_with_the_first_empty_schema_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -200,19 +194,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -222,27 +216,24 @@ def post( @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_allof_with_the_first_empty_schema_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post.pyi index eec630bbc60..14e52412874 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post.pyi @@ -37,19 +37,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_allof_with_the_first_empty_schema_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_allof_with_the_first_empty_schema_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,27 +59,24 @@ class BaseApi(api_client.Api): @typing.overload def _post_allof_with_the_first_empty_schema_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_allof_with_the_first_empty_schema_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,19 +118,19 @@ class PostAllofWithTheFirstEmptySchemaResponseBodyForContentTypes(BaseApi): @typing.overload def post_allof_with_the_first_empty_schema_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_allof_with_the_first_empty_schema_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -143,27 +140,24 @@ class PostAllofWithTheFirstEmptySchemaResponseBodyForContentTypes(BaseApi): @typing.overload def post_allof_with_the_first_empty_schema_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_allof_with_the_first_empty_schema_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_allof_with_the_first_empty_schema_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -177,19 +171,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -199,27 +193,24 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_allof_with_the_first_empty_schema_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post.py index c9ece362d7e..73657909e74 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post.py @@ -60,19 +60,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_allof_with_the_last_empty_schema_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_allof_with_the_last_empty_schema_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -82,27 +82,24 @@ def _post_allof_with_the_last_empty_schema_response_body_for_content_types_oapg( @typing.overload def _post_allof_with_the_last_empty_schema_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_allof_with_the_last_empty_schema_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,19 +141,19 @@ class PostAllofWithTheLastEmptySchemaResponseBodyForContentTypes(BaseApi): @typing.overload def post_allof_with_the_last_empty_schema_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_allof_with_the_last_empty_schema_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -166,27 +163,24 @@ def post_allof_with_the_last_empty_schema_response_body_for_content_types( @typing.overload def post_allof_with_the_last_empty_schema_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_allof_with_the_last_empty_schema_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_allof_with_the_last_empty_schema_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -200,19 +194,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -222,27 +216,24 @@ def post( @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_allof_with_the_last_empty_schema_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post.pyi index 6670741e2d4..0af3ca9c6a9 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post.pyi @@ -37,19 +37,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_allof_with_the_last_empty_schema_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_allof_with_the_last_empty_schema_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,27 +59,24 @@ class BaseApi(api_client.Api): @typing.overload def _post_allof_with_the_last_empty_schema_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_allof_with_the_last_empty_schema_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,19 +118,19 @@ class PostAllofWithTheLastEmptySchemaResponseBodyForContentTypes(BaseApi): @typing.overload def post_allof_with_the_last_empty_schema_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_allof_with_the_last_empty_schema_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -143,27 +140,24 @@ class PostAllofWithTheLastEmptySchemaResponseBodyForContentTypes(BaseApi): @typing.overload def post_allof_with_the_last_empty_schema_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_allof_with_the_last_empty_schema_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_allof_with_the_last_empty_schema_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -177,19 +171,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -199,27 +193,24 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_allof_with_the_last_empty_schema_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post.py index d3da7caa736..7f5e7d1d418 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post.py @@ -60,19 +60,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_allof_with_two_empty_schemas_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_allof_with_two_empty_schemas_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -82,27 +82,24 @@ def _post_allof_with_two_empty_schemas_response_body_for_content_types_oapg( @typing.overload def _post_allof_with_two_empty_schemas_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_allof_with_two_empty_schemas_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,19 +141,19 @@ class PostAllofWithTwoEmptySchemasResponseBodyForContentTypes(BaseApi): @typing.overload def post_allof_with_two_empty_schemas_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_allof_with_two_empty_schemas_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -166,27 +163,24 @@ def post_allof_with_two_empty_schemas_response_body_for_content_types( @typing.overload def post_allof_with_two_empty_schemas_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_allof_with_two_empty_schemas_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_allof_with_two_empty_schemas_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -200,19 +194,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -222,27 +216,24 @@ def post( @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_allof_with_two_empty_schemas_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post.pyi index dcbc1df0afb..a7ff5bd34ec 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post.pyi @@ -37,19 +37,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_allof_with_two_empty_schemas_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_allof_with_two_empty_schemas_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,27 +59,24 @@ class BaseApi(api_client.Api): @typing.overload def _post_allof_with_two_empty_schemas_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_allof_with_two_empty_schemas_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,19 +118,19 @@ class PostAllofWithTwoEmptySchemasResponseBodyForContentTypes(BaseApi): @typing.overload def post_allof_with_two_empty_schemas_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_allof_with_two_empty_schemas_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -143,27 +140,24 @@ class PostAllofWithTwoEmptySchemasResponseBodyForContentTypes(BaseApi): @typing.overload def post_allof_with_two_empty_schemas_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_allof_with_two_empty_schemas_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_allof_with_two_empty_schemas_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -177,19 +171,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -199,27 +193,24 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_allof_with_two_empty_schemas_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post.py index a0bc2259d91..218832d5852 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post.py @@ -60,19 +60,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_anyof_complex_types_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_anyof_complex_types_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -82,27 +82,24 @@ def _post_anyof_complex_types_response_body_for_content_types_oapg( @typing.overload def _post_anyof_complex_types_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_anyof_complex_types_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,19 +141,19 @@ class PostAnyofComplexTypesResponseBodyForContentTypes(BaseApi): @typing.overload def post_anyof_complex_types_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_anyof_complex_types_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -166,27 +163,24 @@ def post_anyof_complex_types_response_body_for_content_types( @typing.overload def post_anyof_complex_types_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_anyof_complex_types_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_anyof_complex_types_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -200,19 +194,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -222,27 +216,24 @@ def post( @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_anyof_complex_types_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post.pyi index cc23ee3e417..5c3b9615d1d 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post.pyi @@ -37,19 +37,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_anyof_complex_types_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_anyof_complex_types_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,27 +59,24 @@ class BaseApi(api_client.Api): @typing.overload def _post_anyof_complex_types_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_anyof_complex_types_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,19 +118,19 @@ class PostAnyofComplexTypesResponseBodyForContentTypes(BaseApi): @typing.overload def post_anyof_complex_types_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_anyof_complex_types_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -143,27 +140,24 @@ class PostAnyofComplexTypesResponseBodyForContentTypes(BaseApi): @typing.overload def post_anyof_complex_types_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_anyof_complex_types_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_anyof_complex_types_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -177,19 +171,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -199,27 +193,24 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_anyof_complex_types_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_response_body_for_content_types/post.py index 1c31b5fb858..242dbcc3cf2 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_response_body_for_content_types/post.py @@ -60,19 +60,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_anyof_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_anyof_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -82,27 +82,24 @@ def _post_anyof_response_body_for_content_types_oapg( @typing.overload def _post_anyof_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_anyof_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,19 +141,19 @@ class PostAnyofResponseBodyForContentTypes(BaseApi): @typing.overload def post_anyof_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_anyof_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -166,27 +163,24 @@ def post_anyof_response_body_for_content_types( @typing.overload def post_anyof_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_anyof_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_anyof_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -200,19 +194,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -222,27 +216,24 @@ def post( @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_anyof_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_response_body_for_content_types/post.pyi index d33c2e4d1f8..7aa512d1d3d 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_response_body_for_content_types/post.pyi @@ -37,19 +37,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_anyof_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_anyof_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,27 +59,24 @@ class BaseApi(api_client.Api): @typing.overload def _post_anyof_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_anyof_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,19 +118,19 @@ class PostAnyofResponseBodyForContentTypes(BaseApi): @typing.overload def post_anyof_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_anyof_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -143,27 +140,24 @@ class PostAnyofResponseBodyForContentTypes(BaseApi): @typing.overload def post_anyof_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_anyof_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_anyof_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -177,19 +171,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -199,27 +193,24 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_anyof_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post.py index 36d9e12208e..802f9ac4d3f 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post.py @@ -60,19 +60,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_anyof_with_base_schema_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_anyof_with_base_schema_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -82,27 +82,24 @@ def _post_anyof_with_base_schema_response_body_for_content_types_oapg( @typing.overload def _post_anyof_with_base_schema_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_anyof_with_base_schema_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,19 +141,19 @@ class PostAnyofWithBaseSchemaResponseBodyForContentTypes(BaseApi): @typing.overload def post_anyof_with_base_schema_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_anyof_with_base_schema_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -166,27 +163,24 @@ def post_anyof_with_base_schema_response_body_for_content_types( @typing.overload def post_anyof_with_base_schema_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_anyof_with_base_schema_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_anyof_with_base_schema_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -200,19 +194,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -222,27 +216,24 @@ def post( @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_anyof_with_base_schema_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post.pyi index 80704ec7225..d1ed84ea8be 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post.pyi @@ -37,19 +37,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_anyof_with_base_schema_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_anyof_with_base_schema_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,27 +59,24 @@ class BaseApi(api_client.Api): @typing.overload def _post_anyof_with_base_schema_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_anyof_with_base_schema_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,19 +118,19 @@ class PostAnyofWithBaseSchemaResponseBodyForContentTypes(BaseApi): @typing.overload def post_anyof_with_base_schema_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_anyof_with_base_schema_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -143,27 +140,24 @@ class PostAnyofWithBaseSchemaResponseBodyForContentTypes(BaseApi): @typing.overload def post_anyof_with_base_schema_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_anyof_with_base_schema_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_anyof_with_base_schema_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -177,19 +171,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -199,27 +193,24 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_anyof_with_base_schema_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post.py index 67392ab665b..11b71e1db5b 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post.py @@ -60,19 +60,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_anyof_with_one_empty_schema_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_anyof_with_one_empty_schema_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -82,27 +82,24 @@ def _post_anyof_with_one_empty_schema_response_body_for_content_types_oapg( @typing.overload def _post_anyof_with_one_empty_schema_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_anyof_with_one_empty_schema_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,19 +141,19 @@ class PostAnyofWithOneEmptySchemaResponseBodyForContentTypes(BaseApi): @typing.overload def post_anyof_with_one_empty_schema_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_anyof_with_one_empty_schema_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -166,27 +163,24 @@ def post_anyof_with_one_empty_schema_response_body_for_content_types( @typing.overload def post_anyof_with_one_empty_schema_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_anyof_with_one_empty_schema_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_anyof_with_one_empty_schema_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -200,19 +194,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -222,27 +216,24 @@ def post( @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_anyof_with_one_empty_schema_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post.pyi index e38a1a1a754..caae0712c2e 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post.pyi @@ -37,19 +37,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_anyof_with_one_empty_schema_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_anyof_with_one_empty_schema_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,27 +59,24 @@ class BaseApi(api_client.Api): @typing.overload def _post_anyof_with_one_empty_schema_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_anyof_with_one_empty_schema_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,19 +118,19 @@ class PostAnyofWithOneEmptySchemaResponseBodyForContentTypes(BaseApi): @typing.overload def post_anyof_with_one_empty_schema_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_anyof_with_one_empty_schema_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -143,27 +140,24 @@ class PostAnyofWithOneEmptySchemaResponseBodyForContentTypes(BaseApi): @typing.overload def post_anyof_with_one_empty_schema_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_anyof_with_one_empty_schema_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_anyof_with_one_empty_schema_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -177,19 +171,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -199,27 +193,24 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_anyof_with_one_empty_schema_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post.py index 4102eef8f2b..5f3dcd2cdce 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post.py @@ -60,19 +60,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_array_type_matches_arrays_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_array_type_matches_arrays_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -82,27 +82,24 @@ def _post_array_type_matches_arrays_response_body_for_content_types_oapg( @typing.overload def _post_array_type_matches_arrays_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_array_type_matches_arrays_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,19 +141,19 @@ class PostArrayTypeMatchesArraysResponseBodyForContentTypes(BaseApi): @typing.overload def post_array_type_matches_arrays_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_array_type_matches_arrays_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -166,27 +163,24 @@ def post_array_type_matches_arrays_response_body_for_content_types( @typing.overload def post_array_type_matches_arrays_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_array_type_matches_arrays_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_array_type_matches_arrays_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -200,19 +194,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -222,27 +216,24 @@ def post( @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_array_type_matches_arrays_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post.pyi index 426ddaa7e39..fde1b602f89 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post.pyi @@ -37,19 +37,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_array_type_matches_arrays_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_array_type_matches_arrays_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,27 +59,24 @@ class BaseApi(api_client.Api): @typing.overload def _post_array_type_matches_arrays_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_array_type_matches_arrays_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,19 +118,19 @@ class PostArrayTypeMatchesArraysResponseBodyForContentTypes(BaseApi): @typing.overload def post_array_type_matches_arrays_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_array_type_matches_arrays_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -143,27 +140,24 @@ class PostArrayTypeMatchesArraysResponseBodyForContentTypes(BaseApi): @typing.overload def post_array_type_matches_arrays_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_array_type_matches_arrays_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_array_type_matches_arrays_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -177,19 +171,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -199,27 +193,24 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_array_type_matches_arrays_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post.py index d9005849ece..7021ba96401 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post.py @@ -58,19 +58,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_boolean_type_matches_booleans_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_boolean_type_matches_booleans_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -80,27 +80,24 @@ def _post_boolean_type_matches_booleans_response_body_for_content_types_oapg( @typing.overload def _post_boolean_type_matches_booleans_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_boolean_type_matches_booleans_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -142,19 +139,19 @@ class PostBooleanTypeMatchesBooleansResponseBodyForContentTypes(BaseApi): @typing.overload def post_boolean_type_matches_booleans_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_boolean_type_matches_booleans_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -164,27 +161,24 @@ def post_boolean_type_matches_booleans_response_body_for_content_types( @typing.overload def post_boolean_type_matches_booleans_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_boolean_type_matches_booleans_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_boolean_type_matches_booleans_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -198,19 +192,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -220,27 +214,24 @@ def post( @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_boolean_type_matches_booleans_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post.pyi index 24dc196213a..037177ce010 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post.pyi @@ -35,19 +35,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_boolean_type_matches_booleans_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_boolean_type_matches_booleans_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -57,27 +57,24 @@ class BaseApi(api_client.Api): @typing.overload def _post_boolean_type_matches_booleans_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_boolean_type_matches_booleans_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -119,19 +116,19 @@ class PostBooleanTypeMatchesBooleansResponseBodyForContentTypes(BaseApi): @typing.overload def post_boolean_type_matches_booleans_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_boolean_type_matches_booleans_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -141,27 +138,24 @@ class PostBooleanTypeMatchesBooleansResponseBodyForContentTypes(BaseApi): @typing.overload def post_boolean_type_matches_booleans_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_boolean_type_matches_booleans_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_boolean_type_matches_booleans_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -175,19 +169,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -197,27 +191,24 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_boolean_type_matches_booleans_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_by_int_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_by_int_response_body_for_content_types/post.py index c893d4bcc1a..a280f8ab4e8 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_by_int_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_by_int_response_body_for_content_types/post.py @@ -60,19 +60,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_by_int_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_by_int_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -82,27 +82,24 @@ def _post_by_int_response_body_for_content_types_oapg( @typing.overload def _post_by_int_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_by_int_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,19 +141,19 @@ class PostByIntResponseBodyForContentTypes(BaseApi): @typing.overload def post_by_int_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_by_int_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -166,27 +163,24 @@ def post_by_int_response_body_for_content_types( @typing.overload def post_by_int_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_by_int_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_by_int_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -200,19 +194,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -222,27 +216,24 @@ def post( @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_by_int_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_by_int_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_by_int_response_body_for_content_types/post.pyi index 534eb05e8d7..38d8f0cf063 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_by_int_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_by_int_response_body_for_content_types/post.pyi @@ -37,19 +37,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_by_int_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_by_int_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,27 +59,24 @@ class BaseApi(api_client.Api): @typing.overload def _post_by_int_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_by_int_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,19 +118,19 @@ class PostByIntResponseBodyForContentTypes(BaseApi): @typing.overload def post_by_int_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_by_int_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -143,27 +140,24 @@ class PostByIntResponseBodyForContentTypes(BaseApi): @typing.overload def post_by_int_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_by_int_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_by_int_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -177,19 +171,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -199,27 +193,24 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_by_int_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_by_number_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_by_number_response_body_for_content_types/post.py index 0c21b0b402f..36644eef86d 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_by_number_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_by_number_response_body_for_content_types/post.py @@ -60,19 +60,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_by_number_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_by_number_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -82,27 +82,24 @@ def _post_by_number_response_body_for_content_types_oapg( @typing.overload def _post_by_number_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_by_number_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,19 +141,19 @@ class PostByNumberResponseBodyForContentTypes(BaseApi): @typing.overload def post_by_number_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_by_number_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -166,27 +163,24 @@ def post_by_number_response_body_for_content_types( @typing.overload def post_by_number_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_by_number_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_by_number_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -200,19 +194,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -222,27 +216,24 @@ def post( @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_by_number_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_by_number_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_by_number_response_body_for_content_types/post.pyi index 1be84be2c3a..bc964050ecb 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_by_number_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_by_number_response_body_for_content_types/post.pyi @@ -37,19 +37,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_by_number_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_by_number_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,27 +59,24 @@ class BaseApi(api_client.Api): @typing.overload def _post_by_number_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_by_number_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,19 +118,19 @@ class PostByNumberResponseBodyForContentTypes(BaseApi): @typing.overload def post_by_number_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_by_number_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -143,27 +140,24 @@ class PostByNumberResponseBodyForContentTypes(BaseApi): @typing.overload def post_by_number_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_by_number_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_by_number_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -177,19 +171,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -199,27 +193,24 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_by_number_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_by_small_number_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_by_small_number_response_body_for_content_types/post.py index cf160a39a7f..2631a794536 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_by_small_number_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_by_small_number_response_body_for_content_types/post.py @@ -60,19 +60,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_by_small_number_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_by_small_number_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -82,27 +82,24 @@ def _post_by_small_number_response_body_for_content_types_oapg( @typing.overload def _post_by_small_number_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_by_small_number_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,19 +141,19 @@ class PostBySmallNumberResponseBodyForContentTypes(BaseApi): @typing.overload def post_by_small_number_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_by_small_number_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -166,27 +163,24 @@ def post_by_small_number_response_body_for_content_types( @typing.overload def post_by_small_number_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_by_small_number_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_by_small_number_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -200,19 +194,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -222,27 +216,24 @@ def post( @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_by_small_number_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_by_small_number_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_by_small_number_response_body_for_content_types/post.pyi index c258ccb5848..0ab49177058 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_by_small_number_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_by_small_number_response_body_for_content_types/post.pyi @@ -37,19 +37,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_by_small_number_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_by_small_number_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,27 +59,24 @@ class BaseApi(api_client.Api): @typing.overload def _post_by_small_number_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_by_small_number_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,19 +118,19 @@ class PostBySmallNumberResponseBodyForContentTypes(BaseApi): @typing.overload def post_by_small_number_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_by_small_number_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -143,27 +140,24 @@ class PostBySmallNumberResponseBodyForContentTypes(BaseApi): @typing.overload def post_by_small_number_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_by_small_number_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_by_small_number_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -177,19 +171,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -199,27 +193,24 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_by_small_number_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_date_time_format_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_date_time_format_response_body_for_content_types/post.py index 595e92e8ef8..dd29952fdef 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_date_time_format_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_date_time_format_response_body_for_content_types/post.py @@ -81,19 +81,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_date_time_format_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_date_time_format_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -103,27 +103,24 @@ def _post_date_time_format_response_body_for_content_types_oapg( @typing.overload def _post_date_time_format_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_date_time_format_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -165,19 +162,19 @@ class PostDateTimeFormatResponseBodyForContentTypes(BaseApi): @typing.overload def post_date_time_format_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_date_time_format_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -187,27 +184,24 @@ def post_date_time_format_response_body_for_content_types( @typing.overload def post_date_time_format_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_date_time_format_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_date_time_format_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -221,19 +215,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -243,27 +237,24 @@ def post( @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_date_time_format_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_date_time_format_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_date_time_format_response_body_for_content_types/post.pyi index 85a4dcf2bd8..0110e5f9eff 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_date_time_format_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_date_time_format_response_body_for_content_types/post.pyi @@ -58,19 +58,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_date_time_format_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_date_time_format_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -80,27 +80,24 @@ class BaseApi(api_client.Api): @typing.overload def _post_date_time_format_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_date_time_format_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -142,19 +139,19 @@ class PostDateTimeFormatResponseBodyForContentTypes(BaseApi): @typing.overload def post_date_time_format_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_date_time_format_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -164,27 +161,24 @@ class PostDateTimeFormatResponseBodyForContentTypes(BaseApi): @typing.overload def post_date_time_format_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_date_time_format_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_date_time_format_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -198,19 +192,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -220,27 +214,24 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_date_time_format_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_email_format_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_email_format_response_body_for_content_types/post.py index 162877b382b..48e7e2275f9 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_email_format_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_email_format_response_body_for_content_types/post.py @@ -80,19 +80,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_email_format_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_email_format_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -102,27 +102,24 @@ def _post_email_format_response_body_for_content_types_oapg( @typing.overload def _post_email_format_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_email_format_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -164,19 +161,19 @@ class PostEmailFormatResponseBodyForContentTypes(BaseApi): @typing.overload def post_email_format_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_email_format_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -186,27 +183,24 @@ def post_email_format_response_body_for_content_types( @typing.overload def post_email_format_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_email_format_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_email_format_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -220,19 +214,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -242,27 +236,24 @@ def post( @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_email_format_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_email_format_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_email_format_response_body_for_content_types/post.pyi index 0c88e92d1af..920b4e928d7 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_email_format_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_email_format_response_body_for_content_types/post.pyi @@ -57,19 +57,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_email_format_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_email_format_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -79,27 +79,24 @@ class BaseApi(api_client.Api): @typing.overload def _post_email_format_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_email_format_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -141,19 +138,19 @@ class PostEmailFormatResponseBodyForContentTypes(BaseApi): @typing.overload def post_email_format_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_email_format_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -163,27 +160,24 @@ class PostEmailFormatResponseBodyForContentTypes(BaseApi): @typing.overload def post_email_format_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_email_format_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_email_format_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -197,19 +191,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -219,27 +213,24 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_email_format_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post.py index 34751f17fed..aa078178630 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post.py @@ -60,19 +60,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_enum_with0_does_not_match_false_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_enum_with0_does_not_match_false_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -82,27 +82,24 @@ def _post_enum_with0_does_not_match_false_response_body_for_content_types_oapg( @typing.overload def _post_enum_with0_does_not_match_false_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_enum_with0_does_not_match_false_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,19 +141,19 @@ class PostEnumWith0DoesNotMatchFalseResponseBodyForContentTypes(BaseApi): @typing.overload def post_enum_with0_does_not_match_false_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_enum_with0_does_not_match_false_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -166,27 +163,24 @@ def post_enum_with0_does_not_match_false_response_body_for_content_types( @typing.overload def post_enum_with0_does_not_match_false_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_enum_with0_does_not_match_false_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_enum_with0_does_not_match_false_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -200,19 +194,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -222,27 +216,24 @@ def post( @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_enum_with0_does_not_match_false_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post.pyi index 704242251b5..0c31872d934 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post.pyi @@ -37,19 +37,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_enum_with0_does_not_match_false_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_enum_with0_does_not_match_false_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,27 +59,24 @@ class BaseApi(api_client.Api): @typing.overload def _post_enum_with0_does_not_match_false_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_enum_with0_does_not_match_false_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,19 +118,19 @@ class PostEnumWith0DoesNotMatchFalseResponseBodyForContentTypes(BaseApi): @typing.overload def post_enum_with0_does_not_match_false_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_enum_with0_does_not_match_false_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -143,27 +140,24 @@ class PostEnumWith0DoesNotMatchFalseResponseBodyForContentTypes(BaseApi): @typing.overload def post_enum_with0_does_not_match_false_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_enum_with0_does_not_match_false_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_enum_with0_does_not_match_false_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -177,19 +171,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -199,27 +193,24 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_enum_with0_does_not_match_false_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post.py index e2e8f7509c5..67f769db8ef 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post.py @@ -60,19 +60,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_enum_with1_does_not_match_true_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_enum_with1_does_not_match_true_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -82,27 +82,24 @@ def _post_enum_with1_does_not_match_true_response_body_for_content_types_oapg( @typing.overload def _post_enum_with1_does_not_match_true_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_enum_with1_does_not_match_true_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,19 +141,19 @@ class PostEnumWith1DoesNotMatchTrueResponseBodyForContentTypes(BaseApi): @typing.overload def post_enum_with1_does_not_match_true_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_enum_with1_does_not_match_true_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -166,27 +163,24 @@ def post_enum_with1_does_not_match_true_response_body_for_content_types( @typing.overload def post_enum_with1_does_not_match_true_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_enum_with1_does_not_match_true_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_enum_with1_does_not_match_true_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -200,19 +194,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -222,27 +216,24 @@ def post( @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_enum_with1_does_not_match_true_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post.pyi index 4696d607059..e2601146c40 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post.pyi @@ -37,19 +37,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_enum_with1_does_not_match_true_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_enum_with1_does_not_match_true_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,27 +59,24 @@ class BaseApi(api_client.Api): @typing.overload def _post_enum_with1_does_not_match_true_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_enum_with1_does_not_match_true_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,19 +118,19 @@ class PostEnumWith1DoesNotMatchTrueResponseBodyForContentTypes(BaseApi): @typing.overload def post_enum_with1_does_not_match_true_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_enum_with1_does_not_match_true_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -143,27 +140,24 @@ class PostEnumWith1DoesNotMatchTrueResponseBodyForContentTypes(BaseApi): @typing.overload def post_enum_with1_does_not_match_true_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_enum_with1_does_not_match_true_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_enum_with1_does_not_match_true_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -177,19 +171,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -199,27 +193,24 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_enum_with1_does_not_match_true_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post.py index 10ba55d310a..3f55fe26842 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post.py @@ -60,19 +60,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_enum_with_escaped_characters_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_enum_with_escaped_characters_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -82,27 +82,24 @@ def _post_enum_with_escaped_characters_response_body_for_content_types_oapg( @typing.overload def _post_enum_with_escaped_characters_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_enum_with_escaped_characters_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,19 +141,19 @@ class PostEnumWithEscapedCharactersResponseBodyForContentTypes(BaseApi): @typing.overload def post_enum_with_escaped_characters_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_enum_with_escaped_characters_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -166,27 +163,24 @@ def post_enum_with_escaped_characters_response_body_for_content_types( @typing.overload def post_enum_with_escaped_characters_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_enum_with_escaped_characters_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_enum_with_escaped_characters_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -200,19 +194,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -222,27 +216,24 @@ def post( @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_enum_with_escaped_characters_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post.pyi index b5719ab9f41..56649f09276 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post.pyi @@ -37,19 +37,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_enum_with_escaped_characters_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_enum_with_escaped_characters_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,27 +59,24 @@ class BaseApi(api_client.Api): @typing.overload def _post_enum_with_escaped_characters_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_enum_with_escaped_characters_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,19 +118,19 @@ class PostEnumWithEscapedCharactersResponseBodyForContentTypes(BaseApi): @typing.overload def post_enum_with_escaped_characters_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_enum_with_escaped_characters_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -143,27 +140,24 @@ class PostEnumWithEscapedCharactersResponseBodyForContentTypes(BaseApi): @typing.overload def post_enum_with_escaped_characters_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_enum_with_escaped_characters_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_enum_with_escaped_characters_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -177,19 +171,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -199,27 +193,24 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_enum_with_escaped_characters_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post.py index a6c286da257..674c622e268 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post.py @@ -60,19 +60,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_enum_with_false_does_not_match0_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_enum_with_false_does_not_match0_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -82,27 +82,24 @@ def _post_enum_with_false_does_not_match0_response_body_for_content_types_oapg( @typing.overload def _post_enum_with_false_does_not_match0_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_enum_with_false_does_not_match0_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,19 +141,19 @@ class PostEnumWithFalseDoesNotMatch0ResponseBodyForContentTypes(BaseApi): @typing.overload def post_enum_with_false_does_not_match0_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_enum_with_false_does_not_match0_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -166,27 +163,24 @@ def post_enum_with_false_does_not_match0_response_body_for_content_types( @typing.overload def post_enum_with_false_does_not_match0_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_enum_with_false_does_not_match0_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_enum_with_false_does_not_match0_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -200,19 +194,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -222,27 +216,24 @@ def post( @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_enum_with_false_does_not_match0_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post.pyi index a49351043ed..70c33621f89 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post.pyi @@ -37,19 +37,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_enum_with_false_does_not_match0_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_enum_with_false_does_not_match0_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,27 +59,24 @@ class BaseApi(api_client.Api): @typing.overload def _post_enum_with_false_does_not_match0_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_enum_with_false_does_not_match0_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,19 +118,19 @@ class PostEnumWithFalseDoesNotMatch0ResponseBodyForContentTypes(BaseApi): @typing.overload def post_enum_with_false_does_not_match0_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_enum_with_false_does_not_match0_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -143,27 +140,24 @@ class PostEnumWithFalseDoesNotMatch0ResponseBodyForContentTypes(BaseApi): @typing.overload def post_enum_with_false_does_not_match0_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_enum_with_false_does_not_match0_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_enum_with_false_does_not_match0_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -177,19 +171,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -199,27 +193,24 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_enum_with_false_does_not_match0_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post.py index 4c5f407b397..c7c76afd6a1 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post.py @@ -60,19 +60,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_enum_with_true_does_not_match1_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_enum_with_true_does_not_match1_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -82,27 +82,24 @@ def _post_enum_with_true_does_not_match1_response_body_for_content_types_oapg( @typing.overload def _post_enum_with_true_does_not_match1_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_enum_with_true_does_not_match1_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,19 +141,19 @@ class PostEnumWithTrueDoesNotMatch1ResponseBodyForContentTypes(BaseApi): @typing.overload def post_enum_with_true_does_not_match1_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_enum_with_true_does_not_match1_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -166,27 +163,24 @@ def post_enum_with_true_does_not_match1_response_body_for_content_types( @typing.overload def post_enum_with_true_does_not_match1_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_enum_with_true_does_not_match1_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_enum_with_true_does_not_match1_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -200,19 +194,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -222,27 +216,24 @@ def post( @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_enum_with_true_does_not_match1_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post.pyi index 18a54ca1635..53edef8b734 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post.pyi @@ -37,19 +37,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_enum_with_true_does_not_match1_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_enum_with_true_does_not_match1_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,27 +59,24 @@ class BaseApi(api_client.Api): @typing.overload def _post_enum_with_true_does_not_match1_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_enum_with_true_does_not_match1_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,19 +118,19 @@ class PostEnumWithTrueDoesNotMatch1ResponseBodyForContentTypes(BaseApi): @typing.overload def post_enum_with_true_does_not_match1_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_enum_with_true_does_not_match1_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -143,27 +140,24 @@ class PostEnumWithTrueDoesNotMatch1ResponseBodyForContentTypes(BaseApi): @typing.overload def post_enum_with_true_does_not_match1_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_enum_with_true_does_not_match1_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_enum_with_true_does_not_match1_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -177,19 +171,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -199,27 +193,24 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_enum_with_true_does_not_match1_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enums_in_properties_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enums_in_properties_response_body_for_content_types/post.py index 174a76accb5..07a195cd0c2 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enums_in_properties_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enums_in_properties_response_body_for_content_types/post.py @@ -60,19 +60,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_enums_in_properties_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_enums_in_properties_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -82,27 +82,24 @@ def _post_enums_in_properties_response_body_for_content_types_oapg( @typing.overload def _post_enums_in_properties_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_enums_in_properties_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,19 +141,19 @@ class PostEnumsInPropertiesResponseBodyForContentTypes(BaseApi): @typing.overload def post_enums_in_properties_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_enums_in_properties_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -166,27 +163,24 @@ def post_enums_in_properties_response_body_for_content_types( @typing.overload def post_enums_in_properties_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_enums_in_properties_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_enums_in_properties_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -200,19 +194,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -222,27 +216,24 @@ def post( @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_enums_in_properties_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enums_in_properties_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enums_in_properties_response_body_for_content_types/post.pyi index d3690d188ee..0ac9748cf8b 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enums_in_properties_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enums_in_properties_response_body_for_content_types/post.pyi @@ -37,19 +37,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_enums_in_properties_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_enums_in_properties_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,27 +59,24 @@ class BaseApi(api_client.Api): @typing.overload def _post_enums_in_properties_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_enums_in_properties_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,19 +118,19 @@ class PostEnumsInPropertiesResponseBodyForContentTypes(BaseApi): @typing.overload def post_enums_in_properties_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_enums_in_properties_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -143,27 +140,24 @@ class PostEnumsInPropertiesResponseBodyForContentTypes(BaseApi): @typing.overload def post_enums_in_properties_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_enums_in_properties_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_enums_in_properties_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -177,19 +171,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -199,27 +193,24 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_enums_in_properties_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_forbidden_property_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_forbidden_property_response_body_for_content_types/post.py index 558c99456d9..d7b5e839556 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_forbidden_property_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_forbidden_property_response_body_for_content_types/post.py @@ -60,19 +60,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_forbidden_property_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_forbidden_property_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -82,27 +82,24 @@ def _post_forbidden_property_response_body_for_content_types_oapg( @typing.overload def _post_forbidden_property_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_forbidden_property_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,19 +141,19 @@ class PostForbiddenPropertyResponseBodyForContentTypes(BaseApi): @typing.overload def post_forbidden_property_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_forbidden_property_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -166,27 +163,24 @@ def post_forbidden_property_response_body_for_content_types( @typing.overload def post_forbidden_property_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_forbidden_property_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_forbidden_property_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -200,19 +194,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -222,27 +216,24 @@ def post( @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_forbidden_property_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_forbidden_property_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_forbidden_property_response_body_for_content_types/post.pyi index c60a75ca113..dda66f028c8 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_forbidden_property_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_forbidden_property_response_body_for_content_types/post.pyi @@ -37,19 +37,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_forbidden_property_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_forbidden_property_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,27 +59,24 @@ class BaseApi(api_client.Api): @typing.overload def _post_forbidden_property_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_forbidden_property_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,19 +118,19 @@ class PostForbiddenPropertyResponseBodyForContentTypes(BaseApi): @typing.overload def post_forbidden_property_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_forbidden_property_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -143,27 +140,24 @@ class PostForbiddenPropertyResponseBodyForContentTypes(BaseApi): @typing.overload def post_forbidden_property_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_forbidden_property_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_forbidden_property_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -177,19 +171,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -199,27 +193,24 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_forbidden_property_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_hostname_format_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_hostname_format_response_body_for_content_types/post.py index 68f81be691f..20003a894a5 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_hostname_format_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_hostname_format_response_body_for_content_types/post.py @@ -80,19 +80,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_hostname_format_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_hostname_format_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -102,27 +102,24 @@ def _post_hostname_format_response_body_for_content_types_oapg( @typing.overload def _post_hostname_format_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_hostname_format_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -164,19 +161,19 @@ class PostHostnameFormatResponseBodyForContentTypes(BaseApi): @typing.overload def post_hostname_format_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_hostname_format_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -186,27 +183,24 @@ def post_hostname_format_response_body_for_content_types( @typing.overload def post_hostname_format_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_hostname_format_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_hostname_format_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -220,19 +214,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -242,27 +236,24 @@ def post( @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_hostname_format_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_hostname_format_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_hostname_format_response_body_for_content_types/post.pyi index 8a25ec07c7a..da3aa9109b1 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_hostname_format_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_hostname_format_response_body_for_content_types/post.pyi @@ -57,19 +57,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_hostname_format_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_hostname_format_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -79,27 +79,24 @@ class BaseApi(api_client.Api): @typing.overload def _post_hostname_format_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_hostname_format_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -141,19 +138,19 @@ class PostHostnameFormatResponseBodyForContentTypes(BaseApi): @typing.overload def post_hostname_format_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_hostname_format_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -163,27 +160,24 @@ class PostHostnameFormatResponseBodyForContentTypes(BaseApi): @typing.overload def post_hostname_format_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_hostname_format_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_hostname_format_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -197,19 +191,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -219,27 +213,24 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_hostname_format_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post.py index 132d50c23f2..ef1b0cbaae6 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post.py @@ -58,19 +58,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_integer_type_matches_integers_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_integer_type_matches_integers_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -80,27 +80,24 @@ def _post_integer_type_matches_integers_response_body_for_content_types_oapg( @typing.overload def _post_integer_type_matches_integers_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_integer_type_matches_integers_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -142,19 +139,19 @@ class PostIntegerTypeMatchesIntegersResponseBodyForContentTypes(BaseApi): @typing.overload def post_integer_type_matches_integers_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_integer_type_matches_integers_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -164,27 +161,24 @@ def post_integer_type_matches_integers_response_body_for_content_types( @typing.overload def post_integer_type_matches_integers_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_integer_type_matches_integers_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_integer_type_matches_integers_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -198,19 +192,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -220,27 +214,24 @@ def post( @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_integer_type_matches_integers_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post.pyi index d3aa984eccd..5392840664f 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post.pyi @@ -35,19 +35,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_integer_type_matches_integers_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_integer_type_matches_integers_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -57,27 +57,24 @@ class BaseApi(api_client.Api): @typing.overload def _post_integer_type_matches_integers_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_integer_type_matches_integers_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -119,19 +116,19 @@ class PostIntegerTypeMatchesIntegersResponseBodyForContentTypes(BaseApi): @typing.overload def post_integer_type_matches_integers_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_integer_type_matches_integers_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -141,27 +138,24 @@ class PostIntegerTypeMatchesIntegersResponseBodyForContentTypes(BaseApi): @typing.overload def post_integer_type_matches_integers_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_integer_type_matches_integers_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_integer_type_matches_integers_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -175,19 +169,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -197,27 +191,24 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_integer_type_matches_integers_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types/post.py index d679567ff5e..5ebdabab983 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types/post.py @@ -60,19 +60,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -82,27 +82,24 @@ def _post_invalid_instance_should_not_raise_error_when_float_division_inf_respon @typing.overload def _post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,19 +141,19 @@ class PostInvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInfResponseBodyForC @typing.overload def post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -166,27 +163,24 @@ def post_invalid_instance_should_not_raise_error_when_float_division_inf_respons @typing.overload def post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -200,19 +194,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -222,27 +216,24 @@ def post( @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types/post.pyi index 14830816344..0aa39f038a0 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types/post.pyi @@ -37,19 +37,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,27 +59,24 @@ class BaseApi(api_client.Api): @typing.overload def _post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,19 +118,19 @@ class PostInvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInfResponseBodyForC @typing.overload def post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -143,27 +140,24 @@ class PostInvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInfResponseBodyForC @typing.overload def post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -177,19 +171,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -199,27 +193,24 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_invalid_string_value_for_default_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_invalid_string_value_for_default_response_body_for_content_types/post.py index 9adb714628c..45aa6a90e10 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_invalid_string_value_for_default_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_invalid_string_value_for_default_response_body_for_content_types/post.py @@ -60,19 +60,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_invalid_string_value_for_default_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_invalid_string_value_for_default_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -82,27 +82,24 @@ def _post_invalid_string_value_for_default_response_body_for_content_types_oapg( @typing.overload def _post_invalid_string_value_for_default_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_invalid_string_value_for_default_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,19 +141,19 @@ class PostInvalidStringValueForDefaultResponseBodyForContentTypes(BaseApi): @typing.overload def post_invalid_string_value_for_default_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_invalid_string_value_for_default_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -166,27 +163,24 @@ def post_invalid_string_value_for_default_response_body_for_content_types( @typing.overload def post_invalid_string_value_for_default_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_invalid_string_value_for_default_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_invalid_string_value_for_default_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -200,19 +194,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -222,27 +216,24 @@ def post( @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_invalid_string_value_for_default_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_invalid_string_value_for_default_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_invalid_string_value_for_default_response_body_for_content_types/post.pyi index 383a8e79306..242367bd29f 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_invalid_string_value_for_default_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_invalid_string_value_for_default_response_body_for_content_types/post.pyi @@ -37,19 +37,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_invalid_string_value_for_default_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_invalid_string_value_for_default_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,27 +59,24 @@ class BaseApi(api_client.Api): @typing.overload def _post_invalid_string_value_for_default_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_invalid_string_value_for_default_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,19 +118,19 @@ class PostInvalidStringValueForDefaultResponseBodyForContentTypes(BaseApi): @typing.overload def post_invalid_string_value_for_default_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_invalid_string_value_for_default_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -143,27 +140,24 @@ class PostInvalidStringValueForDefaultResponseBodyForContentTypes(BaseApi): @typing.overload def post_invalid_string_value_for_default_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_invalid_string_value_for_default_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_invalid_string_value_for_default_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -177,19 +171,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -199,27 +193,24 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_invalid_string_value_for_default_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ipv4_format_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ipv4_format_response_body_for_content_types/post.py index d0d00d3b670..f4a194a1d8d 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ipv4_format_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ipv4_format_response_body_for_content_types/post.py @@ -80,19 +80,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_ipv4_format_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_ipv4_format_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -102,27 +102,24 @@ def _post_ipv4_format_response_body_for_content_types_oapg( @typing.overload def _post_ipv4_format_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_ipv4_format_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -164,19 +161,19 @@ class PostIpv4FormatResponseBodyForContentTypes(BaseApi): @typing.overload def post_ipv4_format_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_ipv4_format_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -186,27 +183,24 @@ def post_ipv4_format_response_body_for_content_types( @typing.overload def post_ipv4_format_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_ipv4_format_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_ipv4_format_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -220,19 +214,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -242,27 +236,24 @@ def post( @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_ipv4_format_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ipv4_format_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ipv4_format_response_body_for_content_types/post.pyi index d5b76f199fd..88600b180b9 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ipv4_format_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ipv4_format_response_body_for_content_types/post.pyi @@ -57,19 +57,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_ipv4_format_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_ipv4_format_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -79,27 +79,24 @@ class BaseApi(api_client.Api): @typing.overload def _post_ipv4_format_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_ipv4_format_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -141,19 +138,19 @@ class PostIpv4FormatResponseBodyForContentTypes(BaseApi): @typing.overload def post_ipv4_format_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_ipv4_format_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -163,27 +160,24 @@ class PostIpv4FormatResponseBodyForContentTypes(BaseApi): @typing.overload def post_ipv4_format_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_ipv4_format_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_ipv4_format_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -197,19 +191,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -219,27 +213,24 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_ipv4_format_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ipv6_format_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ipv6_format_response_body_for_content_types/post.py index 5bad7395e5b..96afc8024ae 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ipv6_format_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ipv6_format_response_body_for_content_types/post.py @@ -80,19 +80,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_ipv6_format_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_ipv6_format_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -102,27 +102,24 @@ def _post_ipv6_format_response_body_for_content_types_oapg( @typing.overload def _post_ipv6_format_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_ipv6_format_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -164,19 +161,19 @@ class PostIpv6FormatResponseBodyForContentTypes(BaseApi): @typing.overload def post_ipv6_format_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_ipv6_format_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -186,27 +183,24 @@ def post_ipv6_format_response_body_for_content_types( @typing.overload def post_ipv6_format_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_ipv6_format_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_ipv6_format_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -220,19 +214,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -242,27 +236,24 @@ def post( @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_ipv6_format_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ipv6_format_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ipv6_format_response_body_for_content_types/post.pyi index 4c6f8116784..9aa20cf2258 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ipv6_format_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ipv6_format_response_body_for_content_types/post.pyi @@ -57,19 +57,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_ipv6_format_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_ipv6_format_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -79,27 +79,24 @@ class BaseApi(api_client.Api): @typing.overload def _post_ipv6_format_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_ipv6_format_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -141,19 +138,19 @@ class PostIpv6FormatResponseBodyForContentTypes(BaseApi): @typing.overload def post_ipv6_format_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_ipv6_format_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -163,27 +160,24 @@ class PostIpv6FormatResponseBodyForContentTypes(BaseApi): @typing.overload def post_ipv6_format_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_ipv6_format_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_ipv6_format_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -197,19 +191,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -219,27 +213,24 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_ipv6_format_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_json_pointer_format_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_json_pointer_format_response_body_for_content_types/post.py index 882298f8a4f..c80eaa51358 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_json_pointer_format_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_json_pointer_format_response_body_for_content_types/post.py @@ -80,19 +80,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_json_pointer_format_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_json_pointer_format_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -102,27 +102,24 @@ def _post_json_pointer_format_response_body_for_content_types_oapg( @typing.overload def _post_json_pointer_format_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_json_pointer_format_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -164,19 +161,19 @@ class PostJsonPointerFormatResponseBodyForContentTypes(BaseApi): @typing.overload def post_json_pointer_format_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_json_pointer_format_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -186,27 +183,24 @@ def post_json_pointer_format_response_body_for_content_types( @typing.overload def post_json_pointer_format_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_json_pointer_format_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_json_pointer_format_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -220,19 +214,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -242,27 +236,24 @@ def post( @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_json_pointer_format_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_json_pointer_format_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_json_pointer_format_response_body_for_content_types/post.pyi index 6b70bb40eb8..3d134e901cf 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_json_pointer_format_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_json_pointer_format_response_body_for_content_types/post.pyi @@ -57,19 +57,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_json_pointer_format_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_json_pointer_format_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -79,27 +79,24 @@ class BaseApi(api_client.Api): @typing.overload def _post_json_pointer_format_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_json_pointer_format_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -141,19 +138,19 @@ class PostJsonPointerFormatResponseBodyForContentTypes(BaseApi): @typing.overload def post_json_pointer_format_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_json_pointer_format_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -163,27 +160,24 @@ class PostJsonPointerFormatResponseBodyForContentTypes(BaseApi): @typing.overload def post_json_pointer_format_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_json_pointer_format_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_json_pointer_format_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -197,19 +191,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -219,27 +213,24 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_json_pointer_format_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maximum_validation_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maximum_validation_response_body_for_content_types/post.py index c17572787b2..13264682e96 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maximum_validation_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maximum_validation_response_body_for_content_types/post.py @@ -60,19 +60,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_maximum_validation_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_maximum_validation_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -82,27 +82,24 @@ def _post_maximum_validation_response_body_for_content_types_oapg( @typing.overload def _post_maximum_validation_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_maximum_validation_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,19 +141,19 @@ class PostMaximumValidationResponseBodyForContentTypes(BaseApi): @typing.overload def post_maximum_validation_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_maximum_validation_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -166,27 +163,24 @@ def post_maximum_validation_response_body_for_content_types( @typing.overload def post_maximum_validation_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_maximum_validation_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_maximum_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -200,19 +194,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -222,27 +216,24 @@ def post( @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_maximum_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maximum_validation_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maximum_validation_response_body_for_content_types/post.pyi index f3f757b6335..a559f6e43cb 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maximum_validation_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maximum_validation_response_body_for_content_types/post.pyi @@ -37,19 +37,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_maximum_validation_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_maximum_validation_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,27 +59,24 @@ class BaseApi(api_client.Api): @typing.overload def _post_maximum_validation_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_maximum_validation_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,19 +118,19 @@ class PostMaximumValidationResponseBodyForContentTypes(BaseApi): @typing.overload def post_maximum_validation_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_maximum_validation_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -143,27 +140,24 @@ class PostMaximumValidationResponseBodyForContentTypes(BaseApi): @typing.overload def post_maximum_validation_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_maximum_validation_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_maximum_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -177,19 +171,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -199,27 +193,24 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_maximum_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post.py index 2300319da4a..bbd7cf48ad1 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post.py @@ -60,19 +60,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_maximum_validation_with_unsigned_integer_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_maximum_validation_with_unsigned_integer_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -82,27 +82,24 @@ def _post_maximum_validation_with_unsigned_integer_response_body_for_content_typ @typing.overload def _post_maximum_validation_with_unsigned_integer_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_maximum_validation_with_unsigned_integer_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,19 +141,19 @@ class PostMaximumValidationWithUnsignedIntegerResponseBodyForContentTypes(BaseAp @typing.overload def post_maximum_validation_with_unsigned_integer_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_maximum_validation_with_unsigned_integer_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -166,27 +163,24 @@ def post_maximum_validation_with_unsigned_integer_response_body_for_content_type @typing.overload def post_maximum_validation_with_unsigned_integer_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_maximum_validation_with_unsigned_integer_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_maximum_validation_with_unsigned_integer_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -200,19 +194,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -222,27 +216,24 @@ def post( @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_maximum_validation_with_unsigned_integer_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post.pyi index f9a5241fd9f..97de83137a8 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post.pyi @@ -37,19 +37,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_maximum_validation_with_unsigned_integer_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_maximum_validation_with_unsigned_integer_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,27 +59,24 @@ class BaseApi(api_client.Api): @typing.overload def _post_maximum_validation_with_unsigned_integer_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_maximum_validation_with_unsigned_integer_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,19 +118,19 @@ class PostMaximumValidationWithUnsignedIntegerResponseBodyForContentTypes(BaseAp @typing.overload def post_maximum_validation_with_unsigned_integer_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_maximum_validation_with_unsigned_integer_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -143,27 +140,24 @@ class PostMaximumValidationWithUnsignedIntegerResponseBodyForContentTypes(BaseAp @typing.overload def post_maximum_validation_with_unsigned_integer_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_maximum_validation_with_unsigned_integer_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_maximum_validation_with_unsigned_integer_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -177,19 +171,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -199,27 +193,24 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_maximum_validation_with_unsigned_integer_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxitems_validation_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxitems_validation_response_body_for_content_types/post.py index 3b53fb0c847..6f8d4263aa7 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxitems_validation_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxitems_validation_response_body_for_content_types/post.py @@ -60,19 +60,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_maxitems_validation_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_maxitems_validation_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -82,27 +82,24 @@ def _post_maxitems_validation_response_body_for_content_types_oapg( @typing.overload def _post_maxitems_validation_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_maxitems_validation_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,19 +141,19 @@ class PostMaxitemsValidationResponseBodyForContentTypes(BaseApi): @typing.overload def post_maxitems_validation_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_maxitems_validation_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -166,27 +163,24 @@ def post_maxitems_validation_response_body_for_content_types( @typing.overload def post_maxitems_validation_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_maxitems_validation_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_maxitems_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -200,19 +194,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -222,27 +216,24 @@ def post( @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_maxitems_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxitems_validation_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxitems_validation_response_body_for_content_types/post.pyi index 63d1d131929..4c41db104be 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxitems_validation_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxitems_validation_response_body_for_content_types/post.pyi @@ -37,19 +37,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_maxitems_validation_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_maxitems_validation_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,27 +59,24 @@ class BaseApi(api_client.Api): @typing.overload def _post_maxitems_validation_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_maxitems_validation_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,19 +118,19 @@ class PostMaxitemsValidationResponseBodyForContentTypes(BaseApi): @typing.overload def post_maxitems_validation_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_maxitems_validation_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -143,27 +140,24 @@ class PostMaxitemsValidationResponseBodyForContentTypes(BaseApi): @typing.overload def post_maxitems_validation_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_maxitems_validation_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_maxitems_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -177,19 +171,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -199,27 +193,24 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_maxitems_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxlength_validation_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxlength_validation_response_body_for_content_types/post.py index cfc56aee7e0..1a706645e2d 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxlength_validation_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxlength_validation_response_body_for_content_types/post.py @@ -60,19 +60,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_maxlength_validation_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_maxlength_validation_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -82,27 +82,24 @@ def _post_maxlength_validation_response_body_for_content_types_oapg( @typing.overload def _post_maxlength_validation_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_maxlength_validation_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,19 +141,19 @@ class PostMaxlengthValidationResponseBodyForContentTypes(BaseApi): @typing.overload def post_maxlength_validation_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_maxlength_validation_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -166,27 +163,24 @@ def post_maxlength_validation_response_body_for_content_types( @typing.overload def post_maxlength_validation_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_maxlength_validation_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_maxlength_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -200,19 +194,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -222,27 +216,24 @@ def post( @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_maxlength_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxlength_validation_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxlength_validation_response_body_for_content_types/post.pyi index 388ba5b52c1..9a670d8798f 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxlength_validation_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxlength_validation_response_body_for_content_types/post.pyi @@ -37,19 +37,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_maxlength_validation_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_maxlength_validation_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,27 +59,24 @@ class BaseApi(api_client.Api): @typing.overload def _post_maxlength_validation_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_maxlength_validation_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,19 +118,19 @@ class PostMaxlengthValidationResponseBodyForContentTypes(BaseApi): @typing.overload def post_maxlength_validation_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_maxlength_validation_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -143,27 +140,24 @@ class PostMaxlengthValidationResponseBodyForContentTypes(BaseApi): @typing.overload def post_maxlength_validation_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_maxlength_validation_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_maxlength_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -177,19 +171,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -199,27 +193,24 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_maxlength_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post.py index bb39876c4d5..1f352431438 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post.py @@ -60,19 +60,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_maxproperties0_means_the_object_is_empty_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_maxproperties0_means_the_object_is_empty_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -82,27 +82,24 @@ def _post_maxproperties0_means_the_object_is_empty_response_body_for_content_typ @typing.overload def _post_maxproperties0_means_the_object_is_empty_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_maxproperties0_means_the_object_is_empty_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,19 +141,19 @@ class PostMaxproperties0MeansTheObjectIsEmptyResponseBodyForContentTypes(BaseApi @typing.overload def post_maxproperties0_means_the_object_is_empty_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_maxproperties0_means_the_object_is_empty_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -166,27 +163,24 @@ def post_maxproperties0_means_the_object_is_empty_response_body_for_content_type @typing.overload def post_maxproperties0_means_the_object_is_empty_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_maxproperties0_means_the_object_is_empty_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_maxproperties0_means_the_object_is_empty_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -200,19 +194,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -222,27 +216,24 @@ def post( @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_maxproperties0_means_the_object_is_empty_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post.pyi index 3a60659327c..605f90a4c5f 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post.pyi @@ -37,19 +37,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_maxproperties0_means_the_object_is_empty_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_maxproperties0_means_the_object_is_empty_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,27 +59,24 @@ class BaseApi(api_client.Api): @typing.overload def _post_maxproperties0_means_the_object_is_empty_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_maxproperties0_means_the_object_is_empty_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,19 +118,19 @@ class PostMaxproperties0MeansTheObjectIsEmptyResponseBodyForContentTypes(BaseApi @typing.overload def post_maxproperties0_means_the_object_is_empty_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_maxproperties0_means_the_object_is_empty_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -143,27 +140,24 @@ class PostMaxproperties0MeansTheObjectIsEmptyResponseBodyForContentTypes(BaseApi @typing.overload def post_maxproperties0_means_the_object_is_empty_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_maxproperties0_means_the_object_is_empty_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_maxproperties0_means_the_object_is_empty_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -177,19 +171,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -199,27 +193,24 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_maxproperties0_means_the_object_is_empty_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post.py index b6791870f71..f31f1fb1d9c 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post.py @@ -60,19 +60,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_maxproperties_validation_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_maxproperties_validation_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -82,27 +82,24 @@ def _post_maxproperties_validation_response_body_for_content_types_oapg( @typing.overload def _post_maxproperties_validation_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_maxproperties_validation_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,19 +141,19 @@ class PostMaxpropertiesValidationResponseBodyForContentTypes(BaseApi): @typing.overload def post_maxproperties_validation_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_maxproperties_validation_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -166,27 +163,24 @@ def post_maxproperties_validation_response_body_for_content_types( @typing.overload def post_maxproperties_validation_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_maxproperties_validation_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_maxproperties_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -200,19 +194,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -222,27 +216,24 @@ def post( @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_maxproperties_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post.pyi index 3641b9f7aa4..216e4aabb1b 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post.pyi @@ -37,19 +37,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_maxproperties_validation_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_maxproperties_validation_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,27 +59,24 @@ class BaseApi(api_client.Api): @typing.overload def _post_maxproperties_validation_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_maxproperties_validation_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,19 +118,19 @@ class PostMaxpropertiesValidationResponseBodyForContentTypes(BaseApi): @typing.overload def post_maxproperties_validation_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_maxproperties_validation_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -143,27 +140,24 @@ class PostMaxpropertiesValidationResponseBodyForContentTypes(BaseApi): @typing.overload def post_maxproperties_validation_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_maxproperties_validation_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_maxproperties_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -177,19 +171,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -199,27 +193,24 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_maxproperties_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minimum_validation_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minimum_validation_response_body_for_content_types/post.py index 21a18594c3f..2f406e188cc 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minimum_validation_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minimum_validation_response_body_for_content_types/post.py @@ -60,19 +60,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_minimum_validation_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_minimum_validation_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -82,27 +82,24 @@ def _post_minimum_validation_response_body_for_content_types_oapg( @typing.overload def _post_minimum_validation_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_minimum_validation_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,19 +141,19 @@ class PostMinimumValidationResponseBodyForContentTypes(BaseApi): @typing.overload def post_minimum_validation_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_minimum_validation_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -166,27 +163,24 @@ def post_minimum_validation_response_body_for_content_types( @typing.overload def post_minimum_validation_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_minimum_validation_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_minimum_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -200,19 +194,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -222,27 +216,24 @@ def post( @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_minimum_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minimum_validation_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minimum_validation_response_body_for_content_types/post.pyi index ff2ccd299f2..c736df7683f 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minimum_validation_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minimum_validation_response_body_for_content_types/post.pyi @@ -37,19 +37,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_minimum_validation_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_minimum_validation_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,27 +59,24 @@ class BaseApi(api_client.Api): @typing.overload def _post_minimum_validation_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_minimum_validation_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,19 +118,19 @@ class PostMinimumValidationResponseBodyForContentTypes(BaseApi): @typing.overload def post_minimum_validation_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_minimum_validation_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -143,27 +140,24 @@ class PostMinimumValidationResponseBodyForContentTypes(BaseApi): @typing.overload def post_minimum_validation_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_minimum_validation_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_minimum_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -177,19 +171,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -199,27 +193,24 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_minimum_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post.py index bc07906c24b..7ef54d79a3b 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post.py @@ -60,19 +60,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_minimum_validation_with_signed_integer_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_minimum_validation_with_signed_integer_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -82,27 +82,24 @@ def _post_minimum_validation_with_signed_integer_response_body_for_content_types @typing.overload def _post_minimum_validation_with_signed_integer_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_minimum_validation_with_signed_integer_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,19 +141,19 @@ class PostMinimumValidationWithSignedIntegerResponseBodyForContentTypes(BaseApi) @typing.overload def post_minimum_validation_with_signed_integer_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_minimum_validation_with_signed_integer_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -166,27 +163,24 @@ def post_minimum_validation_with_signed_integer_response_body_for_content_types( @typing.overload def post_minimum_validation_with_signed_integer_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_minimum_validation_with_signed_integer_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_minimum_validation_with_signed_integer_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -200,19 +194,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -222,27 +216,24 @@ def post( @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_minimum_validation_with_signed_integer_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post.pyi index 64d8df7cf3a..2756a0b8077 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post.pyi @@ -37,19 +37,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_minimum_validation_with_signed_integer_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_minimum_validation_with_signed_integer_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,27 +59,24 @@ class BaseApi(api_client.Api): @typing.overload def _post_minimum_validation_with_signed_integer_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_minimum_validation_with_signed_integer_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,19 +118,19 @@ class PostMinimumValidationWithSignedIntegerResponseBodyForContentTypes(BaseApi) @typing.overload def post_minimum_validation_with_signed_integer_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_minimum_validation_with_signed_integer_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -143,27 +140,24 @@ class PostMinimumValidationWithSignedIntegerResponseBodyForContentTypes(BaseApi) @typing.overload def post_minimum_validation_with_signed_integer_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_minimum_validation_with_signed_integer_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_minimum_validation_with_signed_integer_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -177,19 +171,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -199,27 +193,24 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_minimum_validation_with_signed_integer_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minitems_validation_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minitems_validation_response_body_for_content_types/post.py index d63bda52481..6f52d1b83c0 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minitems_validation_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minitems_validation_response_body_for_content_types/post.py @@ -60,19 +60,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_minitems_validation_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_minitems_validation_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -82,27 +82,24 @@ def _post_minitems_validation_response_body_for_content_types_oapg( @typing.overload def _post_minitems_validation_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_minitems_validation_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,19 +141,19 @@ class PostMinitemsValidationResponseBodyForContentTypes(BaseApi): @typing.overload def post_minitems_validation_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_minitems_validation_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -166,27 +163,24 @@ def post_minitems_validation_response_body_for_content_types( @typing.overload def post_minitems_validation_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_minitems_validation_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_minitems_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -200,19 +194,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -222,27 +216,24 @@ def post( @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_minitems_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minitems_validation_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minitems_validation_response_body_for_content_types/post.pyi index 418fc1dc62a..a2246732390 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minitems_validation_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minitems_validation_response_body_for_content_types/post.pyi @@ -37,19 +37,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_minitems_validation_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_minitems_validation_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,27 +59,24 @@ class BaseApi(api_client.Api): @typing.overload def _post_minitems_validation_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_minitems_validation_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,19 +118,19 @@ class PostMinitemsValidationResponseBodyForContentTypes(BaseApi): @typing.overload def post_minitems_validation_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_minitems_validation_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -143,27 +140,24 @@ class PostMinitemsValidationResponseBodyForContentTypes(BaseApi): @typing.overload def post_minitems_validation_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_minitems_validation_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_minitems_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -177,19 +171,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -199,27 +193,24 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_minitems_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minlength_validation_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minlength_validation_response_body_for_content_types/post.py index 3ba1b9e59c0..7fa06ec8d97 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minlength_validation_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minlength_validation_response_body_for_content_types/post.py @@ -60,19 +60,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_minlength_validation_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_minlength_validation_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -82,27 +82,24 @@ def _post_minlength_validation_response_body_for_content_types_oapg( @typing.overload def _post_minlength_validation_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_minlength_validation_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,19 +141,19 @@ class PostMinlengthValidationResponseBodyForContentTypes(BaseApi): @typing.overload def post_minlength_validation_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_minlength_validation_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -166,27 +163,24 @@ def post_minlength_validation_response_body_for_content_types( @typing.overload def post_minlength_validation_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_minlength_validation_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_minlength_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -200,19 +194,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -222,27 +216,24 @@ def post( @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_minlength_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minlength_validation_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minlength_validation_response_body_for_content_types/post.pyi index 6d809b1baa7..3156a0ce4ee 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minlength_validation_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minlength_validation_response_body_for_content_types/post.pyi @@ -37,19 +37,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_minlength_validation_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_minlength_validation_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,27 +59,24 @@ class BaseApi(api_client.Api): @typing.overload def _post_minlength_validation_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_minlength_validation_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,19 +118,19 @@ class PostMinlengthValidationResponseBodyForContentTypes(BaseApi): @typing.overload def post_minlength_validation_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_minlength_validation_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -143,27 +140,24 @@ class PostMinlengthValidationResponseBodyForContentTypes(BaseApi): @typing.overload def post_minlength_validation_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_minlength_validation_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_minlength_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -177,19 +171,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -199,27 +193,24 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_minlength_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minproperties_validation_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minproperties_validation_response_body_for_content_types/post.py index 6ee1603e66c..b0bd0bbe8c5 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minproperties_validation_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minproperties_validation_response_body_for_content_types/post.py @@ -60,19 +60,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_minproperties_validation_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_minproperties_validation_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -82,27 +82,24 @@ def _post_minproperties_validation_response_body_for_content_types_oapg( @typing.overload def _post_minproperties_validation_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_minproperties_validation_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,19 +141,19 @@ class PostMinpropertiesValidationResponseBodyForContentTypes(BaseApi): @typing.overload def post_minproperties_validation_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_minproperties_validation_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -166,27 +163,24 @@ def post_minproperties_validation_response_body_for_content_types( @typing.overload def post_minproperties_validation_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_minproperties_validation_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_minproperties_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -200,19 +194,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -222,27 +216,24 @@ def post( @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_minproperties_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minproperties_validation_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minproperties_validation_response_body_for_content_types/post.pyi index b5ec9d85da8..7a9c4618e6b 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minproperties_validation_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minproperties_validation_response_body_for_content_types/post.pyi @@ -37,19 +37,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_minproperties_validation_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_minproperties_validation_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,27 +59,24 @@ class BaseApi(api_client.Api): @typing.overload def _post_minproperties_validation_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_minproperties_validation_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,19 +118,19 @@ class PostMinpropertiesValidationResponseBodyForContentTypes(BaseApi): @typing.overload def post_minproperties_validation_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_minproperties_validation_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -143,27 +140,24 @@ class PostMinpropertiesValidationResponseBodyForContentTypes(BaseApi): @typing.overload def post_minproperties_validation_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_minproperties_validation_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_minproperties_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -177,19 +171,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -199,27 +193,24 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_minproperties_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post.py index 91f4fdb6305..eb09a155211 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post.py @@ -60,19 +60,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_nested_allof_to_check_validation_semantics_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_nested_allof_to_check_validation_semantics_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -82,27 +82,24 @@ def _post_nested_allof_to_check_validation_semantics_response_body_for_content_t @typing.overload def _post_nested_allof_to_check_validation_semantics_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_nested_allof_to_check_validation_semantics_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,19 +141,19 @@ class PostNestedAllofToCheckValidationSemanticsResponseBodyForContentTypes(BaseA @typing.overload def post_nested_allof_to_check_validation_semantics_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_nested_allof_to_check_validation_semantics_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -166,27 +163,24 @@ def post_nested_allof_to_check_validation_semantics_response_body_for_content_ty @typing.overload def post_nested_allof_to_check_validation_semantics_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_nested_allof_to_check_validation_semantics_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_nested_allof_to_check_validation_semantics_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -200,19 +194,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -222,27 +216,24 @@ def post( @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_nested_allof_to_check_validation_semantics_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post.pyi index 21fa7ac2738..13105bed5b9 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post.pyi @@ -37,19 +37,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_nested_allof_to_check_validation_semantics_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_nested_allof_to_check_validation_semantics_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,27 +59,24 @@ class BaseApi(api_client.Api): @typing.overload def _post_nested_allof_to_check_validation_semantics_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_nested_allof_to_check_validation_semantics_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,19 +118,19 @@ class PostNestedAllofToCheckValidationSemanticsResponseBodyForContentTypes(BaseA @typing.overload def post_nested_allof_to_check_validation_semantics_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_nested_allof_to_check_validation_semantics_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -143,27 +140,24 @@ class PostNestedAllofToCheckValidationSemanticsResponseBodyForContentTypes(BaseA @typing.overload def post_nested_allof_to_check_validation_semantics_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_nested_allof_to_check_validation_semantics_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_nested_allof_to_check_validation_semantics_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -177,19 +171,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -199,27 +193,24 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_nested_allof_to_check_validation_semantics_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post.py index 88739b5c317..07164341eee 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post.py @@ -60,19 +60,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_nested_anyof_to_check_validation_semantics_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_nested_anyof_to_check_validation_semantics_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -82,27 +82,24 @@ def _post_nested_anyof_to_check_validation_semantics_response_body_for_content_t @typing.overload def _post_nested_anyof_to_check_validation_semantics_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_nested_anyof_to_check_validation_semantics_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,19 +141,19 @@ class PostNestedAnyofToCheckValidationSemanticsResponseBodyForContentTypes(BaseA @typing.overload def post_nested_anyof_to_check_validation_semantics_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_nested_anyof_to_check_validation_semantics_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -166,27 +163,24 @@ def post_nested_anyof_to_check_validation_semantics_response_body_for_content_ty @typing.overload def post_nested_anyof_to_check_validation_semantics_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_nested_anyof_to_check_validation_semantics_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_nested_anyof_to_check_validation_semantics_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -200,19 +194,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -222,27 +216,24 @@ def post( @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_nested_anyof_to_check_validation_semantics_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post.pyi index 815d9e3cdef..01588447f20 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post.pyi @@ -37,19 +37,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_nested_anyof_to_check_validation_semantics_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_nested_anyof_to_check_validation_semantics_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,27 +59,24 @@ class BaseApi(api_client.Api): @typing.overload def _post_nested_anyof_to_check_validation_semantics_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_nested_anyof_to_check_validation_semantics_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,19 +118,19 @@ class PostNestedAnyofToCheckValidationSemanticsResponseBodyForContentTypes(BaseA @typing.overload def post_nested_anyof_to_check_validation_semantics_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_nested_anyof_to_check_validation_semantics_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -143,27 +140,24 @@ class PostNestedAnyofToCheckValidationSemanticsResponseBodyForContentTypes(BaseA @typing.overload def post_nested_anyof_to_check_validation_semantics_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_nested_anyof_to_check_validation_semantics_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_nested_anyof_to_check_validation_semantics_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -177,19 +171,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -199,27 +193,24 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_nested_anyof_to_check_validation_semantics_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_items_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_items_response_body_for_content_types/post.py index 6c10b57aaec..ea9b1a92fec 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_items_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_items_response_body_for_content_types/post.py @@ -60,19 +60,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_nested_items_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_nested_items_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -82,27 +82,24 @@ def _post_nested_items_response_body_for_content_types_oapg( @typing.overload def _post_nested_items_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_nested_items_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,19 +141,19 @@ class PostNestedItemsResponseBodyForContentTypes(BaseApi): @typing.overload def post_nested_items_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_nested_items_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -166,27 +163,24 @@ def post_nested_items_response_body_for_content_types( @typing.overload def post_nested_items_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_nested_items_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_nested_items_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -200,19 +194,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -222,27 +216,24 @@ def post( @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_nested_items_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_items_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_items_response_body_for_content_types/post.pyi index 630016843f6..2c105129b12 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_items_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_items_response_body_for_content_types/post.pyi @@ -37,19 +37,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_nested_items_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_nested_items_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,27 +59,24 @@ class BaseApi(api_client.Api): @typing.overload def _post_nested_items_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_nested_items_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,19 +118,19 @@ class PostNestedItemsResponseBodyForContentTypes(BaseApi): @typing.overload def post_nested_items_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_nested_items_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -143,27 +140,24 @@ class PostNestedItemsResponseBodyForContentTypes(BaseApi): @typing.overload def post_nested_items_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_nested_items_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_nested_items_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -177,19 +171,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -199,27 +193,24 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_nested_items_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post.py index b208c07a981..3abd1cfed99 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post.py @@ -60,19 +60,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_nested_oneof_to_check_validation_semantics_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_nested_oneof_to_check_validation_semantics_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -82,27 +82,24 @@ def _post_nested_oneof_to_check_validation_semantics_response_body_for_content_t @typing.overload def _post_nested_oneof_to_check_validation_semantics_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_nested_oneof_to_check_validation_semantics_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,19 +141,19 @@ class PostNestedOneofToCheckValidationSemanticsResponseBodyForContentTypes(BaseA @typing.overload def post_nested_oneof_to_check_validation_semantics_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_nested_oneof_to_check_validation_semantics_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -166,27 +163,24 @@ def post_nested_oneof_to_check_validation_semantics_response_body_for_content_ty @typing.overload def post_nested_oneof_to_check_validation_semantics_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_nested_oneof_to_check_validation_semantics_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_nested_oneof_to_check_validation_semantics_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -200,19 +194,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -222,27 +216,24 @@ def post( @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_nested_oneof_to_check_validation_semantics_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post.pyi index b69e135c9f5..e9a31003be6 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post.pyi @@ -37,19 +37,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_nested_oneof_to_check_validation_semantics_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_nested_oneof_to_check_validation_semantics_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,27 +59,24 @@ class BaseApi(api_client.Api): @typing.overload def _post_nested_oneof_to_check_validation_semantics_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_nested_oneof_to_check_validation_semantics_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,19 +118,19 @@ class PostNestedOneofToCheckValidationSemanticsResponseBodyForContentTypes(BaseA @typing.overload def post_nested_oneof_to_check_validation_semantics_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_nested_oneof_to_check_validation_semantics_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -143,27 +140,24 @@ class PostNestedOneofToCheckValidationSemanticsResponseBodyForContentTypes(BaseA @typing.overload def post_nested_oneof_to_check_validation_semantics_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_nested_oneof_to_check_validation_semantics_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_nested_oneof_to_check_validation_semantics_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -177,19 +171,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -199,27 +193,24 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_nested_oneof_to_check_validation_semantics_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post.py index b6e97f5feb0..4d8348fff0d 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post.py @@ -129,19 +129,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_not_more_complex_schema_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_not_more_complex_schema_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -151,27 +151,24 @@ def _post_not_more_complex_schema_response_body_for_content_types_oapg( @typing.overload def _post_not_more_complex_schema_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_not_more_complex_schema_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -213,19 +210,19 @@ class PostNotMoreComplexSchemaResponseBodyForContentTypes(BaseApi): @typing.overload def post_not_more_complex_schema_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_not_more_complex_schema_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -235,27 +232,24 @@ def post_not_more_complex_schema_response_body_for_content_types( @typing.overload def post_not_more_complex_schema_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_not_more_complex_schema_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_not_more_complex_schema_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -269,19 +263,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -291,27 +285,24 @@ def post( @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_not_more_complex_schema_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post.pyi index 98f0dbc77f0..93ae304e590 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post.pyi @@ -106,19 +106,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_not_more_complex_schema_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_not_more_complex_schema_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -128,27 +128,24 @@ class BaseApi(api_client.Api): @typing.overload def _post_not_more_complex_schema_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_not_more_complex_schema_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -190,19 +187,19 @@ class PostNotMoreComplexSchemaResponseBodyForContentTypes(BaseApi): @typing.overload def post_not_more_complex_schema_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_not_more_complex_schema_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -212,27 +209,24 @@ class PostNotMoreComplexSchemaResponseBodyForContentTypes(BaseApi): @typing.overload def post_not_more_complex_schema_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_not_more_complex_schema_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_not_more_complex_schema_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -246,19 +240,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -268,27 +262,24 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_not_more_complex_schema_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_not_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_not_response_body_for_content_types/post.py index 2157538fdba..5dc688e0bd4 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_not_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_not_response_body_for_content_types/post.py @@ -80,19 +80,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_not_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_not_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -102,27 +102,24 @@ def _post_not_response_body_for_content_types_oapg( @typing.overload def _post_not_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_not_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -164,19 +161,19 @@ class PostNotResponseBodyForContentTypes(BaseApi): @typing.overload def post_not_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_not_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -186,27 +183,24 @@ def post_not_response_body_for_content_types( @typing.overload def post_not_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_not_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_not_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -220,19 +214,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -242,27 +236,24 @@ def post( @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_not_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_not_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_not_response_body_for_content_types/post.pyi index fabd0bb23d4..ed6e52fff5d 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_not_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_not_response_body_for_content_types/post.pyi @@ -57,19 +57,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_not_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_not_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -79,27 +79,24 @@ class BaseApi(api_client.Api): @typing.overload def _post_not_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_not_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -141,19 +138,19 @@ class PostNotResponseBodyForContentTypes(BaseApi): @typing.overload def post_not_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_not_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -163,27 +160,24 @@ class PostNotResponseBodyForContentTypes(BaseApi): @typing.overload def post_not_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_not_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_not_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -197,19 +191,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -219,27 +213,24 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_not_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post.py index 613da91c4b0..08cffaab4fe 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post.py @@ -60,19 +60,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_nul_characters_in_strings_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_nul_characters_in_strings_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -82,27 +82,24 @@ def _post_nul_characters_in_strings_response_body_for_content_types_oapg( @typing.overload def _post_nul_characters_in_strings_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_nul_characters_in_strings_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,19 +141,19 @@ class PostNulCharactersInStringsResponseBodyForContentTypes(BaseApi): @typing.overload def post_nul_characters_in_strings_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_nul_characters_in_strings_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -166,27 +163,24 @@ def post_nul_characters_in_strings_response_body_for_content_types( @typing.overload def post_nul_characters_in_strings_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_nul_characters_in_strings_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_nul_characters_in_strings_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -200,19 +194,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -222,27 +216,24 @@ def post( @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_nul_characters_in_strings_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post.pyi index 9428e020318..b80810e8b09 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post.pyi @@ -37,19 +37,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_nul_characters_in_strings_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_nul_characters_in_strings_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,27 +59,24 @@ class BaseApi(api_client.Api): @typing.overload def _post_nul_characters_in_strings_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_nul_characters_in_strings_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,19 +118,19 @@ class PostNulCharactersInStringsResponseBodyForContentTypes(BaseApi): @typing.overload def post_nul_characters_in_strings_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_nul_characters_in_strings_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -143,27 +140,24 @@ class PostNulCharactersInStringsResponseBodyForContentTypes(BaseApi): @typing.overload def post_nul_characters_in_strings_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_nul_characters_in_strings_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_nul_characters_in_strings_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -177,19 +171,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -199,27 +193,24 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_nul_characters_in_strings_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post.py index 6c09600ac39..bd3a97244fa 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post.py @@ -58,19 +58,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_null_type_matches_only_the_null_object_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_null_type_matches_only_the_null_object_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -80,27 +80,24 @@ def _post_null_type_matches_only_the_null_object_response_body_for_content_types @typing.overload def _post_null_type_matches_only_the_null_object_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_null_type_matches_only_the_null_object_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -142,19 +139,19 @@ class PostNullTypeMatchesOnlyTheNullObjectResponseBodyForContentTypes(BaseApi): @typing.overload def post_null_type_matches_only_the_null_object_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_null_type_matches_only_the_null_object_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -164,27 +161,24 @@ def post_null_type_matches_only_the_null_object_response_body_for_content_types( @typing.overload def post_null_type_matches_only_the_null_object_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_null_type_matches_only_the_null_object_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_null_type_matches_only_the_null_object_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -198,19 +192,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -220,27 +214,24 @@ def post( @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_null_type_matches_only_the_null_object_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post.pyi index 5ac0c3de379..ac857bac556 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post.pyi @@ -35,19 +35,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_null_type_matches_only_the_null_object_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_null_type_matches_only_the_null_object_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -57,27 +57,24 @@ class BaseApi(api_client.Api): @typing.overload def _post_null_type_matches_only_the_null_object_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_null_type_matches_only_the_null_object_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -119,19 +116,19 @@ class PostNullTypeMatchesOnlyTheNullObjectResponseBodyForContentTypes(BaseApi): @typing.overload def post_null_type_matches_only_the_null_object_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_null_type_matches_only_the_null_object_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -141,27 +138,24 @@ class PostNullTypeMatchesOnlyTheNullObjectResponseBodyForContentTypes(BaseApi): @typing.overload def post_null_type_matches_only_the_null_object_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_null_type_matches_only_the_null_object_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_null_type_matches_only_the_null_object_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -175,19 +169,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -197,27 +191,24 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_null_type_matches_only_the_null_object_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post.py index e6bcc44ba28..1286a98175d 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post.py @@ -58,19 +58,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_number_type_matches_numbers_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_number_type_matches_numbers_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -80,27 +80,24 @@ def _post_number_type_matches_numbers_response_body_for_content_types_oapg( @typing.overload def _post_number_type_matches_numbers_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_number_type_matches_numbers_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -142,19 +139,19 @@ class PostNumberTypeMatchesNumbersResponseBodyForContentTypes(BaseApi): @typing.overload def post_number_type_matches_numbers_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_number_type_matches_numbers_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -164,27 +161,24 @@ def post_number_type_matches_numbers_response_body_for_content_types( @typing.overload def post_number_type_matches_numbers_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_number_type_matches_numbers_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_number_type_matches_numbers_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -198,19 +192,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -220,27 +214,24 @@ def post( @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_number_type_matches_numbers_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post.pyi index c2018a026a0..754a890b1a9 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post.pyi @@ -35,19 +35,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_number_type_matches_numbers_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_number_type_matches_numbers_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -57,27 +57,24 @@ class BaseApi(api_client.Api): @typing.overload def _post_number_type_matches_numbers_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_number_type_matches_numbers_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -119,19 +116,19 @@ class PostNumberTypeMatchesNumbersResponseBodyForContentTypes(BaseApi): @typing.overload def post_number_type_matches_numbers_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_number_type_matches_numbers_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -141,27 +138,24 @@ class PostNumberTypeMatchesNumbersResponseBodyForContentTypes(BaseApi): @typing.overload def post_number_type_matches_numbers_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_number_type_matches_numbers_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_number_type_matches_numbers_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -175,19 +169,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -197,27 +191,24 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_number_type_matches_numbers_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_object_properties_validation_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_object_properties_validation_response_body_for_content_types/post.py index 0670c4792f4..41853ac2e4d 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_object_properties_validation_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_object_properties_validation_response_body_for_content_types/post.py @@ -60,19 +60,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_object_properties_validation_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_object_properties_validation_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -82,27 +82,24 @@ def _post_object_properties_validation_response_body_for_content_types_oapg( @typing.overload def _post_object_properties_validation_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_object_properties_validation_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,19 +141,19 @@ class PostObjectPropertiesValidationResponseBodyForContentTypes(BaseApi): @typing.overload def post_object_properties_validation_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_object_properties_validation_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -166,27 +163,24 @@ def post_object_properties_validation_response_body_for_content_types( @typing.overload def post_object_properties_validation_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_object_properties_validation_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_object_properties_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -200,19 +194,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -222,27 +216,24 @@ def post( @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_object_properties_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_object_properties_validation_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_object_properties_validation_response_body_for_content_types/post.pyi index db919edf01d..8f0d390d1f6 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_object_properties_validation_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_object_properties_validation_response_body_for_content_types/post.pyi @@ -37,19 +37,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_object_properties_validation_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_object_properties_validation_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,27 +59,24 @@ class BaseApi(api_client.Api): @typing.overload def _post_object_properties_validation_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_object_properties_validation_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,19 +118,19 @@ class PostObjectPropertiesValidationResponseBodyForContentTypes(BaseApi): @typing.overload def post_object_properties_validation_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_object_properties_validation_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -143,27 +140,24 @@ class PostObjectPropertiesValidationResponseBodyForContentTypes(BaseApi): @typing.overload def post_object_properties_validation_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_object_properties_validation_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_object_properties_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -177,19 +171,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -199,27 +193,24 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_object_properties_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post.py index 849ac676cea..864523ccfe9 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post.py @@ -58,19 +58,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_object_type_matches_objects_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_object_type_matches_objects_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -80,27 +80,24 @@ def _post_object_type_matches_objects_response_body_for_content_types_oapg( @typing.overload def _post_object_type_matches_objects_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_object_type_matches_objects_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -142,19 +139,19 @@ class PostObjectTypeMatchesObjectsResponseBodyForContentTypes(BaseApi): @typing.overload def post_object_type_matches_objects_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_object_type_matches_objects_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -164,27 +161,24 @@ def post_object_type_matches_objects_response_body_for_content_types( @typing.overload def post_object_type_matches_objects_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_object_type_matches_objects_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_object_type_matches_objects_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -198,19 +192,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -220,27 +214,24 @@ def post( @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_object_type_matches_objects_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post.pyi index e798cbd171c..e3420170132 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post.pyi @@ -35,19 +35,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_object_type_matches_objects_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_object_type_matches_objects_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -57,27 +57,24 @@ class BaseApi(api_client.Api): @typing.overload def _post_object_type_matches_objects_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_object_type_matches_objects_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -119,19 +116,19 @@ class PostObjectTypeMatchesObjectsResponseBodyForContentTypes(BaseApi): @typing.overload def post_object_type_matches_objects_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_object_type_matches_objects_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -141,27 +138,24 @@ class PostObjectTypeMatchesObjectsResponseBodyForContentTypes(BaseApi): @typing.overload def post_object_type_matches_objects_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_object_type_matches_objects_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_object_type_matches_objects_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -175,19 +169,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -197,27 +191,24 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_object_type_matches_objects_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post.py index 0711f54239f..e80421ed784 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post.py @@ -60,19 +60,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_oneof_complex_types_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_oneof_complex_types_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -82,27 +82,24 @@ def _post_oneof_complex_types_response_body_for_content_types_oapg( @typing.overload def _post_oneof_complex_types_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_oneof_complex_types_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,19 +141,19 @@ class PostOneofComplexTypesResponseBodyForContentTypes(BaseApi): @typing.overload def post_oneof_complex_types_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_oneof_complex_types_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -166,27 +163,24 @@ def post_oneof_complex_types_response_body_for_content_types( @typing.overload def post_oneof_complex_types_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_oneof_complex_types_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_oneof_complex_types_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -200,19 +194,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -222,27 +216,24 @@ def post( @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_oneof_complex_types_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post.pyi index aab7fd98cfd..288412939d2 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post.pyi @@ -37,19 +37,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_oneof_complex_types_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_oneof_complex_types_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,27 +59,24 @@ class BaseApi(api_client.Api): @typing.overload def _post_oneof_complex_types_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_oneof_complex_types_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,19 +118,19 @@ class PostOneofComplexTypesResponseBodyForContentTypes(BaseApi): @typing.overload def post_oneof_complex_types_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_oneof_complex_types_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -143,27 +140,24 @@ class PostOneofComplexTypesResponseBodyForContentTypes(BaseApi): @typing.overload def post_oneof_complex_types_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_oneof_complex_types_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_oneof_complex_types_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -177,19 +171,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -199,27 +193,24 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_oneof_complex_types_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_response_body_for_content_types/post.py index 907eae25efa..327f5a1183a 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_response_body_for_content_types/post.py @@ -60,19 +60,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_oneof_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_oneof_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -82,27 +82,24 @@ def _post_oneof_response_body_for_content_types_oapg( @typing.overload def _post_oneof_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_oneof_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,19 +141,19 @@ class PostOneofResponseBodyForContentTypes(BaseApi): @typing.overload def post_oneof_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_oneof_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -166,27 +163,24 @@ def post_oneof_response_body_for_content_types( @typing.overload def post_oneof_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_oneof_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_oneof_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -200,19 +194,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -222,27 +216,24 @@ def post( @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_oneof_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_response_body_for_content_types/post.pyi index 6a5d461419a..6043a9cd60d 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_response_body_for_content_types/post.pyi @@ -37,19 +37,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_oneof_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_oneof_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,27 +59,24 @@ class BaseApi(api_client.Api): @typing.overload def _post_oneof_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_oneof_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,19 +118,19 @@ class PostOneofResponseBodyForContentTypes(BaseApi): @typing.overload def post_oneof_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_oneof_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -143,27 +140,24 @@ class PostOneofResponseBodyForContentTypes(BaseApi): @typing.overload def post_oneof_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_oneof_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_oneof_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -177,19 +171,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -199,27 +193,24 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_oneof_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post.py index 0bf1d542016..265f6838374 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post.py @@ -60,19 +60,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_oneof_with_base_schema_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_oneof_with_base_schema_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -82,27 +82,24 @@ def _post_oneof_with_base_schema_response_body_for_content_types_oapg( @typing.overload def _post_oneof_with_base_schema_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_oneof_with_base_schema_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,19 +141,19 @@ class PostOneofWithBaseSchemaResponseBodyForContentTypes(BaseApi): @typing.overload def post_oneof_with_base_schema_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_oneof_with_base_schema_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -166,27 +163,24 @@ def post_oneof_with_base_schema_response_body_for_content_types( @typing.overload def post_oneof_with_base_schema_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_oneof_with_base_schema_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_oneof_with_base_schema_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -200,19 +194,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -222,27 +216,24 @@ def post( @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_oneof_with_base_schema_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post.pyi index 9cf64c8e5de..7fcadd8ed77 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post.pyi @@ -37,19 +37,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_oneof_with_base_schema_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_oneof_with_base_schema_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,27 +59,24 @@ class BaseApi(api_client.Api): @typing.overload def _post_oneof_with_base_schema_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_oneof_with_base_schema_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,19 +118,19 @@ class PostOneofWithBaseSchemaResponseBodyForContentTypes(BaseApi): @typing.overload def post_oneof_with_base_schema_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_oneof_with_base_schema_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -143,27 +140,24 @@ class PostOneofWithBaseSchemaResponseBodyForContentTypes(BaseApi): @typing.overload def post_oneof_with_base_schema_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_oneof_with_base_schema_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_oneof_with_base_schema_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -177,19 +171,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -199,27 +193,24 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_oneof_with_base_schema_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post.py index 9a515069552..83084f3f651 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post.py @@ -60,19 +60,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_oneof_with_empty_schema_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_oneof_with_empty_schema_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -82,27 +82,24 @@ def _post_oneof_with_empty_schema_response_body_for_content_types_oapg( @typing.overload def _post_oneof_with_empty_schema_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_oneof_with_empty_schema_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,19 +141,19 @@ class PostOneofWithEmptySchemaResponseBodyForContentTypes(BaseApi): @typing.overload def post_oneof_with_empty_schema_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_oneof_with_empty_schema_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -166,27 +163,24 @@ def post_oneof_with_empty_schema_response_body_for_content_types( @typing.overload def post_oneof_with_empty_schema_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_oneof_with_empty_schema_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_oneof_with_empty_schema_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -200,19 +194,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -222,27 +216,24 @@ def post( @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_oneof_with_empty_schema_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post.pyi index 6644b83f3f7..586ec60b2e6 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post.pyi @@ -37,19 +37,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_oneof_with_empty_schema_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_oneof_with_empty_schema_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,27 +59,24 @@ class BaseApi(api_client.Api): @typing.overload def _post_oneof_with_empty_schema_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_oneof_with_empty_schema_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,19 +118,19 @@ class PostOneofWithEmptySchemaResponseBodyForContentTypes(BaseApi): @typing.overload def post_oneof_with_empty_schema_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_oneof_with_empty_schema_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -143,27 +140,24 @@ class PostOneofWithEmptySchemaResponseBodyForContentTypes(BaseApi): @typing.overload def post_oneof_with_empty_schema_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_oneof_with_empty_schema_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_oneof_with_empty_schema_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -177,19 +171,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -199,27 +193,24 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_oneof_with_empty_schema_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_with_required_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_with_required_response_body_for_content_types/post.py index 9683ffb0996..3d20def3fcf 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_with_required_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_with_required_response_body_for_content_types/post.py @@ -60,19 +60,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_oneof_with_required_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_oneof_with_required_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -82,27 +82,24 @@ def _post_oneof_with_required_response_body_for_content_types_oapg( @typing.overload def _post_oneof_with_required_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_oneof_with_required_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,19 +141,19 @@ class PostOneofWithRequiredResponseBodyForContentTypes(BaseApi): @typing.overload def post_oneof_with_required_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_oneof_with_required_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -166,27 +163,24 @@ def post_oneof_with_required_response_body_for_content_types( @typing.overload def post_oneof_with_required_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_oneof_with_required_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_oneof_with_required_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -200,19 +194,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -222,27 +216,24 @@ def post( @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_oneof_with_required_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_with_required_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_with_required_response_body_for_content_types/post.pyi index 5836f679523..ee8ca5b79f1 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_with_required_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_with_required_response_body_for_content_types/post.pyi @@ -37,19 +37,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_oneof_with_required_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_oneof_with_required_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,27 +59,24 @@ class BaseApi(api_client.Api): @typing.overload def _post_oneof_with_required_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_oneof_with_required_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,19 +118,19 @@ class PostOneofWithRequiredResponseBodyForContentTypes(BaseApi): @typing.overload def post_oneof_with_required_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_oneof_with_required_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -143,27 +140,24 @@ class PostOneofWithRequiredResponseBodyForContentTypes(BaseApi): @typing.overload def post_oneof_with_required_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_oneof_with_required_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_oneof_with_required_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -177,19 +171,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -199,27 +193,24 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_oneof_with_required_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post.py index 250f7982562..1dbf2974f42 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post.py @@ -60,19 +60,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_pattern_is_not_anchored_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_pattern_is_not_anchored_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -82,27 +82,24 @@ def _post_pattern_is_not_anchored_response_body_for_content_types_oapg( @typing.overload def _post_pattern_is_not_anchored_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_pattern_is_not_anchored_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,19 +141,19 @@ class PostPatternIsNotAnchoredResponseBodyForContentTypes(BaseApi): @typing.overload def post_pattern_is_not_anchored_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_pattern_is_not_anchored_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -166,27 +163,24 @@ def post_pattern_is_not_anchored_response_body_for_content_types( @typing.overload def post_pattern_is_not_anchored_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_pattern_is_not_anchored_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_pattern_is_not_anchored_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -200,19 +194,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -222,27 +216,24 @@ def post( @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_pattern_is_not_anchored_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post.pyi index 86a7db8172a..6269f67e2cd 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post.pyi @@ -37,19 +37,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_pattern_is_not_anchored_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_pattern_is_not_anchored_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,27 +59,24 @@ class BaseApi(api_client.Api): @typing.overload def _post_pattern_is_not_anchored_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_pattern_is_not_anchored_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,19 +118,19 @@ class PostPatternIsNotAnchoredResponseBodyForContentTypes(BaseApi): @typing.overload def post_pattern_is_not_anchored_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_pattern_is_not_anchored_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -143,27 +140,24 @@ class PostPatternIsNotAnchoredResponseBodyForContentTypes(BaseApi): @typing.overload def post_pattern_is_not_anchored_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_pattern_is_not_anchored_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_pattern_is_not_anchored_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -177,19 +171,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -199,27 +193,24 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_pattern_is_not_anchored_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_pattern_validation_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_pattern_validation_response_body_for_content_types/post.py index d9d92bf2822..e658e02dec5 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_pattern_validation_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_pattern_validation_response_body_for_content_types/post.py @@ -60,19 +60,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_pattern_validation_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_pattern_validation_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -82,27 +82,24 @@ def _post_pattern_validation_response_body_for_content_types_oapg( @typing.overload def _post_pattern_validation_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_pattern_validation_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,19 +141,19 @@ class PostPatternValidationResponseBodyForContentTypes(BaseApi): @typing.overload def post_pattern_validation_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_pattern_validation_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -166,27 +163,24 @@ def post_pattern_validation_response_body_for_content_types( @typing.overload def post_pattern_validation_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_pattern_validation_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_pattern_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -200,19 +194,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -222,27 +216,24 @@ def post( @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_pattern_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_pattern_validation_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_pattern_validation_response_body_for_content_types/post.pyi index 8c9924594aa..157cb2e8e62 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_pattern_validation_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_pattern_validation_response_body_for_content_types/post.pyi @@ -37,19 +37,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_pattern_validation_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_pattern_validation_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,27 +59,24 @@ class BaseApi(api_client.Api): @typing.overload def _post_pattern_validation_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_pattern_validation_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,19 +118,19 @@ class PostPatternValidationResponseBodyForContentTypes(BaseApi): @typing.overload def post_pattern_validation_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_pattern_validation_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -143,27 +140,24 @@ class PostPatternValidationResponseBodyForContentTypes(BaseApi): @typing.overload def post_pattern_validation_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_pattern_validation_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_pattern_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -177,19 +171,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -199,27 +193,24 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_pattern_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post.py index 6ca67c6be67..a0ece4c167c 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post.py @@ -60,19 +60,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_properties_with_escaped_characters_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_properties_with_escaped_characters_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -82,27 +82,24 @@ def _post_properties_with_escaped_characters_response_body_for_content_types_oap @typing.overload def _post_properties_with_escaped_characters_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_properties_with_escaped_characters_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,19 +141,19 @@ class PostPropertiesWithEscapedCharactersResponseBodyForContentTypes(BaseApi): @typing.overload def post_properties_with_escaped_characters_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_properties_with_escaped_characters_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -166,27 +163,24 @@ def post_properties_with_escaped_characters_response_body_for_content_types( @typing.overload def post_properties_with_escaped_characters_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_properties_with_escaped_characters_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_properties_with_escaped_characters_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -200,19 +194,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -222,27 +216,24 @@ def post( @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_properties_with_escaped_characters_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post.pyi index 8bbaeca6ce5..0339680a59f 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post.pyi @@ -37,19 +37,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_properties_with_escaped_characters_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_properties_with_escaped_characters_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,27 +59,24 @@ class BaseApi(api_client.Api): @typing.overload def _post_properties_with_escaped_characters_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_properties_with_escaped_characters_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,19 +118,19 @@ class PostPropertiesWithEscapedCharactersResponseBodyForContentTypes(BaseApi): @typing.overload def post_properties_with_escaped_characters_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_properties_with_escaped_characters_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -143,27 +140,24 @@ class PostPropertiesWithEscapedCharactersResponseBodyForContentTypes(BaseApi): @typing.overload def post_properties_with_escaped_characters_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_properties_with_escaped_characters_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_properties_with_escaped_characters_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -177,19 +171,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -199,27 +193,24 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_properties_with_escaped_characters_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post.py index 777c2fb3cf2..d395f881c2a 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post.py @@ -60,19 +60,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_property_named_ref_that_is_not_a_reference_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_property_named_ref_that_is_not_a_reference_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -82,27 +82,24 @@ def _post_property_named_ref_that_is_not_a_reference_response_body_for_content_t @typing.overload def _post_property_named_ref_that_is_not_a_reference_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_property_named_ref_that_is_not_a_reference_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,19 +141,19 @@ class PostPropertyNamedRefThatIsNotAReferenceResponseBodyForContentTypes(BaseApi @typing.overload def post_property_named_ref_that_is_not_a_reference_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_property_named_ref_that_is_not_a_reference_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -166,27 +163,24 @@ def post_property_named_ref_that_is_not_a_reference_response_body_for_content_ty @typing.overload def post_property_named_ref_that_is_not_a_reference_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_property_named_ref_that_is_not_a_reference_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_property_named_ref_that_is_not_a_reference_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -200,19 +194,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -222,27 +216,24 @@ def post( @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_property_named_ref_that_is_not_a_reference_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post.pyi index 4e98a3bb0ea..952e20870d0 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post.pyi @@ -37,19 +37,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_property_named_ref_that_is_not_a_reference_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_property_named_ref_that_is_not_a_reference_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,27 +59,24 @@ class BaseApi(api_client.Api): @typing.overload def _post_property_named_ref_that_is_not_a_reference_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_property_named_ref_that_is_not_a_reference_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,19 +118,19 @@ class PostPropertyNamedRefThatIsNotAReferenceResponseBodyForContentTypes(BaseApi @typing.overload def post_property_named_ref_that_is_not_a_reference_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_property_named_ref_that_is_not_a_reference_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -143,27 +140,24 @@ class PostPropertyNamedRefThatIsNotAReferenceResponseBodyForContentTypes(BaseApi @typing.overload def post_property_named_ref_that_is_not_a_reference_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_property_named_ref_that_is_not_a_reference_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_property_named_ref_that_is_not_a_reference_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -177,19 +171,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -199,27 +193,24 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_property_named_ref_that_is_not_a_reference_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_additionalproperties_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_additionalproperties_response_body_for_content_types/post.py index 3fe4231b863..29aae89d9b9 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_additionalproperties_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_additionalproperties_response_body_for_content_types/post.py @@ -60,19 +60,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_ref_in_additionalproperties_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_ref_in_additionalproperties_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -82,27 +82,24 @@ def _post_ref_in_additionalproperties_response_body_for_content_types_oapg( @typing.overload def _post_ref_in_additionalproperties_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_ref_in_additionalproperties_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,19 +141,19 @@ class PostRefInAdditionalpropertiesResponseBodyForContentTypes(BaseApi): @typing.overload def post_ref_in_additionalproperties_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_ref_in_additionalproperties_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -166,27 +163,24 @@ def post_ref_in_additionalproperties_response_body_for_content_types( @typing.overload def post_ref_in_additionalproperties_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_ref_in_additionalproperties_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_ref_in_additionalproperties_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -200,19 +194,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -222,27 +216,24 @@ def post( @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_ref_in_additionalproperties_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_additionalproperties_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_additionalproperties_response_body_for_content_types/post.pyi index a13c7c92ba9..5d1a4e9ff95 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_additionalproperties_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_additionalproperties_response_body_for_content_types/post.pyi @@ -37,19 +37,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_ref_in_additionalproperties_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_ref_in_additionalproperties_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,27 +59,24 @@ class BaseApi(api_client.Api): @typing.overload def _post_ref_in_additionalproperties_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_ref_in_additionalproperties_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,19 +118,19 @@ class PostRefInAdditionalpropertiesResponseBodyForContentTypes(BaseApi): @typing.overload def post_ref_in_additionalproperties_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_ref_in_additionalproperties_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -143,27 +140,24 @@ class PostRefInAdditionalpropertiesResponseBodyForContentTypes(BaseApi): @typing.overload def post_ref_in_additionalproperties_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_ref_in_additionalproperties_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_ref_in_additionalproperties_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -177,19 +171,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -199,27 +193,24 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_ref_in_additionalproperties_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_allof_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_allof_response_body_for_content_types/post.py index 7ceeb2008b8..1d3ee05b0a1 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_allof_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_allof_response_body_for_content_types/post.py @@ -60,19 +60,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_ref_in_allof_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_ref_in_allof_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -82,27 +82,24 @@ def _post_ref_in_allof_response_body_for_content_types_oapg( @typing.overload def _post_ref_in_allof_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_ref_in_allof_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,19 +141,19 @@ class PostRefInAllofResponseBodyForContentTypes(BaseApi): @typing.overload def post_ref_in_allof_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_ref_in_allof_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -166,27 +163,24 @@ def post_ref_in_allof_response_body_for_content_types( @typing.overload def post_ref_in_allof_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_ref_in_allof_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_ref_in_allof_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -200,19 +194,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -222,27 +216,24 @@ def post( @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_ref_in_allof_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_allof_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_allof_response_body_for_content_types/post.pyi index 24a38446569..c258a8b7adc 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_allof_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_allof_response_body_for_content_types/post.pyi @@ -37,19 +37,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_ref_in_allof_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_ref_in_allof_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,27 +59,24 @@ class BaseApi(api_client.Api): @typing.overload def _post_ref_in_allof_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_ref_in_allof_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,19 +118,19 @@ class PostRefInAllofResponseBodyForContentTypes(BaseApi): @typing.overload def post_ref_in_allof_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_ref_in_allof_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -143,27 +140,24 @@ class PostRefInAllofResponseBodyForContentTypes(BaseApi): @typing.overload def post_ref_in_allof_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_ref_in_allof_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_ref_in_allof_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -177,19 +171,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -199,27 +193,24 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_ref_in_allof_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_anyof_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_anyof_response_body_for_content_types/post.py index b995bd8e524..b319c3c395d 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_anyof_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_anyof_response_body_for_content_types/post.py @@ -60,19 +60,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_ref_in_anyof_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_ref_in_anyof_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -82,27 +82,24 @@ def _post_ref_in_anyof_response_body_for_content_types_oapg( @typing.overload def _post_ref_in_anyof_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_ref_in_anyof_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,19 +141,19 @@ class PostRefInAnyofResponseBodyForContentTypes(BaseApi): @typing.overload def post_ref_in_anyof_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_ref_in_anyof_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -166,27 +163,24 @@ def post_ref_in_anyof_response_body_for_content_types( @typing.overload def post_ref_in_anyof_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_ref_in_anyof_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_ref_in_anyof_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -200,19 +194,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -222,27 +216,24 @@ def post( @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_ref_in_anyof_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_anyof_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_anyof_response_body_for_content_types/post.pyi index ec783ea4f7e..f1a6dfa6458 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_anyof_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_anyof_response_body_for_content_types/post.pyi @@ -37,19 +37,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_ref_in_anyof_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_ref_in_anyof_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,27 +59,24 @@ class BaseApi(api_client.Api): @typing.overload def _post_ref_in_anyof_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_ref_in_anyof_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,19 +118,19 @@ class PostRefInAnyofResponseBodyForContentTypes(BaseApi): @typing.overload def post_ref_in_anyof_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_ref_in_anyof_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -143,27 +140,24 @@ class PostRefInAnyofResponseBodyForContentTypes(BaseApi): @typing.overload def post_ref_in_anyof_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_ref_in_anyof_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_ref_in_anyof_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -177,19 +171,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -199,27 +193,24 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_ref_in_anyof_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_items_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_items_response_body_for_content_types/post.py index ed6a4d77fbb..75e3e9c8228 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_items_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_items_response_body_for_content_types/post.py @@ -60,19 +60,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_ref_in_items_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_ref_in_items_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -82,27 +82,24 @@ def _post_ref_in_items_response_body_for_content_types_oapg( @typing.overload def _post_ref_in_items_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_ref_in_items_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,19 +141,19 @@ class PostRefInItemsResponseBodyForContentTypes(BaseApi): @typing.overload def post_ref_in_items_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_ref_in_items_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -166,27 +163,24 @@ def post_ref_in_items_response_body_for_content_types( @typing.overload def post_ref_in_items_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_ref_in_items_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_ref_in_items_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -200,19 +194,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -222,27 +216,24 @@ def post( @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_ref_in_items_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_items_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_items_response_body_for_content_types/post.pyi index 6de4e32bd45..25df9b099be 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_items_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_items_response_body_for_content_types/post.pyi @@ -37,19 +37,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_ref_in_items_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_ref_in_items_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,27 +59,24 @@ class BaseApi(api_client.Api): @typing.overload def _post_ref_in_items_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_ref_in_items_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,19 +118,19 @@ class PostRefInItemsResponseBodyForContentTypes(BaseApi): @typing.overload def post_ref_in_items_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_ref_in_items_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -143,27 +140,24 @@ class PostRefInItemsResponseBodyForContentTypes(BaseApi): @typing.overload def post_ref_in_items_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_ref_in_items_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_ref_in_items_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -177,19 +171,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -199,27 +193,24 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_ref_in_items_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_not_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_not_response_body_for_content_types/post.py index 02161000f98..e4dd2cf89cc 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_not_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_not_response_body_for_content_types/post.py @@ -85,19 +85,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_ref_in_not_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_ref_in_not_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -107,27 +107,24 @@ def _post_ref_in_not_response_body_for_content_types_oapg( @typing.overload def _post_ref_in_not_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_ref_in_not_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -169,19 +166,19 @@ class PostRefInNotResponseBodyForContentTypes(BaseApi): @typing.overload def post_ref_in_not_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_ref_in_not_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -191,27 +188,24 @@ def post_ref_in_not_response_body_for_content_types( @typing.overload def post_ref_in_not_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_ref_in_not_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_ref_in_not_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -225,19 +219,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -247,27 +241,24 @@ def post( @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_ref_in_not_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_not_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_not_response_body_for_content_types/post.pyi index f95d4e619d9..45caf1de363 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_not_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_not_response_body_for_content_types/post.pyi @@ -62,19 +62,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_ref_in_not_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_ref_in_not_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -84,27 +84,24 @@ class BaseApi(api_client.Api): @typing.overload def _post_ref_in_not_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_ref_in_not_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -146,19 +143,19 @@ class PostRefInNotResponseBodyForContentTypes(BaseApi): @typing.overload def post_ref_in_not_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_ref_in_not_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -168,27 +165,24 @@ class PostRefInNotResponseBodyForContentTypes(BaseApi): @typing.overload def post_ref_in_not_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_ref_in_not_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_ref_in_not_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -202,19 +196,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -224,27 +218,24 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_ref_in_not_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_oneof_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_oneof_response_body_for_content_types/post.py index 2bd181dd2c4..0d83e231496 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_oneof_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_oneof_response_body_for_content_types/post.py @@ -60,19 +60,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_ref_in_oneof_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_ref_in_oneof_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -82,27 +82,24 @@ def _post_ref_in_oneof_response_body_for_content_types_oapg( @typing.overload def _post_ref_in_oneof_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_ref_in_oneof_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,19 +141,19 @@ class PostRefInOneofResponseBodyForContentTypes(BaseApi): @typing.overload def post_ref_in_oneof_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_ref_in_oneof_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -166,27 +163,24 @@ def post_ref_in_oneof_response_body_for_content_types( @typing.overload def post_ref_in_oneof_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_ref_in_oneof_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_ref_in_oneof_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -200,19 +194,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -222,27 +216,24 @@ def post( @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_ref_in_oneof_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_oneof_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_oneof_response_body_for_content_types/post.pyi index 811e5ba3f6d..c9f54384c62 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_oneof_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_oneof_response_body_for_content_types/post.pyi @@ -37,19 +37,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_ref_in_oneof_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_ref_in_oneof_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,27 +59,24 @@ class BaseApi(api_client.Api): @typing.overload def _post_ref_in_oneof_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_ref_in_oneof_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,19 +118,19 @@ class PostRefInOneofResponseBodyForContentTypes(BaseApi): @typing.overload def post_ref_in_oneof_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_ref_in_oneof_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -143,27 +140,24 @@ class PostRefInOneofResponseBodyForContentTypes(BaseApi): @typing.overload def post_ref_in_oneof_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_ref_in_oneof_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_ref_in_oneof_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -177,19 +171,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -199,27 +193,24 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_ref_in_oneof_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_property_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_property_response_body_for_content_types/post.py index d0c3709c73a..a9a24543d8a 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_property_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_property_response_body_for_content_types/post.py @@ -60,19 +60,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_ref_in_property_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_ref_in_property_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -82,27 +82,24 @@ def _post_ref_in_property_response_body_for_content_types_oapg( @typing.overload def _post_ref_in_property_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_ref_in_property_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,19 +141,19 @@ class PostRefInPropertyResponseBodyForContentTypes(BaseApi): @typing.overload def post_ref_in_property_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_ref_in_property_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -166,27 +163,24 @@ def post_ref_in_property_response_body_for_content_types( @typing.overload def post_ref_in_property_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_ref_in_property_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_ref_in_property_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -200,19 +194,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -222,27 +216,24 @@ def post( @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_ref_in_property_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_property_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_property_response_body_for_content_types/post.pyi index d0ba03c75e3..0fb869f19af 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_property_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_property_response_body_for_content_types/post.pyi @@ -37,19 +37,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_ref_in_property_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_ref_in_property_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,27 +59,24 @@ class BaseApi(api_client.Api): @typing.overload def _post_ref_in_property_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_ref_in_property_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,19 +118,19 @@ class PostRefInPropertyResponseBodyForContentTypes(BaseApi): @typing.overload def post_ref_in_property_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_ref_in_property_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -143,27 +140,24 @@ class PostRefInPropertyResponseBodyForContentTypes(BaseApi): @typing.overload def post_ref_in_property_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_ref_in_property_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_ref_in_property_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -177,19 +171,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -199,27 +193,24 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_ref_in_property_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_default_validation_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_default_validation_response_body_for_content_types/post.py index 8ee891ab925..e3662192920 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_default_validation_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_default_validation_response_body_for_content_types/post.py @@ -60,19 +60,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_required_default_validation_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_required_default_validation_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -82,27 +82,24 @@ def _post_required_default_validation_response_body_for_content_types_oapg( @typing.overload def _post_required_default_validation_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_required_default_validation_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,19 +141,19 @@ class PostRequiredDefaultValidationResponseBodyForContentTypes(BaseApi): @typing.overload def post_required_default_validation_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_required_default_validation_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -166,27 +163,24 @@ def post_required_default_validation_response_body_for_content_types( @typing.overload def post_required_default_validation_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_required_default_validation_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_required_default_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -200,19 +194,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -222,27 +216,24 @@ def post( @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_required_default_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_default_validation_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_default_validation_response_body_for_content_types/post.pyi index fe6002bd97b..46bb7669002 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_default_validation_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_default_validation_response_body_for_content_types/post.pyi @@ -37,19 +37,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_required_default_validation_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_required_default_validation_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,27 +59,24 @@ class BaseApi(api_client.Api): @typing.overload def _post_required_default_validation_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_required_default_validation_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,19 +118,19 @@ class PostRequiredDefaultValidationResponseBodyForContentTypes(BaseApi): @typing.overload def post_required_default_validation_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_required_default_validation_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -143,27 +140,24 @@ class PostRequiredDefaultValidationResponseBodyForContentTypes(BaseApi): @typing.overload def post_required_default_validation_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_required_default_validation_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_required_default_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -177,19 +171,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -199,27 +193,24 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_required_default_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_validation_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_validation_response_body_for_content_types/post.py index 5843e1bb2e2..337bb1919db 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_validation_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_validation_response_body_for_content_types/post.py @@ -60,19 +60,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_required_validation_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_required_validation_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -82,27 +82,24 @@ def _post_required_validation_response_body_for_content_types_oapg( @typing.overload def _post_required_validation_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_required_validation_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,19 +141,19 @@ class PostRequiredValidationResponseBodyForContentTypes(BaseApi): @typing.overload def post_required_validation_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_required_validation_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -166,27 +163,24 @@ def post_required_validation_response_body_for_content_types( @typing.overload def post_required_validation_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_required_validation_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_required_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -200,19 +194,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -222,27 +216,24 @@ def post( @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_required_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_validation_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_validation_response_body_for_content_types/post.pyi index b35d42a1587..25a1f365be5 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_validation_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_validation_response_body_for_content_types/post.pyi @@ -37,19 +37,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_required_validation_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_required_validation_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,27 +59,24 @@ class BaseApi(api_client.Api): @typing.overload def _post_required_validation_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_required_validation_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,19 +118,19 @@ class PostRequiredValidationResponseBodyForContentTypes(BaseApi): @typing.overload def post_required_validation_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_required_validation_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -143,27 +140,24 @@ class PostRequiredValidationResponseBodyForContentTypes(BaseApi): @typing.overload def post_required_validation_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_required_validation_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_required_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -177,19 +171,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -199,27 +193,24 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_required_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post.py index ce370548c5d..64ff7e721f0 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post.py @@ -60,19 +60,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_required_with_empty_array_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_required_with_empty_array_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -82,27 +82,24 @@ def _post_required_with_empty_array_response_body_for_content_types_oapg( @typing.overload def _post_required_with_empty_array_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_required_with_empty_array_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,19 +141,19 @@ class PostRequiredWithEmptyArrayResponseBodyForContentTypes(BaseApi): @typing.overload def post_required_with_empty_array_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_required_with_empty_array_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -166,27 +163,24 @@ def post_required_with_empty_array_response_body_for_content_types( @typing.overload def post_required_with_empty_array_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_required_with_empty_array_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_required_with_empty_array_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -200,19 +194,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -222,27 +216,24 @@ def post( @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_required_with_empty_array_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post.pyi index 58d0982c8c4..de0fda41f44 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post.pyi @@ -37,19 +37,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_required_with_empty_array_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_required_with_empty_array_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,27 +59,24 @@ class BaseApi(api_client.Api): @typing.overload def _post_required_with_empty_array_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_required_with_empty_array_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,19 +118,19 @@ class PostRequiredWithEmptyArrayResponseBodyForContentTypes(BaseApi): @typing.overload def post_required_with_empty_array_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_required_with_empty_array_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -143,27 +140,24 @@ class PostRequiredWithEmptyArrayResponseBodyForContentTypes(BaseApi): @typing.overload def post_required_with_empty_array_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_required_with_empty_array_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_required_with_empty_array_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -177,19 +171,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -199,27 +193,24 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_required_with_empty_array_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post.py index 102b19cff09..843bcde4dce 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post.py @@ -88,19 +88,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_required_with_escaped_characters_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_required_with_escaped_characters_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -110,27 +110,24 @@ def _post_required_with_escaped_characters_response_body_for_content_types_oapg( @typing.overload def _post_required_with_escaped_characters_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_required_with_escaped_characters_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -172,19 +169,19 @@ class PostRequiredWithEscapedCharactersResponseBodyForContentTypes(BaseApi): @typing.overload def post_required_with_escaped_characters_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_required_with_escaped_characters_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -194,27 +191,24 @@ def post_required_with_escaped_characters_response_body_for_content_types( @typing.overload def post_required_with_escaped_characters_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_required_with_escaped_characters_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_required_with_escaped_characters_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -228,19 +222,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -250,27 +244,24 @@ def post( @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_required_with_escaped_characters_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post.pyi index 46db88b07f6..c2969f0177f 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post.pyi @@ -65,19 +65,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_required_with_escaped_characters_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_required_with_escaped_characters_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -87,27 +87,24 @@ class BaseApi(api_client.Api): @typing.overload def _post_required_with_escaped_characters_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_required_with_escaped_characters_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -149,19 +146,19 @@ class PostRequiredWithEscapedCharactersResponseBodyForContentTypes(BaseApi): @typing.overload def post_required_with_escaped_characters_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_required_with_escaped_characters_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -171,27 +168,24 @@ class PostRequiredWithEscapedCharactersResponseBodyForContentTypes(BaseApi): @typing.overload def post_required_with_escaped_characters_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_required_with_escaped_characters_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_required_with_escaped_characters_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -205,19 +199,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -227,27 +221,24 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_required_with_escaped_characters_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post.py index 0c75ac6b2fd..f63415d22fe 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post.py @@ -60,19 +60,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_simple_enum_validation_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_simple_enum_validation_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -82,27 +82,24 @@ def _post_simple_enum_validation_response_body_for_content_types_oapg( @typing.overload def _post_simple_enum_validation_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_simple_enum_validation_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,19 +141,19 @@ class PostSimpleEnumValidationResponseBodyForContentTypes(BaseApi): @typing.overload def post_simple_enum_validation_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_simple_enum_validation_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -166,27 +163,24 @@ def post_simple_enum_validation_response_body_for_content_types( @typing.overload def post_simple_enum_validation_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_simple_enum_validation_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_simple_enum_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -200,19 +194,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -222,27 +216,24 @@ def post( @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_simple_enum_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post.pyi index 128db6d82f5..88313ca1e86 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post.pyi @@ -37,19 +37,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_simple_enum_validation_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_simple_enum_validation_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,27 +59,24 @@ class BaseApi(api_client.Api): @typing.overload def _post_simple_enum_validation_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_simple_enum_validation_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,19 +118,19 @@ class PostSimpleEnumValidationResponseBodyForContentTypes(BaseApi): @typing.overload def post_simple_enum_validation_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_simple_enum_validation_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -143,27 +140,24 @@ class PostSimpleEnumValidationResponseBodyForContentTypes(BaseApi): @typing.overload def post_simple_enum_validation_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_simple_enum_validation_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_simple_enum_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -177,19 +171,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -199,27 +193,24 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_simple_enum_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post.py index acdd15100e7..e2c5180a2fb 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post.py @@ -58,19 +58,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_string_type_matches_strings_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_string_type_matches_strings_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -80,27 +80,24 @@ def _post_string_type_matches_strings_response_body_for_content_types_oapg( @typing.overload def _post_string_type_matches_strings_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_string_type_matches_strings_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -142,19 +139,19 @@ class PostStringTypeMatchesStringsResponseBodyForContentTypes(BaseApi): @typing.overload def post_string_type_matches_strings_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_string_type_matches_strings_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -164,27 +161,24 @@ def post_string_type_matches_strings_response_body_for_content_types( @typing.overload def post_string_type_matches_strings_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_string_type_matches_strings_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_string_type_matches_strings_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -198,19 +192,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -220,27 +214,24 @@ def post( @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_string_type_matches_strings_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post.pyi index 745dd09357c..dd1e19a57a1 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post.pyi @@ -35,19 +35,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_string_type_matches_strings_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_string_type_matches_strings_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -57,27 +57,24 @@ class BaseApi(api_client.Api): @typing.overload def _post_string_type_matches_strings_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_string_type_matches_strings_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -119,19 +116,19 @@ class PostStringTypeMatchesStringsResponseBodyForContentTypes(BaseApi): @typing.overload def post_string_type_matches_strings_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_string_type_matches_strings_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -141,27 +138,24 @@ class PostStringTypeMatchesStringsResponseBodyForContentTypes(BaseApi): @typing.overload def post_string_type_matches_strings_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_string_type_matches_strings_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_string_type_matches_strings_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -175,19 +169,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -197,27 +191,24 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_string_type_matches_strings_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types/post.py index 85ed42fba82..0d769c856d1 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types/post.py @@ -60,19 +60,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -82,27 +82,24 @@ def _post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_re @typing.overload def _post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,19 +141,19 @@ class PostTheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissingResponseBodyFo @typing.overload def post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -166,27 +163,24 @@ def post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_res @typing.overload def post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -200,19 +194,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -222,27 +216,24 @@ def post( @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types/post.pyi index eafff4ff303..883560225b4 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types/post.pyi @@ -37,19 +37,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,27 +59,24 @@ class BaseApi(api_client.Api): @typing.overload def _post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,19 +118,19 @@ class PostTheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissingResponseBodyFo @typing.overload def post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -143,27 +140,24 @@ class PostTheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissingResponseBodyFo @typing.overload def post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -177,19 +171,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -199,27 +193,24 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post.py index 3ae16ed0305..244a88662b3 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post.py @@ -60,19 +60,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_uniqueitems_false_validation_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_uniqueitems_false_validation_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -82,27 +82,24 @@ def _post_uniqueitems_false_validation_response_body_for_content_types_oapg( @typing.overload def _post_uniqueitems_false_validation_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_uniqueitems_false_validation_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,19 +141,19 @@ class PostUniqueitemsFalseValidationResponseBodyForContentTypes(BaseApi): @typing.overload def post_uniqueitems_false_validation_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_uniqueitems_false_validation_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -166,27 +163,24 @@ def post_uniqueitems_false_validation_response_body_for_content_types( @typing.overload def post_uniqueitems_false_validation_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_uniqueitems_false_validation_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_uniqueitems_false_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -200,19 +194,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -222,27 +216,24 @@ def post( @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_uniqueitems_false_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post.pyi index 9b91195b393..a8506545109 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post.pyi @@ -37,19 +37,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_uniqueitems_false_validation_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_uniqueitems_false_validation_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,27 +59,24 @@ class BaseApi(api_client.Api): @typing.overload def _post_uniqueitems_false_validation_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_uniqueitems_false_validation_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,19 +118,19 @@ class PostUniqueitemsFalseValidationResponseBodyForContentTypes(BaseApi): @typing.overload def post_uniqueitems_false_validation_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_uniqueitems_false_validation_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -143,27 +140,24 @@ class PostUniqueitemsFalseValidationResponseBodyForContentTypes(BaseApi): @typing.overload def post_uniqueitems_false_validation_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_uniqueitems_false_validation_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_uniqueitems_false_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -177,19 +171,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -199,27 +193,24 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_uniqueitems_false_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post.py index c47dc23daa7..0c7b65fdd56 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post.py @@ -60,19 +60,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_uniqueitems_validation_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_uniqueitems_validation_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -82,27 +82,24 @@ def _post_uniqueitems_validation_response_body_for_content_types_oapg( @typing.overload def _post_uniqueitems_validation_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_uniqueitems_validation_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,19 +141,19 @@ class PostUniqueitemsValidationResponseBodyForContentTypes(BaseApi): @typing.overload def post_uniqueitems_validation_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_uniqueitems_validation_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -166,27 +163,24 @@ def post_uniqueitems_validation_response_body_for_content_types( @typing.overload def post_uniqueitems_validation_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_uniqueitems_validation_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_uniqueitems_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -200,19 +194,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -222,27 +216,24 @@ def post( @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_uniqueitems_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post.pyi index 092b24a2cd4..99556cc32c5 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post.pyi @@ -37,19 +37,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_uniqueitems_validation_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_uniqueitems_validation_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,27 +59,24 @@ class BaseApi(api_client.Api): @typing.overload def _post_uniqueitems_validation_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_uniqueitems_validation_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,19 +118,19 @@ class PostUniqueitemsValidationResponseBodyForContentTypes(BaseApi): @typing.overload def post_uniqueitems_validation_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_uniqueitems_validation_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -143,27 +140,24 @@ class PostUniqueitemsValidationResponseBodyForContentTypes(BaseApi): @typing.overload def post_uniqueitems_validation_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_uniqueitems_validation_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_uniqueitems_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -177,19 +171,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -199,27 +193,24 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_uniqueitems_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uri_format_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uri_format_response_body_for_content_types/post.py index 72f0d2d671b..3bcf7864cf2 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uri_format_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uri_format_response_body_for_content_types/post.py @@ -80,19 +80,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_uri_format_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_uri_format_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -102,27 +102,24 @@ def _post_uri_format_response_body_for_content_types_oapg( @typing.overload def _post_uri_format_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_uri_format_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -164,19 +161,19 @@ class PostUriFormatResponseBodyForContentTypes(BaseApi): @typing.overload def post_uri_format_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_uri_format_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -186,27 +183,24 @@ def post_uri_format_response_body_for_content_types( @typing.overload def post_uri_format_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_uri_format_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_uri_format_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -220,19 +214,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -242,27 +236,24 @@ def post( @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_uri_format_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uri_format_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uri_format_response_body_for_content_types/post.pyi index fa8d33e171c..bf54d6cd98d 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uri_format_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uri_format_response_body_for_content_types/post.pyi @@ -57,19 +57,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_uri_format_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_uri_format_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -79,27 +79,24 @@ class BaseApi(api_client.Api): @typing.overload def _post_uri_format_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_uri_format_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -141,19 +138,19 @@ class PostUriFormatResponseBodyForContentTypes(BaseApi): @typing.overload def post_uri_format_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_uri_format_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -163,27 +160,24 @@ class PostUriFormatResponseBodyForContentTypes(BaseApi): @typing.overload def post_uri_format_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_uri_format_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_uri_format_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -197,19 +191,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -219,27 +213,24 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_uri_format_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uri_reference_format_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uri_reference_format_response_body_for_content_types/post.py index 91898b5210a..43b531df4ef 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uri_reference_format_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uri_reference_format_response_body_for_content_types/post.py @@ -80,19 +80,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_uri_reference_format_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_uri_reference_format_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -102,27 +102,24 @@ def _post_uri_reference_format_response_body_for_content_types_oapg( @typing.overload def _post_uri_reference_format_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_uri_reference_format_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -164,19 +161,19 @@ class PostUriReferenceFormatResponseBodyForContentTypes(BaseApi): @typing.overload def post_uri_reference_format_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_uri_reference_format_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -186,27 +183,24 @@ def post_uri_reference_format_response_body_for_content_types( @typing.overload def post_uri_reference_format_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_uri_reference_format_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_uri_reference_format_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -220,19 +214,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -242,27 +236,24 @@ def post( @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_uri_reference_format_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uri_reference_format_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uri_reference_format_response_body_for_content_types/post.pyi index e93a12a4fed..2101f17b6af 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uri_reference_format_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uri_reference_format_response_body_for_content_types/post.pyi @@ -57,19 +57,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_uri_reference_format_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_uri_reference_format_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -79,27 +79,24 @@ class BaseApi(api_client.Api): @typing.overload def _post_uri_reference_format_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_uri_reference_format_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -141,19 +138,19 @@ class PostUriReferenceFormatResponseBodyForContentTypes(BaseApi): @typing.overload def post_uri_reference_format_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_uri_reference_format_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -163,27 +160,24 @@ class PostUriReferenceFormatResponseBodyForContentTypes(BaseApi): @typing.overload def post_uri_reference_format_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_uri_reference_format_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_uri_reference_format_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -197,19 +191,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -219,27 +213,24 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_uri_reference_format_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uri_template_format_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uri_template_format_response_body_for_content_types/post.py index f3fd2c9d749..623008ea85e 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uri_template_format_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uri_template_format_response_body_for_content_types/post.py @@ -80,19 +80,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_uri_template_format_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_uri_template_format_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -102,27 +102,24 @@ def _post_uri_template_format_response_body_for_content_types_oapg( @typing.overload def _post_uri_template_format_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_uri_template_format_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -164,19 +161,19 @@ class PostUriTemplateFormatResponseBodyForContentTypes(BaseApi): @typing.overload def post_uri_template_format_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_uri_template_format_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -186,27 +183,24 @@ def post_uri_template_format_response_body_for_content_types( @typing.overload def post_uri_template_format_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_uri_template_format_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_uri_template_format_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -220,19 +214,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -242,27 +236,24 @@ def post( @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_uri_template_format_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uri_template_format_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uri_template_format_response_body_for_content_types/post.pyi index eea991df4df..16020154baa 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uri_template_format_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uri_template_format_response_body_for_content_types/post.pyi @@ -57,19 +57,19 @@ class BaseApi(api_client.Api): @typing.overload def _post_uri_template_format_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _post_uri_template_format_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -79,27 +79,24 @@ class BaseApi(api_client.Api): @typing.overload def _post_uri_template_format_response_body_for_content_types_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _post_uri_template_format_response_body_for_content_types_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -141,19 +138,19 @@ class PostUriTemplateFormatResponseBodyForContentTypes(BaseApi): @typing.overload def post_uri_template_format_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post_uri_template_format_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -163,27 +160,24 @@ class PostUriTemplateFormatResponseBodyForContentTypes(BaseApi): @typing.overload def post_uri_template_format_response_body_for_content_types( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post_uri_template_format_response_body_for_content_types( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_uri_template_format_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -197,19 +191,19 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -219,27 +213,24 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._post_uri_template_format_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/petstore/python/petstore_api/api_client.py b/samples/openapi3/client/petstore/python/petstore_api/api_client.py index d362db1a8dc..b5d32822d19 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/api_client.py +++ b/samples/openapi3/client/petstore/python/petstore_api/api_client.py @@ -816,16 +816,13 @@ def _content_type_is_json(cls, content_type: str) -> bool: return True return False -Response_T = typing.TypeVar("Response_T", bound=ApiResponse) - -class OpenApiResponse(JSONDetector, typing.Generic[Response_T]): - response_cls: typing.Type[Response_T] +class OpenApiResponse(JSONDetector): __filename_content_disposition_pattern = re.compile('filename="(.+?)"') def __init__( self, - response_cls: typing.Type[Response_T] = ApiResponse, + response_cls: typing.Type[ApiResponse] = ApiResponse, content: typing.Optional[typing.Dict[str, MediaType]] = None, headers: typing.Optional[typing.List[HeaderParameter]] = None, ): @@ -910,7 +907,7 @@ def __deserialize_multipart_form_data( for part in msg.get_payload() } - def deserialize(self, response: urllib3.HTTPResponse, configuration: Configuration) -> Response_T: + def deserialize(self, response: urllib3.HTTPResponse, configuration: Configuration) -> ApiResponse: content_type = response.getheader('content-type') deserialized_body = unset streamed = response.supports_chunked_reads() diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/another_fake_dummy/patch.py b/samples/openapi3/client/petstore/python/petstore_api/paths/another_fake_dummy/patch.py index e1daffaa88a..cc10e347e16 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/another_fake_dummy/patch.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/another_fake_dummy/patch.py @@ -71,22 +71,22 @@ class BaseApi(api_client.Api): @typing.overload def _call_123_test_special_tags_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _call_123_test_special_tags_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -97,31 +97,28 @@ def _call_123_test_special_tags_oapg( @typing.overload def _call_123_test_special_tags_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _call_123_test_special_tags_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ To test special tags :param skip_deserialization: If true then api_response.response will be set but @@ -177,22 +174,22 @@ class Call123TestSpecialTags(BaseApi): @typing.overload def call_123_test_special_tags( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def call_123_test_special_tags( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -203,31 +200,28 @@ def call_123_test_special_tags( @typing.overload def call_123_test_special_tags( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def call_123_test_special_tags( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._call_123_test_special_tags_oapg( body=body, content_type=content_type, @@ -243,22 +237,22 @@ class ApiForpatch(BaseApi): @typing.overload def patch( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def patch( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -269,31 +263,28 @@ def patch( @typing.overload def patch( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def patch( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._call_123_test_special_tags_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/another_fake_dummy/patch.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/another_fake_dummy/patch.pyi index a5aab6ad106..618b7c275b0 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/another_fake_dummy/patch.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/another_fake_dummy/patch.pyi @@ -39,22 +39,22 @@ class BaseApi(api_client.Api): @typing.overload def _call_123_test_special_tags_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _call_123_test_special_tags_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -65,31 +65,28 @@ class BaseApi(api_client.Api): @typing.overload def _call_123_test_special_tags_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _call_123_test_special_tags_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ To test special tags :param skip_deserialization: If true then api_response.response will be set but @@ -145,22 +142,22 @@ class Call123TestSpecialTags(BaseApi): @typing.overload def call_123_test_special_tags( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def call_123_test_special_tags( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -171,31 +168,28 @@ class Call123TestSpecialTags(BaseApi): @typing.overload def call_123_test_special_tags( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def call_123_test_special_tags( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._call_123_test_special_tags_oapg( body=body, content_type=content_type, @@ -211,22 +205,22 @@ class ApiForpatch(BaseApi): @typing.overload def patch( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def patch( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -237,31 +231,28 @@ class ApiForpatch(BaseApi): @typing.overload def patch( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def patch( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._call_123_test_special_tags_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake/delete.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake/delete.py index 235de87fe2e..5857f348ab1 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake/delete.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake/delete.py @@ -136,20 +136,19 @@ class BaseApi(api_client.Api): @typing.overload def _group_parameters_oapg( - self: api_client.Api, + self, query_params: RequestQueryParams = frozendict.frozendict(), header_params: RequestHeaderParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, ]: ... @typing.overload def _group_parameters_oapg( - self: api_client.Api, + self, query_params: RequestQueryParams = frozendict.frozendict(), header_params: RequestHeaderParams = frozendict.frozendict(), stream: bool = False, @@ -160,29 +159,25 @@ def _group_parameters_oapg( @typing.overload def _group_parameters_oapg( - self: api_client.Api, + self, query_params: RequestQueryParams = frozendict.frozendict(), header_params: RequestHeaderParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + api_client.ApiResponseWithoutDeserialization, ]: ... def _group_parameters_oapg( - self: api_client.Api, - query_params: RequestQueryParams = frozendict.frozendict(), - header_params: RequestHeaderParams = frozendict.frozendict(), - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + query_params = frozendict.frozendict(), + header_params = frozendict.frozendict(), + stream = False, + timeout = None, + skip_deserialization = False, + ): """ Fake endpoint to test group parameters (optional) :param skip_deserialization: If true then api_response.response will be set but @@ -250,20 +245,19 @@ class GroupParameters(BaseApi): @typing.overload def group_parameters( - self: BaseApi, + self, query_params: RequestQueryParams = frozendict.frozendict(), header_params: RequestHeaderParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, ]: ... @typing.overload def group_parameters( - self: BaseApi, + self, query_params: RequestQueryParams = frozendict.frozendict(), header_params: RequestHeaderParams = frozendict.frozendict(), stream: bool = False, @@ -274,29 +268,25 @@ def group_parameters( @typing.overload def group_parameters( - self: BaseApi, + self, query_params: RequestQueryParams = frozendict.frozendict(), header_params: RequestHeaderParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + api_client.ApiResponseWithoutDeserialization, ]: ... def group_parameters( - self: BaseApi, - query_params: RequestQueryParams = frozendict.frozendict(), - header_params: RequestHeaderParams = frozendict.frozendict(), - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + query_params = frozendict.frozendict(), + header_params = frozendict.frozendict(), + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._group_parameters_oapg( query_params=query_params, header_params=header_params, @@ -311,20 +301,19 @@ class ApiFordelete(BaseApi): @typing.overload def delete( - self: BaseApi, + self, query_params: RequestQueryParams = frozendict.frozendict(), header_params: RequestHeaderParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, ]: ... @typing.overload def delete( - self: BaseApi, + self, query_params: RequestQueryParams = frozendict.frozendict(), header_params: RequestHeaderParams = frozendict.frozendict(), stream: bool = False, @@ -335,29 +324,25 @@ def delete( @typing.overload def delete( - self: BaseApi, + self, query_params: RequestQueryParams = frozendict.frozendict(), header_params: RequestHeaderParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + api_client.ApiResponseWithoutDeserialization, ]: ... def delete( - self: BaseApi, - query_params: RequestQueryParams = frozendict.frozendict(), - header_params: RequestHeaderParams = frozendict.frozendict(), - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + query_params = frozendict.frozendict(), + header_params = frozendict.frozendict(), + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._group_parameters_oapg( query_params=query_params, header_params=header_params, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake/delete.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake/delete.pyi index 62d8d935395..d90a35478dd 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake/delete.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake/delete.pyi @@ -39,20 +39,19 @@ class BaseApi(api_client.Api): @typing.overload def _group_parameters_oapg( - self: api_client.Api, + self, query_params: RequestQueryParams = frozendict.frozendict(), header_params: RequestHeaderParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, ]: ... @typing.overload def _group_parameters_oapg( - self: api_client.Api, + self, query_params: RequestQueryParams = frozendict.frozendict(), header_params: RequestHeaderParams = frozendict.frozendict(), stream: bool = False, @@ -63,29 +62,25 @@ class BaseApi(api_client.Api): @typing.overload def _group_parameters_oapg( - self: api_client.Api, + self, query_params: RequestQueryParams = frozendict.frozendict(), header_params: RequestHeaderParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + api_client.ApiResponseWithoutDeserialization, ]: ... def _group_parameters_oapg( - self: api_client.Api, - query_params: RequestQueryParams = frozendict.frozendict(), - header_params: RequestHeaderParams = frozendict.frozendict(), - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + query_params = frozendict.frozendict(), + header_params = frozendict.frozendict(), + stream = False, + timeout = None, + skip_deserialization = False, + ): """ Fake endpoint to test group parameters (optional) :param skip_deserialization: If true then api_response.response will be set but @@ -153,20 +148,19 @@ class GroupParameters(BaseApi): @typing.overload def group_parameters( - self: BaseApi, + self, query_params: RequestQueryParams = frozendict.frozendict(), header_params: RequestHeaderParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, ]: ... @typing.overload def group_parameters( - self: BaseApi, + self, query_params: RequestQueryParams = frozendict.frozendict(), header_params: RequestHeaderParams = frozendict.frozendict(), stream: bool = False, @@ -177,29 +171,25 @@ class GroupParameters(BaseApi): @typing.overload def group_parameters( - self: BaseApi, + self, query_params: RequestQueryParams = frozendict.frozendict(), header_params: RequestHeaderParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + api_client.ApiResponseWithoutDeserialization, ]: ... def group_parameters( - self: BaseApi, - query_params: RequestQueryParams = frozendict.frozendict(), - header_params: RequestHeaderParams = frozendict.frozendict(), - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + query_params = frozendict.frozendict(), + header_params = frozendict.frozendict(), + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._group_parameters_oapg( query_params=query_params, header_params=header_params, @@ -214,20 +204,19 @@ class ApiFordelete(BaseApi): @typing.overload def delete( - self: BaseApi, + self, query_params: RequestQueryParams = frozendict.frozendict(), header_params: RequestHeaderParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, ]: ... @typing.overload def delete( - self: BaseApi, + self, query_params: RequestQueryParams = frozendict.frozendict(), header_params: RequestHeaderParams = frozendict.frozendict(), stream: bool = False, @@ -238,29 +227,25 @@ class ApiFordelete(BaseApi): @typing.overload def delete( - self: BaseApi, + self, query_params: RequestQueryParams = frozendict.frozendict(), header_params: RequestHeaderParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + api_client.ApiResponseWithoutDeserialization, ]: ... def delete( - self: BaseApi, - query_params: RequestQueryParams = frozendict.frozendict(), - header_params: RequestHeaderParams = frozendict.frozendict(), - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + query_params = frozendict.frozendict(), + header_params = frozendict.frozendict(), + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._group_parameters_oapg( query_params=query_params, header_params=header_params, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake/get.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake/get.py index 76841f49ad4..94a9db6c062 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake/get.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake/get.py @@ -455,8 +455,8 @@ class BaseApi(api_client.Api): @typing.overload def _enum_parameters_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, query_params: RequestQueryParams = frozendict.frozendict(), header_params: RequestHeaderParams = frozendict.frozendict(), content_type: str = 'application/x-www-form-urlencoded', @@ -464,15 +464,13 @@ def _enum_parameters_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, ]: ... @typing.overload def _enum_parameters_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, query_params: RequestQueryParams = frozendict.frozendict(), header_params: RequestHeaderParams = frozendict.frozendict(), content_type: str = 'application/x-www-form-urlencoded', @@ -484,8 +482,8 @@ def _enum_parameters_oapg( @typing.overload def _enum_parameters_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, query_params: RequestQueryParams = frozendict.frozendict(), header_params: RequestHeaderParams = frozendict.frozendict(), content_type: str = 'application/x-www-form-urlencoded', @@ -493,26 +491,20 @@ def _enum_parameters_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + api_client.ApiResponseWithoutDeserialization, ]: ... def _enum_parameters_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - query_params: RequestQueryParams = frozendict.frozendict(), - header_params: RequestHeaderParams = frozendict.frozendict(), - content_type: str = 'application/x-www-form-urlencoded', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + query_params = frozendict.frozendict(), + header_params = frozendict.frozendict(), + content_type = 'application/x-www-form-urlencoded', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ To test enum parameters :param skip_deserialization: If true then api_response.response will be set but @@ -590,8 +582,8 @@ class EnumParameters(BaseApi): @typing.overload def enum_parameters( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, query_params: RequestQueryParams = frozendict.frozendict(), header_params: RequestHeaderParams = frozendict.frozendict(), content_type: str = 'application/x-www-form-urlencoded', @@ -599,15 +591,13 @@ def enum_parameters( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, ]: ... @typing.overload def enum_parameters( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, query_params: RequestQueryParams = frozendict.frozendict(), header_params: RequestHeaderParams = frozendict.frozendict(), content_type: str = 'application/x-www-form-urlencoded', @@ -619,8 +609,8 @@ def enum_parameters( @typing.overload def enum_parameters( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, query_params: RequestQueryParams = frozendict.frozendict(), header_params: RequestHeaderParams = frozendict.frozendict(), content_type: str = 'application/x-www-form-urlencoded', @@ -628,26 +618,20 @@ def enum_parameters( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + api_client.ApiResponseWithoutDeserialization, ]: ... def enum_parameters( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - query_params: RequestQueryParams = frozendict.frozendict(), - header_params: RequestHeaderParams = frozendict.frozendict(), - content_type: str = 'application/x-www-form-urlencoded', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + query_params = frozendict.frozendict(), + header_params = frozendict.frozendict(), + content_type = 'application/x-www-form-urlencoded', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._enum_parameters_oapg( body=body, query_params=query_params, @@ -664,8 +648,8 @@ class ApiForget(BaseApi): @typing.overload def get( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, query_params: RequestQueryParams = frozendict.frozendict(), header_params: RequestHeaderParams = frozendict.frozendict(), content_type: str = 'application/x-www-form-urlencoded', @@ -673,15 +657,13 @@ def get( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, ]: ... @typing.overload def get( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, query_params: RequestQueryParams = frozendict.frozendict(), header_params: RequestHeaderParams = frozendict.frozendict(), content_type: str = 'application/x-www-form-urlencoded', @@ -693,8 +675,8 @@ def get( @typing.overload def get( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, query_params: RequestQueryParams = frozendict.frozendict(), header_params: RequestHeaderParams = frozendict.frozendict(), content_type: str = 'application/x-www-form-urlencoded', @@ -702,26 +684,20 @@ def get( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + api_client.ApiResponseWithoutDeserialization, ]: ... def get( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - query_params: RequestQueryParams = frozendict.frozendict(), - header_params: RequestHeaderParams = frozendict.frozendict(), - content_type: str = 'application/x-www-form-urlencoded', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + query_params = frozendict.frozendict(), + header_params = frozendict.frozendict(), + content_type = 'application/x-www-form-urlencoded', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._enum_parameters_oapg( body=body, query_params=query_params, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake/get.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake/get.pyi index e7182ba4a82..b236af095a8 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake/get.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake/get.pyi @@ -282,8 +282,8 @@ class BaseApi(api_client.Api): @typing.overload def _enum_parameters_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, query_params: RequestQueryParams = frozendict.frozendict(), header_params: RequestHeaderParams = frozendict.frozendict(), content_type: str = 'application/x-www-form-urlencoded', @@ -291,15 +291,13 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, ]: ... @typing.overload def _enum_parameters_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, query_params: RequestQueryParams = frozendict.frozendict(), header_params: RequestHeaderParams = frozendict.frozendict(), content_type: str = 'application/x-www-form-urlencoded', @@ -311,8 +309,8 @@ class BaseApi(api_client.Api): @typing.overload def _enum_parameters_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, query_params: RequestQueryParams = frozendict.frozendict(), header_params: RequestHeaderParams = frozendict.frozendict(), content_type: str = 'application/x-www-form-urlencoded', @@ -320,26 +318,20 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + api_client.ApiResponseWithoutDeserialization, ]: ... def _enum_parameters_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - query_params: RequestQueryParams = frozendict.frozendict(), - header_params: RequestHeaderParams = frozendict.frozendict(), - content_type: str = 'application/x-www-form-urlencoded', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + query_params = frozendict.frozendict(), + header_params = frozendict.frozendict(), + content_type = 'application/x-www-form-urlencoded', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ To test enum parameters :param skip_deserialization: If true then api_response.response will be set but @@ -417,8 +409,8 @@ class EnumParameters(BaseApi): @typing.overload def enum_parameters( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, query_params: RequestQueryParams = frozendict.frozendict(), header_params: RequestHeaderParams = frozendict.frozendict(), content_type: str = 'application/x-www-form-urlencoded', @@ -426,15 +418,13 @@ class EnumParameters(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, ]: ... @typing.overload def enum_parameters( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, query_params: RequestQueryParams = frozendict.frozendict(), header_params: RequestHeaderParams = frozendict.frozendict(), content_type: str = 'application/x-www-form-urlencoded', @@ -446,8 +436,8 @@ class EnumParameters(BaseApi): @typing.overload def enum_parameters( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, query_params: RequestQueryParams = frozendict.frozendict(), header_params: RequestHeaderParams = frozendict.frozendict(), content_type: str = 'application/x-www-form-urlencoded', @@ -455,26 +445,20 @@ class EnumParameters(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + api_client.ApiResponseWithoutDeserialization, ]: ... def enum_parameters( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - query_params: RequestQueryParams = frozendict.frozendict(), - header_params: RequestHeaderParams = frozendict.frozendict(), - content_type: str = 'application/x-www-form-urlencoded', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + query_params = frozendict.frozendict(), + header_params = frozendict.frozendict(), + content_type = 'application/x-www-form-urlencoded', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._enum_parameters_oapg( body=body, query_params=query_params, @@ -491,8 +475,8 @@ class ApiForget(BaseApi): @typing.overload def get( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, query_params: RequestQueryParams = frozendict.frozendict(), header_params: RequestHeaderParams = frozendict.frozendict(), content_type: str = 'application/x-www-form-urlencoded', @@ -500,15 +484,13 @@ class ApiForget(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, ]: ... @typing.overload def get( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, query_params: RequestQueryParams = frozendict.frozendict(), header_params: RequestHeaderParams = frozendict.frozendict(), content_type: str = 'application/x-www-form-urlencoded', @@ -520,8 +502,8 @@ class ApiForget(BaseApi): @typing.overload def get( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, query_params: RequestQueryParams = frozendict.frozendict(), header_params: RequestHeaderParams = frozendict.frozendict(), content_type: str = 'application/x-www-form-urlencoded', @@ -529,26 +511,20 @@ class ApiForget(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + api_client.ApiResponseWithoutDeserialization, ]: ... def get( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - query_params: RequestQueryParams = frozendict.frozendict(), - header_params: RequestHeaderParams = frozendict.frozendict(), - content_type: str = 'application/x-www-form-urlencoded', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + query_params = frozendict.frozendict(), + header_params = frozendict.frozendict(), + content_type = 'application/x-www-form-urlencoded', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._enum_parameters_oapg( body=body, query_params=query_params, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake/patch.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake/patch.py index e5eb12d9772..214dba3df07 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake/patch.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake/patch.py @@ -71,22 +71,22 @@ class BaseApi(api_client.Api): @typing.overload def _client_model_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _client_model_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -97,31 +97,28 @@ def _client_model_oapg( @typing.overload def _client_model_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _client_model_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ To test \"client\" model :param skip_deserialization: If true then api_response.response will be set but @@ -177,22 +174,22 @@ class ClientModel(BaseApi): @typing.overload def client_model( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def client_model( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -203,31 +200,28 @@ def client_model( @typing.overload def client_model( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def client_model( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._client_model_oapg( body=body, content_type=content_type, @@ -243,22 +237,22 @@ class ApiForpatch(BaseApi): @typing.overload def patch( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def patch( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -269,31 +263,28 @@ def patch( @typing.overload def patch( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def patch( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._client_model_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake/patch.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake/patch.pyi index e035534475e..b659df245b4 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake/patch.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake/patch.pyi @@ -39,22 +39,22 @@ class BaseApi(api_client.Api): @typing.overload def _client_model_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _client_model_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -65,31 +65,28 @@ class BaseApi(api_client.Api): @typing.overload def _client_model_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _client_model_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ To test \"client\" model :param skip_deserialization: If true then api_response.response will be set but @@ -145,22 +142,22 @@ class ClientModel(BaseApi): @typing.overload def client_model( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def client_model( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -171,31 +168,28 @@ class ClientModel(BaseApi): @typing.overload def client_model( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def client_model( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._client_model_oapg( body=body, content_type=content_type, @@ -211,22 +205,22 @@ class ApiForpatch(BaseApi): @typing.overload def patch( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def patch( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -237,31 +231,28 @@ class ApiForpatch(BaseApi): @typing.overload def patch( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def patch( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._client_model_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake/post.py index 2eb03382630..28c08fb6d23 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake/post.py @@ -342,22 +342,20 @@ class BaseApi(api_client.Api): @typing.overload def _endpoint_parameters_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, content_type: str = 'application/x-www-form-urlencoded', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, ]: ... @typing.overload def _endpoint_parameters_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, content_type: str = 'application/x-www-form-urlencoded', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -367,31 +365,25 @@ def _endpoint_parameters_oapg( @typing.overload def _endpoint_parameters_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, content_type: str = 'application/x-www-form-urlencoded', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + api_client.ApiResponseWithoutDeserialization, ]: ... def _endpoint_parameters_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - content_type: str = 'application/x-www-form-urlencoded', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/x-www-form-urlencoded', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 :param skip_deserialization: If true then api_response.response will be set but @@ -443,22 +435,20 @@ class EndpointParameters(BaseApi): @typing.overload def endpoint_parameters( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, content_type: str = 'application/x-www-form-urlencoded', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, ]: ... @typing.overload def endpoint_parameters( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, content_type: str = 'application/x-www-form-urlencoded', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -468,31 +458,25 @@ def endpoint_parameters( @typing.overload def endpoint_parameters( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, content_type: str = 'application/x-www-form-urlencoded', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + api_client.ApiResponseWithoutDeserialization, ]: ... def endpoint_parameters( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - content_type: str = 'application/x-www-form-urlencoded', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/x-www-form-urlencoded', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._endpoint_parameters_oapg( body=body, content_type=content_type, @@ -507,22 +491,20 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, content_type: str = 'application/x-www-form-urlencoded', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, content_type: str = 'application/x-www-form-urlencoded', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -532,31 +514,25 @@ def post( @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, content_type: str = 'application/x-www-form-urlencoded', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - content_type: str = 'application/x-www-form-urlencoded', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/x-www-form-urlencoded', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._endpoint_parameters_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake/post.pyi index 703cb2a2b3b..19a58538b71 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake/post.pyi @@ -261,22 +261,20 @@ class BaseApi(api_client.Api): @typing.overload def _endpoint_parameters_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, content_type: str = 'application/x-www-form-urlencoded', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, ]: ... @typing.overload def _endpoint_parameters_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, content_type: str = 'application/x-www-form-urlencoded', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -286,31 +284,25 @@ class BaseApi(api_client.Api): @typing.overload def _endpoint_parameters_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, content_type: str = 'application/x-www-form-urlencoded', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + api_client.ApiResponseWithoutDeserialization, ]: ... def _endpoint_parameters_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - content_type: str = 'application/x-www-form-urlencoded', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/x-www-form-urlencoded', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 :param skip_deserialization: If true then api_response.response will be set but @@ -362,22 +354,20 @@ class EndpointParameters(BaseApi): @typing.overload def endpoint_parameters( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, content_type: str = 'application/x-www-form-urlencoded', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, ]: ... @typing.overload def endpoint_parameters( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, content_type: str = 'application/x-www-form-urlencoded', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -387,31 +377,25 @@ class EndpointParameters(BaseApi): @typing.overload def endpoint_parameters( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, content_type: str = 'application/x-www-form-urlencoded', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + api_client.ApiResponseWithoutDeserialization, ]: ... def endpoint_parameters( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - content_type: str = 'application/x-www-form-urlencoded', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/x-www-form-urlencoded', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._endpoint_parameters_oapg( body=body, content_type=content_type, @@ -426,22 +410,20 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, content_type: str = 'application/x-www-form-urlencoded', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, content_type: str = 'application/x-www-form-urlencoded', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -451,31 +433,25 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, content_type: str = 'application/x-www-form-urlencoded', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - content_type: str = 'application/x-www-form-urlencoded', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/x-www-form-urlencoded', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._endpoint_parameters_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_additional_properties_with_array_of_enums/get.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_additional_properties_with_array_of_enums/get.py index dc267a784c4..98b071b76c0 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_additional_properties_with_array_of_enums/get.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_additional_properties_with_array_of_enums/get.py @@ -70,22 +70,22 @@ class BaseApi(api_client.Api): @typing.overload def _additional_properties_with_array_of_enums_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _additional_properties_with_array_of_enums_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -96,31 +96,28 @@ def _additional_properties_with_array_of_enums_oapg( @typing.overload def _additional_properties_with_array_of_enums_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _additional_properties_with_array_of_enums_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ Additional Properties with Array of Enums :param skip_deserialization: If true then api_response.response will be set but @@ -174,22 +171,22 @@ class AdditionalPropertiesWithArrayOfEnums(BaseApi): @typing.overload def additional_properties_with_array_of_enums( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def additional_properties_with_array_of_enums( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -200,31 +197,28 @@ def additional_properties_with_array_of_enums( @typing.overload def additional_properties_with_array_of_enums( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def additional_properties_with_array_of_enums( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._additional_properties_with_array_of_enums_oapg( body=body, content_type=content_type, @@ -240,22 +234,22 @@ class ApiForget(BaseApi): @typing.overload def get( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def get( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -266,31 +260,28 @@ def get( @typing.overload def get( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def get( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._additional_properties_with_array_of_enums_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_additional_properties_with_array_of_enums/get.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_additional_properties_with_array_of_enums/get.pyi index 655ff7a67d1..a0164210169 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_additional_properties_with_array_of_enums/get.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_additional_properties_with_array_of_enums/get.pyi @@ -39,22 +39,22 @@ class BaseApi(api_client.Api): @typing.overload def _additional_properties_with_array_of_enums_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _additional_properties_with_array_of_enums_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -65,31 +65,28 @@ class BaseApi(api_client.Api): @typing.overload def _additional_properties_with_array_of_enums_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _additional_properties_with_array_of_enums_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ Additional Properties with Array of Enums :param skip_deserialization: If true then api_response.response will be set but @@ -143,22 +140,22 @@ class AdditionalPropertiesWithArrayOfEnums(BaseApi): @typing.overload def additional_properties_with_array_of_enums( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def additional_properties_with_array_of_enums( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -169,31 +166,28 @@ class AdditionalPropertiesWithArrayOfEnums(BaseApi): @typing.overload def additional_properties_with_array_of_enums( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def additional_properties_with_array_of_enums( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._additional_properties_with_array_of_enums_oapg( body=body, content_type=content_type, @@ -209,22 +203,22 @@ class ApiForget(BaseApi): @typing.overload def get( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def get( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -235,31 +229,28 @@ class ApiForget(BaseApi): @typing.overload def get( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def get( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._additional_properties_with_array_of_enums_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_body_with_file_schema/put.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_body_with_file_schema/put.py index b2634eb130b..c03e4500e07 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_body_with_file_schema/put.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_body_with_file_schema/put.py @@ -61,21 +61,21 @@ class BaseApi(api_client.Api): @typing.overload def _body_with_file_schema_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _body_with_file_schema_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -85,29 +85,26 @@ def _body_with_file_schema_oapg( @typing.overload def _body_with_file_schema_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _body_with_file_schema_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -159,21 +156,21 @@ class BodyWithFileSchema(BaseApi): @typing.overload def body_with_file_schema( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def body_with_file_schema( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -183,29 +180,26 @@ def body_with_file_schema( @typing.overload def body_with_file_schema( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def body_with_file_schema( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._body_with_file_schema_oapg( body=body, content_type=content_type, @@ -220,21 +214,21 @@ class ApiForput(BaseApi): @typing.overload def put( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def put( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -244,29 +238,26 @@ def put( @typing.overload def put( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def put( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._body_with_file_schema_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_body_with_file_schema/put.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_body_with_file_schema/put.pyi index 9ca192a0377..2697093e6eb 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_body_with_file_schema/put.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_body_with_file_schema/put.pyi @@ -35,21 +35,21 @@ class BaseApi(api_client.Api): @typing.overload def _body_with_file_schema_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _body_with_file_schema_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,29 +59,26 @@ class BaseApi(api_client.Api): @typing.overload def _body_with_file_schema_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _body_with_file_schema_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -133,21 +130,21 @@ class BodyWithFileSchema(BaseApi): @typing.overload def body_with_file_schema( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def body_with_file_schema( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -157,29 +154,26 @@ class BodyWithFileSchema(BaseApi): @typing.overload def body_with_file_schema( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def body_with_file_schema( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._body_with_file_schema_oapg( body=body, content_type=content_type, @@ -194,21 +188,21 @@ class ApiForput(BaseApi): @typing.overload def put( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def put( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -218,29 +212,26 @@ class ApiForput(BaseApi): @typing.overload def put( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def put( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._body_with_file_schema_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_body_with_query_params/put.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_body_with_query_params/put.py index 1730623ffce..28d1bbfdb1f 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_body_with_query_params/put.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_body_with_query_params/put.py @@ -88,22 +88,22 @@ class BaseApi(api_client.Api): @typing.overload def _body_with_query_params_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], query_params: RequestQueryParams = frozendict.frozendict(), content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _body_with_query_params_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], query_params: RequestQueryParams = frozendict.frozendict(), content_type: str = 'application/json', stream: bool = False, @@ -114,31 +114,28 @@ def _body_with_query_params_oapg( @typing.overload def _body_with_query_params_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], query_params: RequestQueryParams = frozendict.frozendict(), content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _body_with_query_params_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - query_params: RequestQueryParams = frozendict.frozendict(), - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + query_params = frozendict.frozendict(), + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -204,22 +201,22 @@ class BodyWithQueryParams(BaseApi): @typing.overload def body_with_query_params( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], query_params: RequestQueryParams = frozendict.frozendict(), content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def body_with_query_params( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], query_params: RequestQueryParams = frozendict.frozendict(), content_type: str = 'application/json', stream: bool = False, @@ -230,31 +227,28 @@ def body_with_query_params( @typing.overload def body_with_query_params( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], query_params: RequestQueryParams = frozendict.frozendict(), content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def body_with_query_params( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - query_params: RequestQueryParams = frozendict.frozendict(), - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + query_params = frozendict.frozendict(), + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._body_with_query_params_oapg( body=body, query_params=query_params, @@ -270,22 +264,22 @@ class ApiForput(BaseApi): @typing.overload def put( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], query_params: RequestQueryParams = frozendict.frozendict(), content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def put( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], query_params: RequestQueryParams = frozendict.frozendict(), content_type: str = 'application/json', stream: bool = False, @@ -296,31 +290,28 @@ def put( @typing.overload def put( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], query_params: RequestQueryParams = frozendict.frozendict(), content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def put( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - query_params: RequestQueryParams = frozendict.frozendict(), - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + query_params = frozendict.frozendict(), + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._body_with_query_params_oapg( body=body, query_params=query_params, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_body_with_query_params/put.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_body_with_query_params/put.pyi index 3ec8bd31cfb..4f17402bce5 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_body_with_query_params/put.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_body_with_query_params/put.pyi @@ -37,22 +37,22 @@ class BaseApi(api_client.Api): @typing.overload def _body_with_query_params_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], query_params: RequestQueryParams = frozendict.frozendict(), content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _body_with_query_params_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], query_params: RequestQueryParams = frozendict.frozendict(), content_type: str = 'application/json', stream: bool = False, @@ -63,31 +63,28 @@ class BaseApi(api_client.Api): @typing.overload def _body_with_query_params_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], query_params: RequestQueryParams = frozendict.frozendict(), content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _body_with_query_params_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - query_params: RequestQueryParams = frozendict.frozendict(), - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + query_params = frozendict.frozendict(), + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -153,22 +150,22 @@ class BodyWithQueryParams(BaseApi): @typing.overload def body_with_query_params( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], query_params: RequestQueryParams = frozendict.frozendict(), content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def body_with_query_params( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], query_params: RequestQueryParams = frozendict.frozendict(), content_type: str = 'application/json', stream: bool = False, @@ -179,31 +176,28 @@ class BodyWithQueryParams(BaseApi): @typing.overload def body_with_query_params( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], query_params: RequestQueryParams = frozendict.frozendict(), content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def body_with_query_params( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - query_params: RequestQueryParams = frozendict.frozendict(), - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + query_params = frozendict.frozendict(), + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._body_with_query_params_oapg( body=body, query_params=query_params, @@ -219,22 +213,22 @@ class ApiForput(BaseApi): @typing.overload def put( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], query_params: RequestQueryParams = frozendict.frozendict(), content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def put( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], query_params: RequestQueryParams = frozendict.frozendict(), content_type: str = 'application/json', stream: bool = False, @@ -245,31 +239,28 @@ class ApiForput(BaseApi): @typing.overload def put( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], query_params: RequestQueryParams = frozendict.frozendict(), content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def put( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - query_params: RequestQueryParams = frozendict.frozendict(), - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + query_params = frozendict.frozendict(), + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._body_with_query_params_oapg( body=body, query_params=query_params, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_case_sensitive_params/put.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_case_sensitive_params/put.py index a81c9448e1f..c5ca852b035 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_case_sensitive_params/put.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_case_sensitive_params/put.py @@ -92,19 +92,19 @@ class BaseApi(api_client.Api): @typing.overload def _case_sensitive_params_oapg( - self: api_client.Api, + self, query_params: RequestQueryParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _case_sensitive_params_oapg( - self: api_client.Api, + self, query_params: RequestQueryParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -114,27 +114,24 @@ def _case_sensitive_params_oapg( @typing.overload def _case_sensitive_params_oapg( - self: api_client.Api, + self, query_params: RequestQueryParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _case_sensitive_params_oapg( - self: api_client.Api, - query_params: RequestQueryParams = frozendict.frozendict(), - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + query_params = frozendict.frozendict(), + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -186,19 +183,19 @@ class CaseSensitiveParams(BaseApi): @typing.overload def case_sensitive_params( - self: BaseApi, + self, query_params: RequestQueryParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def case_sensitive_params( - self: BaseApi, + self, query_params: RequestQueryParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -208,27 +205,24 @@ def case_sensitive_params( @typing.overload def case_sensitive_params( - self: BaseApi, + self, query_params: RequestQueryParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def case_sensitive_params( - self: BaseApi, - query_params: RequestQueryParams = frozendict.frozendict(), - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + query_params = frozendict.frozendict(), + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._case_sensitive_params_oapg( query_params=query_params, stream=stream, @@ -242,19 +236,19 @@ class ApiForput(BaseApi): @typing.overload def put( - self: BaseApi, + self, query_params: RequestQueryParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def put( - self: BaseApi, + self, query_params: RequestQueryParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -264,27 +258,24 @@ def put( @typing.overload def put( - self: BaseApi, + self, query_params: RequestQueryParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def put( - self: BaseApi, - query_params: RequestQueryParams = frozendict.frozendict(), - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + query_params = frozendict.frozendict(), + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._case_sensitive_params_oapg( query_params=query_params, stream=stream, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_case_sensitive_params/put.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_case_sensitive_params/put.pyi index 4829c1a0970..d7af36ff156 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_case_sensitive_params/put.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_case_sensitive_params/put.pyi @@ -34,19 +34,19 @@ class BaseApi(api_client.Api): @typing.overload def _case_sensitive_params_oapg( - self: api_client.Api, + self, query_params: RequestQueryParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _case_sensitive_params_oapg( - self: api_client.Api, + self, query_params: RequestQueryParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -56,27 +56,24 @@ class BaseApi(api_client.Api): @typing.overload def _case_sensitive_params_oapg( - self: api_client.Api, + self, query_params: RequestQueryParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _case_sensitive_params_oapg( - self: api_client.Api, - query_params: RequestQueryParams = frozendict.frozendict(), - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + query_params = frozendict.frozendict(), + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -128,19 +125,19 @@ class CaseSensitiveParams(BaseApi): @typing.overload def case_sensitive_params( - self: BaseApi, + self, query_params: RequestQueryParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def case_sensitive_params( - self: BaseApi, + self, query_params: RequestQueryParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -150,27 +147,24 @@ class CaseSensitiveParams(BaseApi): @typing.overload def case_sensitive_params( - self: BaseApi, + self, query_params: RequestQueryParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def case_sensitive_params( - self: BaseApi, - query_params: RequestQueryParams = frozendict.frozendict(), - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + query_params = frozendict.frozendict(), + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._case_sensitive_params_oapg( query_params=query_params, stream=stream, @@ -184,19 +178,19 @@ class ApiForput(BaseApi): @typing.overload def put( - self: BaseApi, + self, query_params: RequestQueryParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def put( - self: BaseApi, + self, query_params: RequestQueryParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -206,27 +200,24 @@ class ApiForput(BaseApi): @typing.overload def put( - self: BaseApi, + self, query_params: RequestQueryParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def put( - self: BaseApi, - query_params: RequestQueryParams = frozendict.frozendict(), - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + query_params = frozendict.frozendict(), + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._case_sensitive_params_oapg( query_params=query_params, stream=stream, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_classname_test/patch.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_classname_test/patch.py index d39862cc764..ef409571787 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_classname_test/patch.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_classname_test/patch.py @@ -74,22 +74,22 @@ class BaseApi(api_client.Api): @typing.overload def _classname_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _classname_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -100,31 +100,28 @@ def _classname_oapg( @typing.overload def _classname_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _classname_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ To test class name in snake case :param skip_deserialization: If true then api_response.response will be set but @@ -181,22 +178,22 @@ class Classname(BaseApi): @typing.overload def classname( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def classname( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -207,31 +204,28 @@ def classname( @typing.overload def classname( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def classname( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._classname_oapg( body=body, content_type=content_type, @@ -247,22 +241,22 @@ class ApiForpatch(BaseApi): @typing.overload def patch( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def patch( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -273,31 +267,28 @@ def patch( @typing.overload def patch( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def patch( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._classname_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_classname_test/patch.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_classname_test/patch.pyi index 0efae9264dd..6f4577d6ad3 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_classname_test/patch.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_classname_test/patch.pyi @@ -39,22 +39,22 @@ class BaseApi(api_client.Api): @typing.overload def _classname_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _classname_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -65,31 +65,28 @@ class BaseApi(api_client.Api): @typing.overload def _classname_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _classname_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ To test class name in snake case :param skip_deserialization: If true then api_response.response will be set but @@ -146,22 +143,22 @@ class Classname(BaseApi): @typing.overload def classname( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def classname( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -172,31 +169,28 @@ class Classname(BaseApi): @typing.overload def classname( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def classname( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._classname_oapg( body=body, content_type=content_type, @@ -212,22 +206,22 @@ class ApiForpatch(BaseApi): @typing.overload def patch( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def patch( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -238,31 +232,28 @@ class ApiForpatch(BaseApi): @typing.overload def patch( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def patch( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._classname_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_delete_coffee_id/delete.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_delete_coffee_id/delete.py index 38fe09237bc..c8d5bd23032 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_delete_coffee_id/delete.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_delete_coffee_id/delete.py @@ -86,20 +86,20 @@ class BaseApi(api_client.Api): @typing.overload def _delete_coffee_oapg( - self: api_client.Api, + self, path_params: RequestPathParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ApiResponseForDefault, ]: ... @typing.overload def _delete_coffee_oapg( - self: api_client.Api, + self, path_params: RequestPathParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -109,29 +109,25 @@ def _delete_coffee_oapg( @typing.overload def _delete_coffee_oapg( - self: api_client.Api, + self, path_params: RequestPathParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization + api_client.ApiResponseWithoutDeserialization, ]: ... def _delete_coffee_oapg( - self: api_client.Api, - path_params: RequestPathParams = frozendict.frozendict(), - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization - ]: + self, + path_params = frozendict.frozendict(), + stream = False, + timeout = None, + skip_deserialization = False, + ): """ Delete coffee :param skip_deserialization: If true then api_response.response will be set but @@ -186,20 +182,20 @@ class DeleteCoffee(BaseApi): @typing.overload def delete_coffee( - self: BaseApi, + self, path_params: RequestPathParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ApiResponseForDefault, ]: ... @typing.overload def delete_coffee( - self: BaseApi, + self, path_params: RequestPathParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -209,29 +205,25 @@ def delete_coffee( @typing.overload def delete_coffee( - self: BaseApi, + self, path_params: RequestPathParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization + api_client.ApiResponseWithoutDeserialization, ]: ... def delete_coffee( - self: BaseApi, - path_params: RequestPathParams = frozendict.frozendict(), - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization - ]: + self, + path_params = frozendict.frozendict(), + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._delete_coffee_oapg( path_params=path_params, stream=stream, @@ -245,20 +237,20 @@ class ApiFordelete(BaseApi): @typing.overload def delete( - self: BaseApi, + self, path_params: RequestPathParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ApiResponseForDefault, ]: ... @typing.overload def delete( - self: BaseApi, + self, path_params: RequestPathParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -268,29 +260,25 @@ def delete( @typing.overload def delete( - self: BaseApi, + self, path_params: RequestPathParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization + api_client.ApiResponseWithoutDeserialization, ]: ... def delete( - self: BaseApi, - path_params: RequestPathParams = frozendict.frozendict(), - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization - ]: + self, + path_params = frozendict.frozendict(), + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._delete_coffee_oapg( path_params=path_params, stream=stream, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_delete_coffee_id/delete.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_delete_coffee_id/delete.pyi index 9bbdf51a41d..5f35afdcffc 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_delete_coffee_id/delete.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_delete_coffee_id/delete.pyi @@ -32,20 +32,20 @@ class BaseApi(api_client.Api): @typing.overload def _delete_coffee_oapg( - self: api_client.Api, + self, path_params: RequestPathParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ApiResponseForDefault, ]: ... @typing.overload def _delete_coffee_oapg( - self: api_client.Api, + self, path_params: RequestPathParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -55,29 +55,25 @@ class BaseApi(api_client.Api): @typing.overload def _delete_coffee_oapg( - self: api_client.Api, + self, path_params: RequestPathParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization + api_client.ApiResponseWithoutDeserialization, ]: ... def _delete_coffee_oapg( - self: api_client.Api, - path_params: RequestPathParams = frozendict.frozendict(), - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization - ]: + self, + path_params = frozendict.frozendict(), + stream = False, + timeout = None, + skip_deserialization = False, + ): """ Delete coffee :param skip_deserialization: If true then api_response.response will be set but @@ -132,20 +128,20 @@ class DeleteCoffee(BaseApi): @typing.overload def delete_coffee( - self: BaseApi, + self, path_params: RequestPathParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ApiResponseForDefault, ]: ... @typing.overload def delete_coffee( - self: BaseApi, + self, path_params: RequestPathParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -155,29 +151,25 @@ class DeleteCoffee(BaseApi): @typing.overload def delete_coffee( - self: BaseApi, + self, path_params: RequestPathParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization + api_client.ApiResponseWithoutDeserialization, ]: ... def delete_coffee( - self: BaseApi, - path_params: RequestPathParams = frozendict.frozendict(), - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization - ]: + self, + path_params = frozendict.frozendict(), + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._delete_coffee_oapg( path_params=path_params, stream=stream, @@ -191,20 +183,20 @@ class ApiFordelete(BaseApi): @typing.overload def delete( - self: BaseApi, + self, path_params: RequestPathParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ApiResponseForDefault, ]: ... @typing.overload def delete( - self: BaseApi, + self, path_params: RequestPathParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -214,29 +206,25 @@ class ApiFordelete(BaseApi): @typing.overload def delete( - self: BaseApi, + self, path_params: RequestPathParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization + api_client.ApiResponseWithoutDeserialization, ]: ... def delete( - self: BaseApi, - path_params: RequestPathParams = frozendict.frozendict(), - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization - ]: + self, + path_params = frozendict.frozendict(), + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._delete_coffee_oapg( path_params=path_params, stream=stream, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_health/get.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_health/get.py index 63b7a5defb5..75ee45ec421 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_health/get.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_health/get.py @@ -60,19 +60,19 @@ class BaseApi(api_client.Api): @typing.overload def _fake_health_get_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _fake_health_get_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -82,27 +82,24 @@ def _fake_health_get_oapg( @typing.overload def _fake_health_get_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _fake_health_get_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ Health check endpoint :param skip_deserialization: If true then api_response.response will be set but @@ -145,19 +142,19 @@ class FakeHealthGet(BaseApi): @typing.overload def fake_health_get( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def fake_health_get( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -167,27 +164,24 @@ def fake_health_get( @typing.overload def fake_health_get( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def fake_health_get( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._fake_health_get_oapg( accept_content_types=accept_content_types, stream=stream, @@ -201,19 +195,19 @@ class ApiForget(BaseApi): @typing.overload def get( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def get( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -223,27 +217,24 @@ def get( @typing.overload def get( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def get( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._fake_health_get_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_health/get.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_health/get.pyi index fa96827de1a..7956d162384 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_health/get.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_health/get.pyi @@ -37,19 +37,19 @@ class BaseApi(api_client.Api): @typing.overload def _fake_health_get_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _fake_health_get_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,27 +59,24 @@ class BaseApi(api_client.Api): @typing.overload def _fake_health_get_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _fake_health_get_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ Health check endpoint :param skip_deserialization: If true then api_response.response will be set but @@ -122,19 +119,19 @@ class FakeHealthGet(BaseApi): @typing.overload def fake_health_get( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def fake_health_get( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -144,27 +141,24 @@ class FakeHealthGet(BaseApi): @typing.overload def fake_health_get( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def fake_health_get( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._fake_health_get_oapg( accept_content_types=accept_content_types, stream=stream, @@ -178,19 +172,19 @@ class ApiForget(BaseApi): @typing.overload def get( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def get( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -200,27 +194,24 @@ class ApiForget(BaseApi): @typing.overload def get( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def get( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._fake_health_get_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_inline_additional_properties/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_inline_additional_properties/post.py index 27ef6206caa..929d1fe97ad 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_inline_additional_properties/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_inline_additional_properties/post.py @@ -87,21 +87,21 @@ class BaseApi(api_client.Api): @typing.overload def _inline_additional_properties_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _inline_additional_properties_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -111,29 +111,26 @@ def _inline_additional_properties_oapg( @typing.overload def _inline_additional_properties_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _inline_additional_properties_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ test inline additionalProperties :param skip_deserialization: If true then api_response.response will be set but @@ -186,21 +183,21 @@ class InlineAdditionalProperties(BaseApi): @typing.overload def inline_additional_properties( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def inline_additional_properties( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -210,29 +207,26 @@ def inline_additional_properties( @typing.overload def inline_additional_properties( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def inline_additional_properties( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._inline_additional_properties_oapg( body=body, content_type=content_type, @@ -247,21 +241,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -271,29 +265,26 @@ def post( @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._inline_additional_properties_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_inline_additional_properties/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_inline_additional_properties/post.pyi index 306f307133d..ae94205e247 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_inline_additional_properties/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_inline_additional_properties/post.pyi @@ -61,21 +61,21 @@ class BaseApi(api_client.Api): @typing.overload def _inline_additional_properties_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _inline_additional_properties_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -85,29 +85,26 @@ class BaseApi(api_client.Api): @typing.overload def _inline_additional_properties_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _inline_additional_properties_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ test inline additionalProperties :param skip_deserialization: If true then api_response.response will be set but @@ -160,21 +157,21 @@ class InlineAdditionalProperties(BaseApi): @typing.overload def inline_additional_properties( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def inline_additional_properties( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -184,29 +181,26 @@ class InlineAdditionalProperties(BaseApi): @typing.overload def inline_additional_properties( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def inline_additional_properties( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._inline_additional_properties_oapg( body=body, content_type=content_type, @@ -221,21 +215,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -245,29 +239,26 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._inline_additional_properties_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_inline_composition_/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_inline_composition_/post.py index d612cc865ff..703817b8eae 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_inline_composition_/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_inline_composition_/post.py @@ -521,8 +521,8 @@ class BaseApi(api_client.Api): @typing.overload def _inline_composition_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, query_params: RequestQueryParams = frozendict.frozendict(), content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -530,14 +530,14 @@ def _inline_composition_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _inline_composition_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, query_params: RequestQueryParams = frozendict.frozendict(), content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -549,8 +549,8 @@ def _inline_composition_oapg( @typing.overload def _inline_composition_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, query_params: RequestQueryParams = frozendict.frozendict(), content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -558,24 +558,21 @@ def _inline_composition_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _inline_composition_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - query_params: RequestQueryParams = frozendict.frozendict(), - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + query_params = frozendict.frozendict(), + content_type = 'application/json', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ testing composed schemas at inline locations :param skip_deserialization: If true then api_response.response will be set but @@ -644,8 +641,8 @@ class InlineComposition(BaseApi): @typing.overload def inline_composition( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, query_params: RequestQueryParams = frozendict.frozendict(), content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -653,14 +650,14 @@ def inline_composition( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def inline_composition( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, query_params: RequestQueryParams = frozendict.frozendict(), content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -672,8 +669,8 @@ def inline_composition( @typing.overload def inline_composition( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, query_params: RequestQueryParams = frozendict.frozendict(), content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -681,24 +678,21 @@ def inline_composition( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def inline_composition( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - query_params: RequestQueryParams = frozendict.frozendict(), - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + query_params = frozendict.frozendict(), + content_type = 'application/json', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._inline_composition_oapg( body=body, query_params=query_params, @@ -715,8 +709,8 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, query_params: RequestQueryParams = frozendict.frozendict(), content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -724,14 +718,14 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, query_params: RequestQueryParams = frozendict.frozendict(), content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -743,8 +737,8 @@ def post( @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, query_params: RequestQueryParams = frozendict.frozendict(), content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -752,24 +746,21 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - query_params: RequestQueryParams = frozendict.frozendict(), - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + query_params = frozendict.frozendict(), + content_type = 'application/json', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._inline_composition_oapg( body=body, query_params=query_params, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_inline_composition_/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_inline_composition_/post.pyi index c9b912d7df6..838be3251af 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_inline_composition_/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_inline_composition_/post.pyi @@ -436,8 +436,8 @@ class BaseApi(api_client.Api): @typing.overload def _inline_composition_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, query_params: RequestQueryParams = frozendict.frozendict(), content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -445,14 +445,14 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _inline_composition_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, query_params: RequestQueryParams = frozendict.frozendict(), content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -464,8 +464,8 @@ class BaseApi(api_client.Api): @typing.overload def _inline_composition_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, query_params: RequestQueryParams = frozendict.frozendict(), content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -473,24 +473,21 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _inline_composition_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - query_params: RequestQueryParams = frozendict.frozendict(), - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + query_params = frozendict.frozendict(), + content_type = 'application/json', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ testing composed schemas at inline locations :param skip_deserialization: If true then api_response.response will be set but @@ -559,8 +556,8 @@ class InlineComposition(BaseApi): @typing.overload def inline_composition( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, query_params: RequestQueryParams = frozendict.frozendict(), content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -568,14 +565,14 @@ class InlineComposition(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def inline_composition( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, query_params: RequestQueryParams = frozendict.frozendict(), content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -587,8 +584,8 @@ class InlineComposition(BaseApi): @typing.overload def inline_composition( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, query_params: RequestQueryParams = frozendict.frozendict(), content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -596,24 +593,21 @@ class InlineComposition(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def inline_composition( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - query_params: RequestQueryParams = frozendict.frozendict(), - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + query_params = frozendict.frozendict(), + content_type = 'application/json', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._inline_composition_oapg( body=body, query_params=query_params, @@ -630,8 +624,8 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, query_params: RequestQueryParams = frozendict.frozendict(), content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -639,14 +633,14 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, query_params: RequestQueryParams = frozendict.frozendict(), content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -658,8 +652,8 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, query_params: RequestQueryParams = frozendict.frozendict(), content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -667,24 +661,21 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - query_params: RequestQueryParams = frozendict.frozendict(), - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + query_params = frozendict.frozendict(), + content_type = 'application/json', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._inline_composition_oapg( body=body, query_params=query_params, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_form_data/get.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_form_data/get.py index dc1f071185e..cd8d4208109 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_form_data/get.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_form_data/get.py @@ -124,21 +124,21 @@ class BaseApi(api_client.Api): @typing.overload def _json_form_data_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, content_type: str = 'application/x-www-form-urlencoded', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _json_form_data_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, content_type: str = 'application/x-www-form-urlencoded', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -148,29 +148,26 @@ def _json_form_data_oapg( @typing.overload def _json_form_data_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, content_type: str = 'application/x-www-form-urlencoded', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _json_form_data_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - content_type: str = 'application/x-www-form-urlencoded', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/x-www-form-urlencoded', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ test json serialization of form data :param skip_deserialization: If true then api_response.response will be set but @@ -221,21 +218,21 @@ class JsonFormData(BaseApi): @typing.overload def json_form_data( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, content_type: str = 'application/x-www-form-urlencoded', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def json_form_data( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, content_type: str = 'application/x-www-form-urlencoded', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -245,29 +242,26 @@ def json_form_data( @typing.overload def json_form_data( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, content_type: str = 'application/x-www-form-urlencoded', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def json_form_data( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - content_type: str = 'application/x-www-form-urlencoded', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/x-www-form-urlencoded', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._json_form_data_oapg( body=body, content_type=content_type, @@ -282,21 +276,21 @@ class ApiForget(BaseApi): @typing.overload def get( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, content_type: str = 'application/x-www-form-urlencoded', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def get( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, content_type: str = 'application/x-www-form-urlencoded', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -306,29 +300,26 @@ def get( @typing.overload def get( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, content_type: str = 'application/x-www-form-urlencoded', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def get( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - content_type: str = 'application/x-www-form-urlencoded', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/x-www-form-urlencoded', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._json_form_data_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_form_data/get.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_form_data/get.pyi index 8834f7f8a9c..f00ccc89b98 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_form_data/get.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_form_data/get.pyi @@ -99,21 +99,21 @@ class BaseApi(api_client.Api): @typing.overload def _json_form_data_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, content_type: str = 'application/x-www-form-urlencoded', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _json_form_data_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, content_type: str = 'application/x-www-form-urlencoded', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -123,29 +123,26 @@ class BaseApi(api_client.Api): @typing.overload def _json_form_data_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, content_type: str = 'application/x-www-form-urlencoded', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _json_form_data_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - content_type: str = 'application/x-www-form-urlencoded', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/x-www-form-urlencoded', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ test json serialization of form data :param skip_deserialization: If true then api_response.response will be set but @@ -196,21 +193,21 @@ class JsonFormData(BaseApi): @typing.overload def json_form_data( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, content_type: str = 'application/x-www-form-urlencoded', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def json_form_data( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, content_type: str = 'application/x-www-form-urlencoded', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -220,29 +217,26 @@ class JsonFormData(BaseApi): @typing.overload def json_form_data( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, content_type: str = 'application/x-www-form-urlencoded', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def json_form_data( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - content_type: str = 'application/x-www-form-urlencoded', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/x-www-form-urlencoded', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._json_form_data_oapg( body=body, content_type=content_type, @@ -257,21 +251,21 @@ class ApiForget(BaseApi): @typing.overload def get( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, content_type: str = 'application/x-www-form-urlencoded', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def get( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, content_type: str = 'application/x-www-form-urlencoded', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -281,29 +275,26 @@ class ApiForget(BaseApi): @typing.overload def get( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, content_type: str = 'application/x-www-form-urlencoded', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def get( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - content_type: str = 'application/x-www-form-urlencoded', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/x-www-form-urlencoded', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._json_form_data_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_patch/patch.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_patch/patch.py index 5e408601fa4..fb459d343aa 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_patch/patch.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_patch/patch.py @@ -60,21 +60,21 @@ class BaseApi(api_client.Api): @typing.overload def _json_patch_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJsonPatchjson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJsonPatchjson,schemas.Unset] = schemas.unset, content_type: str = 'application/json-patch+json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _json_patch_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJsonPatchjson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJsonPatchjson,schemas.Unset] = schemas.unset, content_type: str = 'application/json-patch+json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -84,29 +84,26 @@ def _json_patch_oapg( @typing.overload def _json_patch_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJsonPatchjson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJsonPatchjson,schemas.Unset] = schemas.unset, content_type: str = 'application/json-patch+json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _json_patch_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJsonPatchjson, schemas.Unset] = schemas.unset, - content_type: str = 'application/json-patch+json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json-patch+json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ json patch :param skip_deserialization: If true then api_response.response will be set but @@ -157,21 +154,21 @@ class JsonPatch(BaseApi): @typing.overload def json_patch( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJsonPatchjson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJsonPatchjson,schemas.Unset] = schemas.unset, content_type: str = 'application/json-patch+json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def json_patch( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJsonPatchjson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJsonPatchjson,schemas.Unset] = schemas.unset, content_type: str = 'application/json-patch+json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -181,29 +178,26 @@ def json_patch( @typing.overload def json_patch( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJsonPatchjson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJsonPatchjson,schemas.Unset] = schemas.unset, content_type: str = 'application/json-patch+json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def json_patch( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJsonPatchjson, schemas.Unset] = schemas.unset, - content_type: str = 'application/json-patch+json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json-patch+json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._json_patch_oapg( body=body, content_type=content_type, @@ -218,21 +212,21 @@ class ApiForpatch(BaseApi): @typing.overload def patch( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJsonPatchjson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJsonPatchjson,schemas.Unset] = schemas.unset, content_type: str = 'application/json-patch+json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def patch( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJsonPatchjson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJsonPatchjson,schemas.Unset] = schemas.unset, content_type: str = 'application/json-patch+json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -242,29 +236,26 @@ def patch( @typing.overload def patch( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJsonPatchjson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJsonPatchjson,schemas.Unset] = schemas.unset, content_type: str = 'application/json-patch+json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def patch( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJsonPatchjson, schemas.Unset] = schemas.unset, - content_type: str = 'application/json-patch+json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json-patch+json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._json_patch_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_patch/patch.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_patch/patch.pyi index b70c5f9b970..9c680447513 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_patch/patch.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_patch/patch.pyi @@ -35,21 +35,21 @@ class BaseApi(api_client.Api): @typing.overload def _json_patch_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJsonPatchjson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJsonPatchjson,schemas.Unset] = schemas.unset, content_type: str = 'application/json-patch+json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _json_patch_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJsonPatchjson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJsonPatchjson,schemas.Unset] = schemas.unset, content_type: str = 'application/json-patch+json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,29 +59,26 @@ class BaseApi(api_client.Api): @typing.overload def _json_patch_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJsonPatchjson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJsonPatchjson,schemas.Unset] = schemas.unset, content_type: str = 'application/json-patch+json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _json_patch_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJsonPatchjson, schemas.Unset] = schemas.unset, - content_type: str = 'application/json-patch+json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json-patch+json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ json patch :param skip_deserialization: If true then api_response.response will be set but @@ -132,21 +129,21 @@ class JsonPatch(BaseApi): @typing.overload def json_patch( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJsonPatchjson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJsonPatchjson,schemas.Unset] = schemas.unset, content_type: str = 'application/json-patch+json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def json_patch( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJsonPatchjson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJsonPatchjson,schemas.Unset] = schemas.unset, content_type: str = 'application/json-patch+json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -156,29 +153,26 @@ class JsonPatch(BaseApi): @typing.overload def json_patch( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJsonPatchjson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJsonPatchjson,schemas.Unset] = schemas.unset, content_type: str = 'application/json-patch+json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def json_patch( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJsonPatchjson, schemas.Unset] = schemas.unset, - content_type: str = 'application/json-patch+json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json-patch+json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._json_patch_oapg( body=body, content_type=content_type, @@ -193,21 +187,21 @@ class ApiForpatch(BaseApi): @typing.overload def patch( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJsonPatchjson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJsonPatchjson,schemas.Unset] = schemas.unset, content_type: str = 'application/json-patch+json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def patch( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJsonPatchjson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJsonPatchjson,schemas.Unset] = schemas.unset, content_type: str = 'application/json-patch+json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -217,29 +211,26 @@ class ApiForpatch(BaseApi): @typing.overload def patch( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJsonPatchjson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJsonPatchjson,schemas.Unset] = schemas.unset, content_type: str = 'application/json-patch+json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def patch( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJsonPatchjson, schemas.Unset] = schemas.unset, - content_type: str = 'application/json-patch+json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json-patch+json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._json_patch_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_with_charset/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_with_charset/post.py index c833ccbf7aa..80349f06eeb 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_with_charset/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_with_charset/post.py @@ -68,22 +68,22 @@ class BaseApi(api_client.Api): @typing.overload def _json_with_charset_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJsonCharsetutf8, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJsonCharsetutf8,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, content_type: str = 'application/json; charset=utf-8', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _json_with_charset_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJsonCharsetutf8, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJsonCharsetutf8,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, content_type: str = 'application/json; charset=utf-8', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -94,31 +94,28 @@ def _json_with_charset_oapg( @typing.overload def _json_with_charset_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJsonCharsetutf8, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJsonCharsetutf8,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, content_type: str = 'application/json; charset=utf-8', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _json_with_charset_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJsonCharsetutf8, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - content_type: str = 'application/json; charset=utf-8', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json; charset=utf-8', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ json with charset tx and rx :param skip_deserialization: If true then api_response.response will be set but @@ -172,22 +169,22 @@ class JsonWithCharset(BaseApi): @typing.overload def json_with_charset( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJsonCharsetutf8, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJsonCharsetutf8,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, content_type: str = 'application/json; charset=utf-8', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def json_with_charset( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJsonCharsetutf8, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJsonCharsetutf8,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, content_type: str = 'application/json; charset=utf-8', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -198,31 +195,28 @@ def json_with_charset( @typing.overload def json_with_charset( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJsonCharsetutf8, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJsonCharsetutf8,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, content_type: str = 'application/json; charset=utf-8', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def json_with_charset( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJsonCharsetutf8, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - content_type: str = 'application/json; charset=utf-8', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json; charset=utf-8', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._json_with_charset_oapg( body=body, content_type=content_type, @@ -238,22 +232,22 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJsonCharsetutf8, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJsonCharsetutf8,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, content_type: str = 'application/json; charset=utf-8', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJsonCharsetutf8, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJsonCharsetutf8,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, content_type: str = 'application/json; charset=utf-8', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -264,31 +258,28 @@ def post( @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJsonCharsetutf8, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJsonCharsetutf8,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, content_type: str = 'application/json; charset=utf-8', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJsonCharsetutf8, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - content_type: str = 'application/json; charset=utf-8', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json; charset=utf-8', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._json_with_charset_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_with_charset/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_with_charset/post.pyi index f22277f36fe..1fa035709f3 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_with_charset/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_with_charset/post.pyi @@ -37,22 +37,22 @@ class BaseApi(api_client.Api): @typing.overload def _json_with_charset_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJsonCharsetutf8, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJsonCharsetutf8,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, content_type: str = 'application/json; charset=utf-8', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _json_with_charset_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJsonCharsetutf8, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJsonCharsetutf8,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, content_type: str = 'application/json; charset=utf-8', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -63,31 +63,28 @@ class BaseApi(api_client.Api): @typing.overload def _json_with_charset_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJsonCharsetutf8, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJsonCharsetutf8,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, content_type: str = 'application/json; charset=utf-8', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _json_with_charset_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJsonCharsetutf8, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - content_type: str = 'application/json; charset=utf-8', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json; charset=utf-8', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ json with charset tx and rx :param skip_deserialization: If true then api_response.response will be set but @@ -141,22 +138,22 @@ class JsonWithCharset(BaseApi): @typing.overload def json_with_charset( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJsonCharsetutf8, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJsonCharsetutf8,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, content_type: str = 'application/json; charset=utf-8', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def json_with_charset( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJsonCharsetutf8, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJsonCharsetutf8,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, content_type: str = 'application/json; charset=utf-8', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -167,31 +164,28 @@ class JsonWithCharset(BaseApi): @typing.overload def json_with_charset( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJsonCharsetutf8, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJsonCharsetutf8,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, content_type: str = 'application/json; charset=utf-8', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def json_with_charset( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJsonCharsetutf8, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - content_type: str = 'application/json; charset=utf-8', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json; charset=utf-8', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._json_with_charset_oapg( body=body, content_type=content_type, @@ -207,22 +201,22 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJsonCharsetutf8, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJsonCharsetutf8,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, content_type: str = 'application/json; charset=utf-8', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJsonCharsetutf8, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJsonCharsetutf8,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, content_type: str = 'application/json; charset=utf-8', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -233,31 +227,28 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJsonCharsetutf8, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJsonCharsetutf8,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, content_type: str = 'application/json; charset=utf-8', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJsonCharsetutf8, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - content_type: str = 'application/json; charset=utf-8', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json; charset=utf-8', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._json_with_charset_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_obj_in_query/get.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_obj_in_query/get.py index ce0464dc67d..e4f421506e4 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_obj_in_query/get.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_obj_in_query/get.py @@ -122,19 +122,19 @@ class BaseApi(api_client.Api): @typing.overload def _object_in_query_oapg( - self: api_client.Api, + self, query_params: RequestQueryParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _object_in_query_oapg( - self: api_client.Api, + self, query_params: RequestQueryParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -144,27 +144,24 @@ def _object_in_query_oapg( @typing.overload def _object_in_query_oapg( - self: api_client.Api, + self, query_params: RequestQueryParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _object_in_query_oapg( - self: api_client.Api, - query_params: RequestQueryParams = frozendict.frozendict(), - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + query_params = frozendict.frozendict(), + stream = False, + timeout = None, + skip_deserialization = False, + ): """ user list :param skip_deserialization: If true then api_response.response will be set but @@ -215,19 +212,19 @@ class ObjectInQuery(BaseApi): @typing.overload def object_in_query( - self: BaseApi, + self, query_params: RequestQueryParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def object_in_query( - self: BaseApi, + self, query_params: RequestQueryParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -237,27 +234,24 @@ def object_in_query( @typing.overload def object_in_query( - self: BaseApi, + self, query_params: RequestQueryParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def object_in_query( - self: BaseApi, - query_params: RequestQueryParams = frozendict.frozendict(), - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + query_params = frozendict.frozendict(), + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._object_in_query_oapg( query_params=query_params, stream=stream, @@ -271,19 +265,19 @@ class ApiForget(BaseApi): @typing.overload def get( - self: BaseApi, + self, query_params: RequestQueryParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def get( - self: BaseApi, + self, query_params: RequestQueryParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -293,27 +287,24 @@ def get( @typing.overload def get( - self: BaseApi, + self, query_params: RequestQueryParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def get( - self: BaseApi, - query_params: RequestQueryParams = frozendict.frozendict(), - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + query_params = frozendict.frozendict(), + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._object_in_query_oapg( query_params=query_params, stream=stream, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_obj_in_query/get.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_obj_in_query/get.pyi index 5e34c9508e4..d5a33f0a704 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_obj_in_query/get.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_obj_in_query/get.pyi @@ -81,19 +81,19 @@ class BaseApi(api_client.Api): @typing.overload def _object_in_query_oapg( - self: api_client.Api, + self, query_params: RequestQueryParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _object_in_query_oapg( - self: api_client.Api, + self, query_params: RequestQueryParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -103,27 +103,24 @@ class BaseApi(api_client.Api): @typing.overload def _object_in_query_oapg( - self: api_client.Api, + self, query_params: RequestQueryParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _object_in_query_oapg( - self: api_client.Api, - query_params: RequestQueryParams = frozendict.frozendict(), - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + query_params = frozendict.frozendict(), + stream = False, + timeout = None, + skip_deserialization = False, + ): """ user list :param skip_deserialization: If true then api_response.response will be set but @@ -174,19 +171,19 @@ class ObjectInQuery(BaseApi): @typing.overload def object_in_query( - self: BaseApi, + self, query_params: RequestQueryParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def object_in_query( - self: BaseApi, + self, query_params: RequestQueryParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -196,27 +193,24 @@ class ObjectInQuery(BaseApi): @typing.overload def object_in_query( - self: BaseApi, + self, query_params: RequestQueryParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def object_in_query( - self: BaseApi, - query_params: RequestQueryParams = frozendict.frozendict(), - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + query_params = frozendict.frozendict(), + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._object_in_query_oapg( query_params=query_params, stream=stream, @@ -230,19 +224,19 @@ class ApiForget(BaseApi): @typing.overload def get( - self: BaseApi, + self, query_params: RequestQueryParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def get( - self: BaseApi, + self, query_params: RequestQueryParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -252,27 +246,24 @@ class ApiForget(BaseApi): @typing.overload def get( - self: BaseApi, + self, query_params: RequestQueryParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def get( - self: BaseApi, - query_params: RequestQueryParams = frozendict.frozendict(), - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + query_params = frozendict.frozendict(), + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._object_in_query_oapg( query_params=query_params, stream=stream, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_parameter_collisions_1_a_b_ab_self_a_b_/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_parameter_collisions_1_a_b_ab_self_a_b_/post.py index 553684ea17e..2e524dd6b21 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_parameter_collisions_1_a_b_ab_self_a_b_/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_parameter_collisions_1_a_b_ab_self_a_b_/post.py @@ -288,8 +288,8 @@ class BaseApi(api_client.Api): @typing.overload def _parameter_collisions_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, query_params: RequestQueryParams = frozendict.frozendict(), header_params: RequestHeaderParams = frozendict.frozendict(), path_params: RequestPathParams = frozendict.frozendict(), @@ -300,14 +300,14 @@ def _parameter_collisions_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _parameter_collisions_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, query_params: RequestQueryParams = frozendict.frozendict(), header_params: RequestHeaderParams = frozendict.frozendict(), path_params: RequestPathParams = frozendict.frozendict(), @@ -322,8 +322,8 @@ def _parameter_collisions_oapg( @typing.overload def _parameter_collisions_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, query_params: RequestQueryParams = frozendict.frozendict(), header_params: RequestHeaderParams = frozendict.frozendict(), path_params: RequestPathParams = frozendict.frozendict(), @@ -334,27 +334,24 @@ def _parameter_collisions_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _parameter_collisions_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - query_params: RequestQueryParams = frozendict.frozendict(), - header_params: RequestHeaderParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - cookie_params: RequestCookieParams = frozendict.frozendict(), - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + query_params = frozendict.frozendict(), + header_params = frozendict.frozendict(), + path_params = frozendict.frozendict(), + cookie_params = frozendict.frozendict(), + content_type = 'application/json', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ parameter collision case :param skip_deserialization: If true then api_response.response will be set but @@ -457,8 +454,8 @@ class ParameterCollisions(BaseApi): @typing.overload def parameter_collisions( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, query_params: RequestQueryParams = frozendict.frozendict(), header_params: RequestHeaderParams = frozendict.frozendict(), path_params: RequestPathParams = frozendict.frozendict(), @@ -469,14 +466,14 @@ def parameter_collisions( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def parameter_collisions( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, query_params: RequestQueryParams = frozendict.frozendict(), header_params: RequestHeaderParams = frozendict.frozendict(), path_params: RequestPathParams = frozendict.frozendict(), @@ -491,8 +488,8 @@ def parameter_collisions( @typing.overload def parameter_collisions( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, query_params: RequestQueryParams = frozendict.frozendict(), header_params: RequestHeaderParams = frozendict.frozendict(), path_params: RequestPathParams = frozendict.frozendict(), @@ -503,27 +500,24 @@ def parameter_collisions( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def parameter_collisions( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - query_params: RequestQueryParams = frozendict.frozendict(), - header_params: RequestHeaderParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - cookie_params: RequestCookieParams = frozendict.frozendict(), - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + query_params = frozendict.frozendict(), + header_params = frozendict.frozendict(), + path_params = frozendict.frozendict(), + cookie_params = frozendict.frozendict(), + content_type = 'application/json', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._parameter_collisions_oapg( body=body, query_params=query_params, @@ -543,8 +537,8 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, query_params: RequestQueryParams = frozendict.frozendict(), header_params: RequestHeaderParams = frozendict.frozendict(), path_params: RequestPathParams = frozendict.frozendict(), @@ -555,14 +549,14 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, query_params: RequestQueryParams = frozendict.frozendict(), header_params: RequestHeaderParams = frozendict.frozendict(), path_params: RequestPathParams = frozendict.frozendict(), @@ -577,8 +571,8 @@ def post( @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, query_params: RequestQueryParams = frozendict.frozendict(), header_params: RequestHeaderParams = frozendict.frozendict(), path_params: RequestPathParams = frozendict.frozendict(), @@ -589,27 +583,24 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - query_params: RequestQueryParams = frozendict.frozendict(), - header_params: RequestHeaderParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - cookie_params: RequestCookieParams = frozendict.frozendict(), - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + query_params = frozendict.frozendict(), + header_params = frozendict.frozendict(), + path_params = frozendict.frozendict(), + cookie_params = frozendict.frozendict(), + content_type = 'application/json', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._parameter_collisions_oapg( body=body, query_params=query_params, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_parameter_collisions_1_a_b_ab_self_a_b_/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_parameter_collisions_1_a_b_ab_self_a_b_/post.pyi index f90fcbaca5f..2f552e3d589 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_parameter_collisions_1_a_b_ab_self_a_b_/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_parameter_collisions_1_a_b_ab_self_a_b_/post.pyi @@ -60,8 +60,8 @@ class BaseApi(api_client.Api): @typing.overload def _parameter_collisions_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, query_params: RequestQueryParams = frozendict.frozendict(), header_params: RequestHeaderParams = frozendict.frozendict(), path_params: RequestPathParams = frozendict.frozendict(), @@ -72,14 +72,14 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _parameter_collisions_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, query_params: RequestQueryParams = frozendict.frozendict(), header_params: RequestHeaderParams = frozendict.frozendict(), path_params: RequestPathParams = frozendict.frozendict(), @@ -94,8 +94,8 @@ class BaseApi(api_client.Api): @typing.overload def _parameter_collisions_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, query_params: RequestQueryParams = frozendict.frozendict(), header_params: RequestHeaderParams = frozendict.frozendict(), path_params: RequestPathParams = frozendict.frozendict(), @@ -106,27 +106,24 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _parameter_collisions_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - query_params: RequestQueryParams = frozendict.frozendict(), - header_params: RequestHeaderParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - cookie_params: RequestCookieParams = frozendict.frozendict(), - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + query_params = frozendict.frozendict(), + header_params = frozendict.frozendict(), + path_params = frozendict.frozendict(), + cookie_params = frozendict.frozendict(), + content_type = 'application/json', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ parameter collision case :param skip_deserialization: If true then api_response.response will be set but @@ -229,8 +226,8 @@ class ParameterCollisions(BaseApi): @typing.overload def parameter_collisions( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, query_params: RequestQueryParams = frozendict.frozendict(), header_params: RequestHeaderParams = frozendict.frozendict(), path_params: RequestPathParams = frozendict.frozendict(), @@ -241,14 +238,14 @@ class ParameterCollisions(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def parameter_collisions( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, query_params: RequestQueryParams = frozendict.frozendict(), header_params: RequestHeaderParams = frozendict.frozendict(), path_params: RequestPathParams = frozendict.frozendict(), @@ -263,8 +260,8 @@ class ParameterCollisions(BaseApi): @typing.overload def parameter_collisions( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, query_params: RequestQueryParams = frozendict.frozendict(), header_params: RequestHeaderParams = frozendict.frozendict(), path_params: RequestPathParams = frozendict.frozendict(), @@ -275,27 +272,24 @@ class ParameterCollisions(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def parameter_collisions( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - query_params: RequestQueryParams = frozendict.frozendict(), - header_params: RequestHeaderParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - cookie_params: RequestCookieParams = frozendict.frozendict(), - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + query_params = frozendict.frozendict(), + header_params = frozendict.frozendict(), + path_params = frozendict.frozendict(), + cookie_params = frozendict.frozendict(), + content_type = 'application/json', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._parameter_collisions_oapg( body=body, query_params=query_params, @@ -315,8 +309,8 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, query_params: RequestQueryParams = frozendict.frozendict(), header_params: RequestHeaderParams = frozendict.frozendict(), path_params: RequestPathParams = frozendict.frozendict(), @@ -327,14 +321,14 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, query_params: RequestQueryParams = frozendict.frozendict(), header_params: RequestHeaderParams = frozendict.frozendict(), path_params: RequestPathParams = frozendict.frozendict(), @@ -349,8 +343,8 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, query_params: RequestQueryParams = frozendict.frozendict(), header_params: RequestHeaderParams = frozendict.frozendict(), path_params: RequestPathParams = frozendict.frozendict(), @@ -361,27 +355,24 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, - query_params: RequestQueryParams = frozendict.frozendict(), - header_params: RequestHeaderParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - cookie_params: RequestCookieParams = frozendict.frozendict(), - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + query_params = frozendict.frozendict(), + header_params = frozendict.frozendict(), + path_params = frozendict.frozendict(), + cookie_params = frozendict.frozendict(), + content_type = 'application/json', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._parameter_collisions_oapg( body=body, query_params=query_params, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_pet_id_upload_image_with_required_file/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_pet_id_upload_image_with_required_file/post.py index 2c9562ceb49..cdb743b4f10 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_pet_id_upload_image_with_required_file/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_pet_id_upload_image_with_required_file/post.py @@ -163,8 +163,8 @@ class BaseApi(api_client.Api): @typing.overload def _upload_file_with_required_file_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, path_params: RequestPathParams = frozendict.frozendict(), content_type: str = 'multipart/form-data', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -172,14 +172,14 @@ def _upload_file_with_required_file_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _upload_file_with_required_file_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, path_params: RequestPathParams = frozendict.frozendict(), content_type: str = 'multipart/form-data', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -191,8 +191,8 @@ def _upload_file_with_required_file_oapg( @typing.overload def _upload_file_with_required_file_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, path_params: RequestPathParams = frozendict.frozendict(), content_type: str = 'multipart/form-data', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -200,24 +200,21 @@ def _upload_file_with_required_file_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _upload_file_with_required_file_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - path_params: RequestPathParams = frozendict.frozendict(), - content_type: str = 'multipart/form-data', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + path_params = frozendict.frozendict(), + content_type = 'multipart/form-data', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ uploads an image (required) :param skip_deserialization: If true then api_response.response will be set but @@ -286,8 +283,8 @@ class UploadFileWithRequiredFile(BaseApi): @typing.overload def upload_file_with_required_file( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, path_params: RequestPathParams = frozendict.frozendict(), content_type: str = 'multipart/form-data', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -295,14 +292,14 @@ def upload_file_with_required_file( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def upload_file_with_required_file( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, path_params: RequestPathParams = frozendict.frozendict(), content_type: str = 'multipart/form-data', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -314,8 +311,8 @@ def upload_file_with_required_file( @typing.overload def upload_file_with_required_file( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, path_params: RequestPathParams = frozendict.frozendict(), content_type: str = 'multipart/form-data', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -323,24 +320,21 @@ def upload_file_with_required_file( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def upload_file_with_required_file( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - path_params: RequestPathParams = frozendict.frozendict(), - content_type: str = 'multipart/form-data', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + path_params = frozendict.frozendict(), + content_type = 'multipart/form-data', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._upload_file_with_required_file_oapg( body=body, path_params=path_params, @@ -357,8 +351,8 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, path_params: RequestPathParams = frozendict.frozendict(), content_type: str = 'multipart/form-data', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -366,14 +360,14 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, path_params: RequestPathParams = frozendict.frozendict(), content_type: str = 'multipart/form-data', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -385,8 +379,8 @@ def post( @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, path_params: RequestPathParams = frozendict.frozendict(), content_type: str = 'multipart/form-data', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -394,24 +388,21 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - path_params: RequestPathParams = frozendict.frozendict(), - content_type: str = 'multipart/form-data', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + path_params = frozendict.frozendict(), + content_type = 'multipart/form-data', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._upload_file_with_required_file_oapg( body=body, path_params=path_params, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_pet_id_upload_image_with_required_file/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_pet_id_upload_image_with_required_file/post.pyi index b701716fb48..e09c9fcb60c 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_pet_id_upload_image_with_required_file/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_pet_id_upload_image_with_required_file/post.pyi @@ -105,8 +105,8 @@ class BaseApi(api_client.Api): @typing.overload def _upload_file_with_required_file_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, path_params: RequestPathParams = frozendict.frozendict(), content_type: str = 'multipart/form-data', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -114,14 +114,14 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _upload_file_with_required_file_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, path_params: RequestPathParams = frozendict.frozendict(), content_type: str = 'multipart/form-data', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -133,8 +133,8 @@ class BaseApi(api_client.Api): @typing.overload def _upload_file_with_required_file_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, path_params: RequestPathParams = frozendict.frozendict(), content_type: str = 'multipart/form-data', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -142,24 +142,21 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _upload_file_with_required_file_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - path_params: RequestPathParams = frozendict.frozendict(), - content_type: str = 'multipart/form-data', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + path_params = frozendict.frozendict(), + content_type = 'multipart/form-data', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ uploads an image (required) :param skip_deserialization: If true then api_response.response will be set but @@ -228,8 +225,8 @@ class UploadFileWithRequiredFile(BaseApi): @typing.overload def upload_file_with_required_file( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, path_params: RequestPathParams = frozendict.frozendict(), content_type: str = 'multipart/form-data', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -237,14 +234,14 @@ class UploadFileWithRequiredFile(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def upload_file_with_required_file( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, path_params: RequestPathParams = frozendict.frozendict(), content_type: str = 'multipart/form-data', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -256,8 +253,8 @@ class UploadFileWithRequiredFile(BaseApi): @typing.overload def upload_file_with_required_file( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, path_params: RequestPathParams = frozendict.frozendict(), content_type: str = 'multipart/form-data', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -265,24 +262,21 @@ class UploadFileWithRequiredFile(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def upload_file_with_required_file( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - path_params: RequestPathParams = frozendict.frozendict(), - content_type: str = 'multipart/form-data', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + path_params = frozendict.frozendict(), + content_type = 'multipart/form-data', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._upload_file_with_required_file_oapg( body=body, path_params=path_params, @@ -299,8 +293,8 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, path_params: RequestPathParams = frozendict.frozendict(), content_type: str = 'multipart/form-data', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -308,14 +302,14 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, path_params: RequestPathParams = frozendict.frozendict(), content_type: str = 'multipart/form-data', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -327,8 +321,8 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, path_params: RequestPathParams = frozendict.frozendict(), content_type: str = 'multipart/form-data', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -336,24 +330,21 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - path_params: RequestPathParams = frozendict.frozendict(), - content_type: str = 'multipart/form-data', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + path_params = frozendict.frozendict(), + content_type = 'multipart/form-data', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._upload_file_with_required_file_oapg( body=body, path_params=path_params, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_ref_obj_in_query/get.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_ref_obj_in_query/get.py index 1cbe5cb089d..059181e9756 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_ref_obj_in_query/get.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_ref_obj_in_query/get.py @@ -75,19 +75,19 @@ class BaseApi(api_client.Api): @typing.overload def _ref_object_in_query_oapg( - self: api_client.Api, + self, query_params: RequestQueryParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _ref_object_in_query_oapg( - self: api_client.Api, + self, query_params: RequestQueryParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -97,27 +97,24 @@ def _ref_object_in_query_oapg( @typing.overload def _ref_object_in_query_oapg( - self: api_client.Api, + self, query_params: RequestQueryParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _ref_object_in_query_oapg( - self: api_client.Api, - query_params: RequestQueryParams = frozendict.frozendict(), - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + query_params = frozendict.frozendict(), + stream = False, + timeout = None, + skip_deserialization = False, + ): """ user list :param skip_deserialization: If true then api_response.response will be set but @@ -168,19 +165,19 @@ class RefObjectInQuery(BaseApi): @typing.overload def ref_object_in_query( - self: BaseApi, + self, query_params: RequestQueryParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def ref_object_in_query( - self: BaseApi, + self, query_params: RequestQueryParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -190,27 +187,24 @@ def ref_object_in_query( @typing.overload def ref_object_in_query( - self: BaseApi, + self, query_params: RequestQueryParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def ref_object_in_query( - self: BaseApi, - query_params: RequestQueryParams = frozendict.frozendict(), - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + query_params = frozendict.frozendict(), + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._ref_object_in_query_oapg( query_params=query_params, stream=stream, @@ -224,19 +218,19 @@ class ApiForget(BaseApi): @typing.overload def get( - self: BaseApi, + self, query_params: RequestQueryParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def get( - self: BaseApi, + self, query_params: RequestQueryParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -246,27 +240,24 @@ def get( @typing.overload def get( - self: BaseApi, + self, query_params: RequestQueryParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def get( - self: BaseApi, - query_params: RequestQueryParams = frozendict.frozendict(), - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + query_params = frozendict.frozendict(), + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._ref_object_in_query_oapg( query_params=query_params, stream=stream, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_ref_obj_in_query/get.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_ref_obj_in_query/get.pyi index 009be8dc88d..56bc113cc20 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_ref_obj_in_query/get.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_ref_obj_in_query/get.pyi @@ -34,19 +34,19 @@ class BaseApi(api_client.Api): @typing.overload def _ref_object_in_query_oapg( - self: api_client.Api, + self, query_params: RequestQueryParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _ref_object_in_query_oapg( - self: api_client.Api, + self, query_params: RequestQueryParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -56,27 +56,24 @@ class BaseApi(api_client.Api): @typing.overload def _ref_object_in_query_oapg( - self: api_client.Api, + self, query_params: RequestQueryParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _ref_object_in_query_oapg( - self: api_client.Api, - query_params: RequestQueryParams = frozendict.frozendict(), - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + query_params = frozendict.frozendict(), + stream = False, + timeout = None, + skip_deserialization = False, + ): """ user list :param skip_deserialization: If true then api_response.response will be set but @@ -127,19 +124,19 @@ class RefObjectInQuery(BaseApi): @typing.overload def ref_object_in_query( - self: BaseApi, + self, query_params: RequestQueryParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def ref_object_in_query( - self: BaseApi, + self, query_params: RequestQueryParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -149,27 +146,24 @@ class RefObjectInQuery(BaseApi): @typing.overload def ref_object_in_query( - self: BaseApi, + self, query_params: RequestQueryParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def ref_object_in_query( - self: BaseApi, - query_params: RequestQueryParams = frozendict.frozendict(), - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + query_params = frozendict.frozendict(), + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._ref_object_in_query_oapg( query_params=query_params, stream=stream, @@ -183,19 +177,19 @@ class ApiForget(BaseApi): @typing.overload def get( - self: BaseApi, + self, query_params: RequestQueryParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def get( - self: BaseApi, + self, query_params: RequestQueryParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -205,27 +199,24 @@ class ApiForget(BaseApi): @typing.overload def get( - self: BaseApi, + self, query_params: RequestQueryParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def get( - self: BaseApi, - query_params: RequestQueryParams = frozendict.frozendict(), - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + query_params = frozendict.frozendict(), + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._ref_object_in_query_oapg( query_params=query_params, stream=stream, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_array_of_enums/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_array_of_enums/post.py index ba0a8900d91..5a3390698fc 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_array_of_enums/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_array_of_enums/post.py @@ -70,22 +70,22 @@ class BaseApi(api_client.Api): @typing.overload def _array_of_enums_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _array_of_enums_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -96,31 +96,28 @@ def _array_of_enums_oapg( @typing.overload def _array_of_enums_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _array_of_enums_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ Array of Enums :param skip_deserialization: If true then api_response.response will be set but @@ -174,22 +171,22 @@ class ArrayOfEnums(BaseApi): @typing.overload def array_of_enums( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def array_of_enums( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -200,31 +197,28 @@ def array_of_enums( @typing.overload def array_of_enums( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def array_of_enums( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._array_of_enums_oapg( body=body, content_type=content_type, @@ -240,22 +234,22 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -266,31 +260,28 @@ def post( @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._array_of_enums_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_array_of_enums/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_array_of_enums/post.pyi index 653d98e9489..bdc82add7cc 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_array_of_enums/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_array_of_enums/post.pyi @@ -39,22 +39,22 @@ class BaseApi(api_client.Api): @typing.overload def _array_of_enums_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _array_of_enums_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -65,31 +65,28 @@ class BaseApi(api_client.Api): @typing.overload def _array_of_enums_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _array_of_enums_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ Array of Enums :param skip_deserialization: If true then api_response.response will be set but @@ -143,22 +140,22 @@ class ArrayOfEnums(BaseApi): @typing.overload def array_of_enums( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def array_of_enums( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -169,31 +166,28 @@ class ArrayOfEnums(BaseApi): @typing.overload def array_of_enums( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def array_of_enums( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._array_of_enums_oapg( body=body, content_type=content_type, @@ -209,22 +203,22 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -235,31 +229,28 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._array_of_enums_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_arraymodel/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_arraymodel/post.py index c62d2aa6b6a..50ddcec3290 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_arraymodel/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_arraymodel/post.py @@ -70,22 +70,22 @@ class BaseApi(api_client.Api): @typing.overload def _array_model_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _array_model_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -96,31 +96,28 @@ def _array_model_oapg( @typing.overload def _array_model_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _array_model_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -173,22 +170,22 @@ class ArrayModel(BaseApi): @typing.overload def array_model( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def array_model( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -199,31 +196,28 @@ def array_model( @typing.overload def array_model( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def array_model( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._array_model_oapg( body=body, content_type=content_type, @@ -239,22 +233,22 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -265,31 +259,28 @@ def post( @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._array_model_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_arraymodel/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_arraymodel/post.pyi index c85afbb8bca..c8edcc70421 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_arraymodel/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_arraymodel/post.pyi @@ -39,22 +39,22 @@ class BaseApi(api_client.Api): @typing.overload def _array_model_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _array_model_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -65,31 +65,28 @@ class BaseApi(api_client.Api): @typing.overload def _array_model_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _array_model_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -142,22 +139,22 @@ class ArrayModel(BaseApi): @typing.overload def array_model( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def array_model( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -168,31 +165,28 @@ class ArrayModel(BaseApi): @typing.overload def array_model( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def array_model( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._array_model_oapg( body=body, content_type=content_type, @@ -208,22 +202,22 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -234,31 +228,28 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._array_model_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_boolean/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_boolean/post.py index 0edab28fc3d..fac52ed69aa 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_boolean/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_boolean/post.py @@ -68,22 +68,22 @@ class BaseApi(api_client.Api): @typing.overload def _boolean_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, bool, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,bool, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _boolean_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, bool, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,bool, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -94,31 +94,28 @@ def _boolean_oapg( @typing.overload def _boolean_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, bool, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,bool, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _boolean_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, bool, schemas.Unset] = schemas.unset, - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -171,22 +168,22 @@ class Boolean(BaseApi): @typing.overload def boolean( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, bool, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,bool, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def boolean( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, bool, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,bool, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -197,31 +194,28 @@ def boolean( @typing.overload def boolean( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, bool, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,bool, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def boolean( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, bool, schemas.Unset] = schemas.unset, - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._boolean_oapg( body=body, content_type=content_type, @@ -237,22 +231,22 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, bool, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,bool, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, bool, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,bool, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -263,31 +257,28 @@ def post( @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, bool, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,bool, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, bool, schemas.Unset] = schemas.unset, - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._boolean_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_boolean/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_boolean/post.pyi index e975f18223c..4499f018e71 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_boolean/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_boolean/post.pyi @@ -37,22 +37,22 @@ class BaseApi(api_client.Api): @typing.overload def _boolean_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, bool, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,bool, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _boolean_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, bool, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,bool, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -63,31 +63,28 @@ class BaseApi(api_client.Api): @typing.overload def _boolean_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, bool, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,bool, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _boolean_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, bool, schemas.Unset] = schemas.unset, - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -140,22 +137,22 @@ class Boolean(BaseApi): @typing.overload def boolean( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, bool, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,bool, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def boolean( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, bool, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,bool, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -166,31 +163,28 @@ class Boolean(BaseApi): @typing.overload def boolean( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, bool, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,bool, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def boolean( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, bool, schemas.Unset] = schemas.unset, - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._boolean_oapg( body=body, content_type=content_type, @@ -206,22 +200,22 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, bool, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,bool, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, bool, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,bool, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -232,31 +226,28 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, bool, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,bool, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, bool, schemas.Unset] = schemas.unset, - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._boolean_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_composed_one_of_number_with_validations/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_composed_one_of_number_with_validations/post.py index e5451faa85b..9a2664fa2c0 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_composed_one_of_number_with_validations/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_composed_one_of_number_with_validations/post.py @@ -70,22 +70,22 @@ class BaseApi(api_client.Api): @typing.overload def _composed_one_of_different_types_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _composed_one_of_different_types_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -96,31 +96,28 @@ def _composed_one_of_different_types_oapg( @typing.overload def _composed_one_of_different_types_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _composed_one_of_different_types_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -173,22 +170,22 @@ class ComposedOneOfDifferentTypes(BaseApi): @typing.overload def composed_one_of_different_types( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def composed_one_of_different_types( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -199,31 +196,28 @@ def composed_one_of_different_types( @typing.overload def composed_one_of_different_types( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def composed_one_of_different_types( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._composed_one_of_different_types_oapg( body=body, content_type=content_type, @@ -239,22 +233,22 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -265,31 +259,28 @@ def post( @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._composed_one_of_different_types_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_composed_one_of_number_with_validations/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_composed_one_of_number_with_validations/post.pyi index a9df5f6e5d1..7248daddb1e 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_composed_one_of_number_with_validations/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_composed_one_of_number_with_validations/post.pyi @@ -39,22 +39,22 @@ class BaseApi(api_client.Api): @typing.overload def _composed_one_of_different_types_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _composed_one_of_different_types_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -65,31 +65,28 @@ class BaseApi(api_client.Api): @typing.overload def _composed_one_of_different_types_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _composed_one_of_different_types_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -142,22 +139,22 @@ class ComposedOneOfDifferentTypes(BaseApi): @typing.overload def composed_one_of_different_types( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def composed_one_of_different_types( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -168,31 +165,28 @@ class ComposedOneOfDifferentTypes(BaseApi): @typing.overload def composed_one_of_different_types( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def composed_one_of_different_types( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._composed_one_of_different_types_oapg( body=body, content_type=content_type, @@ -208,22 +202,22 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -234,31 +228,28 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._composed_one_of_different_types_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_enum/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_enum/post.py index 4fc07c993f2..6fc71e4fa5b 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_enum/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_enum/post.py @@ -70,22 +70,22 @@ class BaseApi(api_client.Api): @typing.overload def _string_enum_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _string_enum_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -96,31 +96,28 @@ def _string_enum_oapg( @typing.overload def _string_enum_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _string_enum_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -173,22 +170,22 @@ class StringEnum(BaseApi): @typing.overload def string_enum( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def string_enum( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -199,31 +196,28 @@ def string_enum( @typing.overload def string_enum( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def string_enum( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._string_enum_oapg( body=body, content_type=content_type, @@ -239,22 +233,22 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -265,31 +259,28 @@ def post( @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._string_enum_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_enum/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_enum/post.pyi index 19866c671df..1f8257d2b85 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_enum/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_enum/post.pyi @@ -39,22 +39,22 @@ class BaseApi(api_client.Api): @typing.overload def _string_enum_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _string_enum_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -65,31 +65,28 @@ class BaseApi(api_client.Api): @typing.overload def _string_enum_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _string_enum_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -142,22 +139,22 @@ class StringEnum(BaseApi): @typing.overload def string_enum( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def string_enum( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -168,31 +165,28 @@ class StringEnum(BaseApi): @typing.overload def string_enum( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def string_enum( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._string_enum_oapg( body=body, content_type=content_type, @@ -208,22 +202,22 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -234,31 +228,28 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._string_enum_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_mammal/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_mammal/post.py index 06f9ed50b21..f3d7804eaa0 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_mammal/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_mammal/post.py @@ -71,22 +71,22 @@ class BaseApi(api_client.Api): @typing.overload def _mammal_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _mammal_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -97,31 +97,28 @@ def _mammal_oapg( @typing.overload def _mammal_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _mammal_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -176,22 +173,22 @@ class Mammal(BaseApi): @typing.overload def mammal( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def mammal( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -202,31 +199,28 @@ def mammal( @typing.overload def mammal( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def mammal( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._mammal_oapg( body=body, content_type=content_type, @@ -242,22 +236,22 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -268,31 +262,28 @@ def post( @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._mammal_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_mammal/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_mammal/post.pyi index d60f538efb1..01341850eac 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_mammal/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_mammal/post.pyi @@ -39,22 +39,22 @@ class BaseApi(api_client.Api): @typing.overload def _mammal_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _mammal_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -65,31 +65,28 @@ class BaseApi(api_client.Api): @typing.overload def _mammal_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _mammal_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,22 +141,22 @@ class Mammal(BaseApi): @typing.overload def mammal( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def mammal( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -170,31 +167,28 @@ class Mammal(BaseApi): @typing.overload def mammal( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def mammal( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._mammal_oapg( body=body, content_type=content_type, @@ -210,22 +204,22 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -236,31 +230,28 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._mammal_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_number/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_number/post.py index 7e3b753bf2b..bb40517b3ef 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_number/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_number/post.py @@ -70,22 +70,22 @@ class BaseApi(api_client.Api): @typing.overload def _number_with_validations_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _number_with_validations_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -96,31 +96,28 @@ def _number_with_validations_oapg( @typing.overload def _number_with_validations_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _number_with_validations_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -173,22 +170,22 @@ class NumberWithValidations(BaseApi): @typing.overload def number_with_validations( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def number_with_validations( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -199,31 +196,28 @@ def number_with_validations( @typing.overload def number_with_validations( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def number_with_validations( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._number_with_validations_oapg( body=body, content_type=content_type, @@ -239,22 +233,22 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -265,31 +259,28 @@ def post( @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._number_with_validations_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_number/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_number/post.pyi index 69586476c0b..c51777413ee 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_number/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_number/post.pyi @@ -39,22 +39,22 @@ class BaseApi(api_client.Api): @typing.overload def _number_with_validations_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _number_with_validations_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -65,31 +65,28 @@ class BaseApi(api_client.Api): @typing.overload def _number_with_validations_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _number_with_validations_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -142,22 +139,22 @@ class NumberWithValidations(BaseApi): @typing.overload def number_with_validations( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def number_with_validations( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -168,31 +165,28 @@ class NumberWithValidations(BaseApi): @typing.overload def number_with_validations( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def number_with_validations( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._number_with_validations_oapg( body=body, content_type=content_type, @@ -208,22 +202,22 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -234,31 +228,28 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._number_with_validations_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_object_model_with_ref_props/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_object_model_with_ref_props/post.py index 39fe1627444..fa55d76f3d5 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_object_model_with_ref_props/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_object_model_with_ref_props/post.py @@ -70,22 +70,22 @@ class BaseApi(api_client.Api): @typing.overload def _object_model_with_ref_props_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _object_model_with_ref_props_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -96,31 +96,28 @@ def _object_model_with_ref_props_oapg( @typing.overload def _object_model_with_ref_props_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _object_model_with_ref_props_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -173,22 +170,22 @@ class ObjectModelWithRefProps(BaseApi): @typing.overload def object_model_with_ref_props( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def object_model_with_ref_props( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -199,31 +196,28 @@ def object_model_with_ref_props( @typing.overload def object_model_with_ref_props( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def object_model_with_ref_props( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._object_model_with_ref_props_oapg( body=body, content_type=content_type, @@ -239,22 +233,22 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -265,31 +259,28 @@ def post( @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._object_model_with_ref_props_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_object_model_with_ref_props/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_object_model_with_ref_props/post.pyi index 09735f8c8f6..32ca78067c0 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_object_model_with_ref_props/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_object_model_with_ref_props/post.pyi @@ -39,22 +39,22 @@ class BaseApi(api_client.Api): @typing.overload def _object_model_with_ref_props_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _object_model_with_ref_props_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -65,31 +65,28 @@ class BaseApi(api_client.Api): @typing.overload def _object_model_with_ref_props_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _object_model_with_ref_props_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -142,22 +139,22 @@ class ObjectModelWithRefProps(BaseApi): @typing.overload def object_model_with_ref_props( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def object_model_with_ref_props( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -168,31 +165,28 @@ class ObjectModelWithRefProps(BaseApi): @typing.overload def object_model_with_ref_props( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def object_model_with_ref_props( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._object_model_with_ref_props_oapg( body=body, content_type=content_type, @@ -208,22 +202,22 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -234,31 +228,28 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, schemas.Unset] = schemas.unset, - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._object_model_with_ref_props_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_string/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_string/post.py index e7a457b9b8e..d2eea2d6b7d 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_string/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_string/post.py @@ -68,22 +68,22 @@ class BaseApi(api_client.Api): @typing.overload def _string_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, str, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,str, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _string_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, str, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,str, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -94,31 +94,28 @@ def _string_oapg( @typing.overload def _string_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, str, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,str, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _string_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, str, schemas.Unset] = schemas.unset, - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -171,22 +168,22 @@ class String(BaseApi): @typing.overload def string( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, str, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,str, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def string( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, str, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,str, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -197,31 +194,28 @@ def string( @typing.overload def string( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, str, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,str, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def string( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, str, schemas.Unset] = schemas.unset, - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._string_oapg( body=body, content_type=content_type, @@ -237,22 +231,22 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, str, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,str, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, str, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,str, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -263,31 +257,28 @@ def post( @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, str, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,str, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, str, schemas.Unset] = schemas.unset, - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._string_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_string/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_string/post.pyi index fe90c24dd8d..f3f2db21caa 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_string/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_string/post.pyi @@ -37,22 +37,22 @@ class BaseApi(api_client.Api): @typing.overload def _string_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, str, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,str, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _string_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, str, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,str, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -63,31 +63,28 @@ class BaseApi(api_client.Api): @typing.overload def _string_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, str, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,str, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _string_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, str, schemas.Unset] = schemas.unset, - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -140,22 +137,22 @@ class String(BaseApi): @typing.overload def string( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, str, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,str, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def string( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, str, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,str, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -166,31 +163,28 @@ class String(BaseApi): @typing.overload def string( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, str, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,str, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def string( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, str, schemas.Unset] = schemas.unset, - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._string_oapg( body=body, content_type=content_type, @@ -206,22 +200,22 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, str, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,str, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, str, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,str, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -232,31 +226,28 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, str, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,str, schemas.Unset] = schemas.unset, content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, str, schemas.Unset] = schemas.unset, - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._string_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_response_without_schema/get.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_response_without_schema/get.py index 14aaa153f4b..eea8e78da68 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_response_without_schema/get.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_response_without_schema/get.py @@ -59,19 +59,19 @@ class BaseApi(api_client.Api): @typing.overload def _response_without_schema_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _response_without_schema_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -81,27 +81,24 @@ def _response_without_schema_oapg( @typing.overload def _response_without_schema_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _response_without_schema_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ receives a response without schema :param skip_deserialization: If true then api_response.response will be set but @@ -144,19 +141,19 @@ class ResponseWithoutSchema(BaseApi): @typing.overload def response_without_schema( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def response_without_schema( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -166,27 +163,24 @@ def response_without_schema( @typing.overload def response_without_schema( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def response_without_schema( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._response_without_schema_oapg( accept_content_types=accept_content_types, stream=stream, @@ -200,19 +194,19 @@ class ApiForget(BaseApi): @typing.overload def get( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def get( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -222,27 +216,24 @@ def get( @typing.overload def get( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def get( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._response_without_schema_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_response_without_schema/get.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_response_without_schema/get.pyi index 057659f13d7..f040d74253f 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_response_without_schema/get.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_response_without_schema/get.pyi @@ -35,19 +35,19 @@ class BaseApi(api_client.Api): @typing.overload def _response_without_schema_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _response_without_schema_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -57,27 +57,24 @@ class BaseApi(api_client.Api): @typing.overload def _response_without_schema_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _response_without_schema_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ receives a response without schema :param skip_deserialization: If true then api_response.response will be set but @@ -120,19 +117,19 @@ class ResponseWithoutSchema(BaseApi): @typing.overload def response_without_schema( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def response_without_schema( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -142,27 +139,24 @@ class ResponseWithoutSchema(BaseApi): @typing.overload def response_without_schema( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def response_without_schema( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._response_without_schema_oapg( accept_content_types=accept_content_types, stream=stream, @@ -176,19 +170,19 @@ class ApiForget(BaseApi): @typing.overload def get( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def get( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -198,27 +192,24 @@ class ApiForget(BaseApi): @typing.overload def get( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def get( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._response_without_schema_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_test_query_paramters/put.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_test_query_paramters/put.py index 61b342d03f3..092ad736dc5 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_test_query_paramters/put.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_test_query_paramters/put.py @@ -228,19 +228,19 @@ class BaseApi(api_client.Api): @typing.overload def _query_parameter_collection_format_oapg( - self: api_client.Api, + self, query_params: RequestQueryParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _query_parameter_collection_format_oapg( - self: api_client.Api, + self, query_params: RequestQueryParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -250,27 +250,24 @@ def _query_parameter_collection_format_oapg( @typing.overload def _query_parameter_collection_format_oapg( - self: api_client.Api, + self, query_params: RequestQueryParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _query_parameter_collection_format_oapg( - self: api_client.Api, - query_params: RequestQueryParams = frozendict.frozendict(), - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + query_params = frozendict.frozendict(), + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -325,19 +322,19 @@ class QueryParameterCollectionFormat(BaseApi): @typing.overload def query_parameter_collection_format( - self: BaseApi, + self, query_params: RequestQueryParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def query_parameter_collection_format( - self: BaseApi, + self, query_params: RequestQueryParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -347,27 +344,24 @@ def query_parameter_collection_format( @typing.overload def query_parameter_collection_format( - self: BaseApi, + self, query_params: RequestQueryParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def query_parameter_collection_format( - self: BaseApi, - query_params: RequestQueryParams = frozendict.frozendict(), - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + query_params = frozendict.frozendict(), + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._query_parameter_collection_format_oapg( query_params=query_params, stream=stream, @@ -381,19 +375,19 @@ class ApiForput(BaseApi): @typing.overload def put( - self: BaseApi, + self, query_params: RequestQueryParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def put( - self: BaseApi, + self, query_params: RequestQueryParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -403,27 +397,24 @@ def put( @typing.overload def put( - self: BaseApi, + self, query_params: RequestQueryParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def put( - self: BaseApi, - query_params: RequestQueryParams = frozendict.frozendict(), - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + query_params = frozendict.frozendict(), + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._query_parameter_collection_format_oapg( query_params=query_params, stream=stream, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_test_query_paramters/put.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_test_query_paramters/put.pyi index d90845a9c8d..2b531b5a5b7 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_test_query_paramters/put.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_test_query_paramters/put.pyi @@ -149,19 +149,19 @@ class BaseApi(api_client.Api): @typing.overload def _query_parameter_collection_format_oapg( - self: api_client.Api, + self, query_params: RequestQueryParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _query_parameter_collection_format_oapg( - self: api_client.Api, + self, query_params: RequestQueryParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -171,27 +171,24 @@ class BaseApi(api_client.Api): @typing.overload def _query_parameter_collection_format_oapg( - self: api_client.Api, + self, query_params: RequestQueryParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _query_parameter_collection_format_oapg( - self: api_client.Api, - query_params: RequestQueryParams = frozendict.frozendict(), - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + query_params = frozendict.frozendict(), + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -246,19 +243,19 @@ class QueryParameterCollectionFormat(BaseApi): @typing.overload def query_parameter_collection_format( - self: BaseApi, + self, query_params: RequestQueryParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def query_parameter_collection_format( - self: BaseApi, + self, query_params: RequestQueryParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -268,27 +265,24 @@ class QueryParameterCollectionFormat(BaseApi): @typing.overload def query_parameter_collection_format( - self: BaseApi, + self, query_params: RequestQueryParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def query_parameter_collection_format( - self: BaseApi, - query_params: RequestQueryParams = frozendict.frozendict(), - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + query_params = frozendict.frozendict(), + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._query_parameter_collection_format_oapg( query_params=query_params, stream=stream, @@ -302,19 +296,19 @@ class ApiForput(BaseApi): @typing.overload def put( - self: BaseApi, + self, query_params: RequestQueryParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def put( - self: BaseApi, + self, query_params: RequestQueryParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -324,27 +318,24 @@ class ApiForput(BaseApi): @typing.overload def put( - self: BaseApi, + self, query_params: RequestQueryParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def put( - self: BaseApi, - query_params: RequestQueryParams = frozendict.frozendict(), - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + query_params = frozendict.frozendict(), + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._query_parameter_collection_format_oapg( query_params=query_params, stream=stream, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_download_file/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_download_file/post.py index 19f787279ab..2a2dcd1111a 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_download_file/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_download_file/post.py @@ -69,22 +69,22 @@ class BaseApi(api_client.Api): @typing.overload def _upload_download_file_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationOctetStream, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationOctetStream,bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/octet-stream', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _upload_download_file_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationOctetStream, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationOctetStream,bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/octet-stream', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -95,31 +95,28 @@ def _upload_download_file_oapg( @typing.overload def _upload_download_file_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationOctetStream, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationOctetStream,bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/octet-stream', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _upload_download_file_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationOctetStream, bytes, io.FileIO, io.BufferedReader, ], - content_type: str = 'application/octet-stream', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/octet-stream', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ uploads a file and downloads a file using application/octet-stream :param skip_deserialization: If true then api_response.response will be set but @@ -175,22 +172,22 @@ class UploadDownloadFile(BaseApi): @typing.overload def upload_download_file( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationOctetStream, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationOctetStream,bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/octet-stream', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def upload_download_file( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationOctetStream, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationOctetStream,bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/octet-stream', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -201,31 +198,28 @@ def upload_download_file( @typing.overload def upload_download_file( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationOctetStream, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationOctetStream,bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/octet-stream', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def upload_download_file( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationOctetStream, bytes, io.FileIO, io.BufferedReader, ], - content_type: str = 'application/octet-stream', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/octet-stream', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._upload_download_file_oapg( body=body, content_type=content_type, @@ -241,22 +235,22 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationOctetStream, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationOctetStream,bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/octet-stream', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationOctetStream, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationOctetStream,bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/octet-stream', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -267,31 +261,28 @@ def post( @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationOctetStream, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationOctetStream,bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/octet-stream', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationOctetStream, bytes, io.FileIO, io.BufferedReader, ], - content_type: str = 'application/octet-stream', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/octet-stream', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._upload_download_file_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_download_file/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_download_file/post.pyi index 5f4e4e727cb..dd99a85c360 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_download_file/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_download_file/post.pyi @@ -37,22 +37,22 @@ class BaseApi(api_client.Api): @typing.overload def _upload_download_file_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationOctetStream, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationOctetStream,bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/octet-stream', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _upload_download_file_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationOctetStream, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationOctetStream,bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/octet-stream', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -63,31 +63,28 @@ class BaseApi(api_client.Api): @typing.overload def _upload_download_file_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationOctetStream, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationOctetStream,bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/octet-stream', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _upload_download_file_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationOctetStream, bytes, io.FileIO, io.BufferedReader, ], - content_type: str = 'application/octet-stream', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/octet-stream', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ uploads a file and downloads a file using application/octet-stream :param skip_deserialization: If true then api_response.response will be set but @@ -143,22 +140,22 @@ class UploadDownloadFile(BaseApi): @typing.overload def upload_download_file( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationOctetStream, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationOctetStream,bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/octet-stream', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def upload_download_file( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationOctetStream, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationOctetStream,bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/octet-stream', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -169,31 +166,28 @@ class UploadDownloadFile(BaseApi): @typing.overload def upload_download_file( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationOctetStream, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationOctetStream,bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/octet-stream', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def upload_download_file( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationOctetStream, bytes, io.FileIO, io.BufferedReader, ], - content_type: str = 'application/octet-stream', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/octet-stream', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._upload_download_file_oapg( body=body, content_type=content_type, @@ -209,22 +203,22 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationOctetStream, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationOctetStream,bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/octet-stream', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationOctetStream, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationOctetStream,bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/octet-stream', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -235,31 +229,28 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationOctetStream, bytes, io.FileIO, io.BufferedReader, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationOctetStream,bytes, io.FileIO, io.BufferedReader, ], content_type: str = 'application/octet-stream', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationOctetStream, bytes, io.FileIO, io.BufferedReader, ], - content_type: str = 'application/octet-stream', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/octet-stream', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._upload_download_file_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_file/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_file/post.py index 9d9644a4b30..99e835fc94c 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_file/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_file/post.py @@ -134,22 +134,22 @@ class BaseApi(api_client.Api): @typing.overload def _upload_file_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, content_type: str = 'multipart/form-data', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _upload_file_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, content_type: str = 'multipart/form-data', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -160,31 +160,28 @@ def _upload_file_oapg( @typing.overload def _upload_file_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, content_type: str = 'multipart/form-data', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _upload_file_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - content_type: str = 'multipart/form-data', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'multipart/form-data', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ uploads a file using multipart/form-data :param skip_deserialization: If true then api_response.response will be set but @@ -238,22 +235,22 @@ class UploadFile(BaseApi): @typing.overload def upload_file( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, content_type: str = 'multipart/form-data', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def upload_file( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, content_type: str = 'multipart/form-data', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -264,31 +261,28 @@ def upload_file( @typing.overload def upload_file( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, content_type: str = 'multipart/form-data', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def upload_file( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - content_type: str = 'multipart/form-data', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'multipart/form-data', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._upload_file_oapg( body=body, content_type=content_type, @@ -304,22 +298,22 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, content_type: str = 'multipart/form-data', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, content_type: str = 'multipart/form-data', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -330,31 +324,28 @@ def post( @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, content_type: str = 'multipart/form-data', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - content_type: str = 'multipart/form-data', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'multipart/form-data', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._upload_file_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_file/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_file/post.pyi index 0138ad4a0b9..7e6c5a92bf8 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_file/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_file/post.pyi @@ -103,22 +103,22 @@ class BaseApi(api_client.Api): @typing.overload def _upload_file_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, content_type: str = 'multipart/form-data', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _upload_file_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, content_type: str = 'multipart/form-data', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -129,31 +129,28 @@ class BaseApi(api_client.Api): @typing.overload def _upload_file_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, content_type: str = 'multipart/form-data', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _upload_file_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - content_type: str = 'multipart/form-data', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'multipart/form-data', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ uploads a file using multipart/form-data :param skip_deserialization: If true then api_response.response will be set but @@ -207,22 +204,22 @@ class UploadFile(BaseApi): @typing.overload def upload_file( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, content_type: str = 'multipart/form-data', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def upload_file( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, content_type: str = 'multipart/form-data', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -233,31 +230,28 @@ class UploadFile(BaseApi): @typing.overload def upload_file( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, content_type: str = 'multipart/form-data', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def upload_file( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - content_type: str = 'multipart/form-data', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'multipart/form-data', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._upload_file_oapg( body=body, content_type=content_type, @@ -273,22 +267,22 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, content_type: str = 'multipart/form-data', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, content_type: str = 'multipart/form-data', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -299,31 +293,28 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, content_type: str = 'multipart/form-data', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - content_type: str = 'multipart/form-data', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'multipart/form-data', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._upload_file_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_files/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_files/post.py index ee6fa238191..775a6213813 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_files/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_files/post.py @@ -141,22 +141,22 @@ class BaseApi(api_client.Api): @typing.overload def _upload_files_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, content_type: str = 'multipart/form-data', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _upload_files_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, content_type: str = 'multipart/form-data', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -167,31 +167,28 @@ def _upload_files_oapg( @typing.overload def _upload_files_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, content_type: str = 'multipart/form-data', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _upload_files_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - content_type: str = 'multipart/form-data', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'multipart/form-data', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ uploads files using multipart/form-data :param skip_deserialization: If true then api_response.response will be set but @@ -245,22 +242,22 @@ class UploadFiles(BaseApi): @typing.overload def upload_files( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, content_type: str = 'multipart/form-data', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def upload_files( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, content_type: str = 'multipart/form-data', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -271,31 +268,28 @@ def upload_files( @typing.overload def upload_files( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, content_type: str = 'multipart/form-data', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def upload_files( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - content_type: str = 'multipart/form-data', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'multipart/form-data', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._upload_files_oapg( body=body, content_type=content_type, @@ -311,22 +305,22 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, content_type: str = 'multipart/form-data', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, content_type: str = 'multipart/form-data', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -337,31 +331,28 @@ def post( @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, content_type: str = 'multipart/form-data', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - content_type: str = 'multipart/form-data', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'multipart/form-data', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._upload_files_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_files/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_files/post.pyi index eb36df08f38..8f7291c0e98 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_files/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_files/post.pyi @@ -110,22 +110,22 @@ class BaseApi(api_client.Api): @typing.overload def _upload_files_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, content_type: str = 'multipart/form-data', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _upload_files_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, content_type: str = 'multipart/form-data', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -136,31 +136,28 @@ class BaseApi(api_client.Api): @typing.overload def _upload_files_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, content_type: str = 'multipart/form-data', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _upload_files_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - content_type: str = 'multipart/form-data', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'multipart/form-data', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ uploads files using multipart/form-data :param skip_deserialization: If true then api_response.response will be set but @@ -214,22 +211,22 @@ class UploadFiles(BaseApi): @typing.overload def upload_files( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, content_type: str = 'multipart/form-data', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def upload_files( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, content_type: str = 'multipart/form-data', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -240,31 +237,28 @@ class UploadFiles(BaseApi): @typing.overload def upload_files( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, content_type: str = 'multipart/form-data', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def upload_files( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - content_type: str = 'multipart/form-data', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'multipart/form-data', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._upload_files_oapg( body=body, content_type=content_type, @@ -280,22 +274,22 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, content_type: str = 'multipart/form-data', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, content_type: str = 'multipart/form-data', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -306,31 +300,28 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, content_type: str = 'multipart/form-data', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - content_type: str = 'multipart/form-data', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'multipart/form-data', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._upload_files_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/foo/get.py b/samples/openapi3/client/petstore/python/petstore_api/paths/foo/get.py index 81a138114ec..60147cf1398 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/foo/get.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/foo/get.py @@ -112,7 +112,7 @@ class BaseApi(api_client.Api): @typing.overload def _foo_get_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -124,7 +124,7 @@ def _foo_get_oapg( @typing.overload def _foo_get_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -134,27 +134,24 @@ def _foo_get_oapg( @typing.overload def _foo_get_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization + api_client.ApiResponseWithoutDeserialization, ]: ... def _foo_get_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -200,7 +197,7 @@ class FooGet(BaseApi): @typing.overload def foo_get( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -212,7 +209,7 @@ def foo_get( @typing.overload def foo_get( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -222,27 +219,24 @@ def foo_get( @typing.overload def foo_get( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization + api_client.ApiResponseWithoutDeserialization, ]: ... def foo_get( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._foo_get_oapg( accept_content_types=accept_content_types, stream=stream, @@ -256,7 +250,7 @@ class ApiForget(BaseApi): @typing.overload def get( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -268,7 +262,7 @@ def get( @typing.overload def get( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -278,27 +272,24 @@ def get( @typing.overload def get( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization + api_client.ApiResponseWithoutDeserialization, ]: ... def get( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._foo_get_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/foo/get.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/foo/get.pyi index 54a68bff81c..f552c12fcfd 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/foo/get.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/foo/get.pyi @@ -89,7 +89,7 @@ class BaseApi(api_client.Api): @typing.overload def _foo_get_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -101,7 +101,7 @@ class BaseApi(api_client.Api): @typing.overload def _foo_get_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -111,27 +111,24 @@ class BaseApi(api_client.Api): @typing.overload def _foo_get_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization + api_client.ApiResponseWithoutDeserialization, ]: ... def _foo_get_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -177,7 +174,7 @@ class FooGet(BaseApi): @typing.overload def foo_get( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -189,7 +186,7 @@ class FooGet(BaseApi): @typing.overload def foo_get( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -199,27 +196,24 @@ class FooGet(BaseApi): @typing.overload def foo_get( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization + api_client.ApiResponseWithoutDeserialization, ]: ... def foo_get( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._foo_get_oapg( accept_content_types=accept_content_types, stream=stream, @@ -233,7 +227,7 @@ class ApiForget(BaseApi): @typing.overload def get( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -245,7 +239,7 @@ class ApiForget(BaseApi): @typing.overload def get( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -255,27 +249,24 @@ class ApiForget(BaseApi): @typing.overload def get( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization + api_client.ApiResponseWithoutDeserialization, ]: ... def get( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._foo_get_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/pet/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/pet/post.py index fac2972e86a..6e72c9111d6 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/pet/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/pet/post.py @@ -91,23 +91,22 @@ class BaseApi(api_client.Api): @typing.overload def _add_pet_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,SchemaForRequestBodyApplicationXml,], content_type: str = 'application/json', host_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _add_pet_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,SchemaForRequestBodyApplicationXml,], content_type: str = 'application/json', host_index: typing.Optional[int] = None, stream: bool = False, @@ -118,33 +117,28 @@ def _add_pet_oapg( @typing.overload def _add_pet_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,SchemaForRequestBodyApplicationXml,], content_type: str = 'application/json', host_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _add_pet_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], - content_type: str = 'application/json', - host_index: typing.Optional[int] = None, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + host_index = None, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ Add a new pet to the store :param skip_deserialization: If true then api_response.response will be set but @@ -201,23 +195,22 @@ class AddPet(BaseApi): @typing.overload def add_pet( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,SchemaForRequestBodyApplicationXml,], content_type: str = 'application/json', host_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def add_pet( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,SchemaForRequestBodyApplicationXml,], content_type: str = 'application/json', host_index: typing.Optional[int] = None, stream: bool = False, @@ -228,33 +221,28 @@ def add_pet( @typing.overload def add_pet( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,SchemaForRequestBodyApplicationXml,], content_type: str = 'application/json', host_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def add_pet( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], - content_type: str = 'application/json', - host_index: typing.Optional[int] = None, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + host_index = None, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._add_pet_oapg( body=body, content_type=content_type, @@ -270,23 +258,22 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,SchemaForRequestBodyApplicationXml,], content_type: str = 'application/json', host_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,SchemaForRequestBodyApplicationXml,], content_type: str = 'application/json', host_index: typing.Optional[int] = None, stream: bool = False, @@ -297,33 +284,28 @@ def post( @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,SchemaForRequestBodyApplicationXml,], content_type: str = 'application/json', host_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], - content_type: str = 'application/json', - host_index: typing.Optional[int] = None, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + host_index = None, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._add_pet_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/pet/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/pet/post.pyi index b768d554421..a0003e5c3f3 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/pet/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/pet/post.pyi @@ -36,23 +36,22 @@ class BaseApi(api_client.Api): @typing.overload def _add_pet_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,SchemaForRequestBodyApplicationXml,], content_type: str = 'application/json', host_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _add_pet_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,SchemaForRequestBodyApplicationXml,], content_type: str = 'application/json', host_index: typing.Optional[int] = None, stream: bool = False, @@ -63,33 +62,28 @@ class BaseApi(api_client.Api): @typing.overload def _add_pet_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,SchemaForRequestBodyApplicationXml,], content_type: str = 'application/json', host_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _add_pet_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], - content_type: str = 'application/json', - host_index: typing.Optional[int] = None, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + host_index = None, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ Add a new pet to the store :param skip_deserialization: If true then api_response.response will be set but @@ -146,23 +140,22 @@ class AddPet(BaseApi): @typing.overload def add_pet( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,SchemaForRequestBodyApplicationXml,], content_type: str = 'application/json', host_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def add_pet( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,SchemaForRequestBodyApplicationXml,], content_type: str = 'application/json', host_index: typing.Optional[int] = None, stream: bool = False, @@ -173,33 +166,28 @@ class AddPet(BaseApi): @typing.overload def add_pet( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,SchemaForRequestBodyApplicationXml,], content_type: str = 'application/json', host_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def add_pet( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], - content_type: str = 'application/json', - host_index: typing.Optional[int] = None, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + host_index = None, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._add_pet_oapg( body=body, content_type=content_type, @@ -215,23 +203,22 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,SchemaForRequestBodyApplicationXml,], content_type: str = 'application/json', host_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,SchemaForRequestBodyApplicationXml,], content_type: str = 'application/json', host_index: typing.Optional[int] = None, stream: bool = False, @@ -242,33 +229,28 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,SchemaForRequestBodyApplicationXml,], content_type: str = 'application/json', host_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], - content_type: str = 'application/json', - host_index: typing.Optional[int] = None, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + host_index = None, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._add_pet_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/pet/put.py b/samples/openapi3/client/petstore/python/petstore_api/paths/pet/put.py index c8ae05ea261..b4b8514b3c7 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/pet/put.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/pet/put.py @@ -104,24 +104,21 @@ class BaseApi(api_client.Api): @typing.overload def _update_pet_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,SchemaForRequestBodyApplicationXml,], content_type: str = 'application/json', host_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponse, ]: ... @typing.overload def _update_pet_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,SchemaForRequestBodyApplicationXml,], content_type: str = 'application/json', host_index: typing.Optional[int] = None, stream: bool = False, @@ -132,35 +129,27 @@ def _update_pet_oapg( @typing.overload def _update_pet_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,SchemaForRequestBodyApplicationXml,], content_type: str = 'application/json', host_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + api_client.ApiResponseWithoutDeserialization, ]: ... def _update_pet_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], - content_type: str = 'application/json', - host_index: typing.Optional[int] = None, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + host_index = None, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ Update an existing pet :param skip_deserialization: If true then api_response.response will be set but @@ -217,24 +206,21 @@ class UpdatePet(BaseApi): @typing.overload def update_pet( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,SchemaForRequestBodyApplicationXml,], content_type: str = 'application/json', host_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponse, ]: ... @typing.overload def update_pet( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,SchemaForRequestBodyApplicationXml,], content_type: str = 'application/json', host_index: typing.Optional[int] = None, stream: bool = False, @@ -245,35 +231,27 @@ def update_pet( @typing.overload def update_pet( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,SchemaForRequestBodyApplicationXml,], content_type: str = 'application/json', host_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + api_client.ApiResponseWithoutDeserialization, ]: ... def update_pet( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], - content_type: str = 'application/json', - host_index: typing.Optional[int] = None, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + host_index = None, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._update_pet_oapg( body=body, content_type=content_type, @@ -289,24 +267,21 @@ class ApiForput(BaseApi): @typing.overload def put( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,SchemaForRequestBodyApplicationXml,], content_type: str = 'application/json', host_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponse, ]: ... @typing.overload def put( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,SchemaForRequestBodyApplicationXml,], content_type: str = 'application/json', host_index: typing.Optional[int] = None, stream: bool = False, @@ -317,35 +292,27 @@ def put( @typing.overload def put( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,SchemaForRequestBodyApplicationXml,], content_type: str = 'application/json', host_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + api_client.ApiResponseWithoutDeserialization, ]: ... def put( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], - content_type: str = 'application/json', - host_index: typing.Optional[int] = None, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + host_index = None, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._update_pet_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/pet/put.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/pet/put.pyi index eae3b422d06..47a33204479 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/pet/put.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/pet/put.pyi @@ -36,24 +36,21 @@ class BaseApi(api_client.Api): @typing.overload def _update_pet_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,SchemaForRequestBodyApplicationXml,], content_type: str = 'application/json', host_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponse, ]: ... @typing.overload def _update_pet_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,SchemaForRequestBodyApplicationXml,], content_type: str = 'application/json', host_index: typing.Optional[int] = None, stream: bool = False, @@ -64,35 +61,27 @@ class BaseApi(api_client.Api): @typing.overload def _update_pet_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,SchemaForRequestBodyApplicationXml,], content_type: str = 'application/json', host_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + api_client.ApiResponseWithoutDeserialization, ]: ... def _update_pet_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], - content_type: str = 'application/json', - host_index: typing.Optional[int] = None, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + host_index = None, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ Update an existing pet :param skip_deserialization: If true then api_response.response will be set but @@ -149,24 +138,21 @@ class UpdatePet(BaseApi): @typing.overload def update_pet( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,SchemaForRequestBodyApplicationXml,], content_type: str = 'application/json', host_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponse, ]: ... @typing.overload def update_pet( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,SchemaForRequestBodyApplicationXml,], content_type: str = 'application/json', host_index: typing.Optional[int] = None, stream: bool = False, @@ -177,35 +163,27 @@ class UpdatePet(BaseApi): @typing.overload def update_pet( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,SchemaForRequestBodyApplicationXml,], content_type: str = 'application/json', host_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + api_client.ApiResponseWithoutDeserialization, ]: ... def update_pet( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], - content_type: str = 'application/json', - host_index: typing.Optional[int] = None, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + host_index = None, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._update_pet_oapg( body=body, content_type=content_type, @@ -221,24 +199,21 @@ class ApiForput(BaseApi): @typing.overload def put( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,SchemaForRequestBodyApplicationXml,], content_type: str = 'application/json', host_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponse, ]: ... @typing.overload def put( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,SchemaForRequestBodyApplicationXml,], content_type: str = 'application/json', host_index: typing.Optional[int] = None, stream: bool = False, @@ -249,35 +224,27 @@ class ApiForput(BaseApi): @typing.overload def put( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,SchemaForRequestBodyApplicationXml,], content_type: str = 'application/json', host_index: typing.Optional[int] = None, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + api_client.ApiResponseWithoutDeserialization, ]: ... def put( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, SchemaForRequestBodyApplicationXml, ], - content_type: str = 'application/json', - host_index: typing.Optional[int] = None, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + host_index = None, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._update_pet_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_find_by_status/get.py b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_find_by_status/get.py index 9c43140c9e9..ff5c59d13c4 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_find_by_status/get.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_find_by_status/get.py @@ -205,21 +205,20 @@ class BaseApi(api_client.Api): @typing.overload def _find_pets_by_status_oapg( - self: api_client.Api, + self, query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _find_pets_by_status_oapg( - self: api_client.Api, + self, query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -230,31 +229,26 @@ def _find_pets_by_status_oapg( @typing.overload def _find_pets_by_status_oapg( - self: api_client.Api, + self, query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _find_pets_by_status_oapg( - self: api_client.Api, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + query_params = frozendict.frozendict(), + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ Finds Pets by status :param skip_deserialization: If true then api_response.response will be set but @@ -312,21 +306,20 @@ class FindPetsByStatus(BaseApi): @typing.overload def find_pets_by_status( - self: BaseApi, + self, query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def find_pets_by_status( - self: BaseApi, + self, query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -337,31 +330,26 @@ def find_pets_by_status( @typing.overload def find_pets_by_status( - self: BaseApi, + self, query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def find_pets_by_status( - self: BaseApi, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + query_params = frozendict.frozendict(), + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._find_pets_by_status_oapg( query_params=query_params, accept_content_types=accept_content_types, @@ -376,21 +364,20 @@ class ApiForget(BaseApi): @typing.overload def get( - self: BaseApi, + self, query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def get( - self: BaseApi, + self, query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -401,31 +388,26 @@ def get( @typing.overload def get( - self: BaseApi, + self, query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def get( - self: BaseApi, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + query_params = frozendict.frozendict(), + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._find_pets_by_status_oapg( query_params=query_params, accept_content_types=accept_content_types, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_find_by_status/get.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_find_by_status/get.pyi index db85047ef73..d53f591700b 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_find_by_status/get.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_find_by_status/get.pyi @@ -130,21 +130,20 @@ class BaseApi(api_client.Api): @typing.overload def _find_pets_by_status_oapg( - self: api_client.Api, + self, query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _find_pets_by_status_oapg( - self: api_client.Api, + self, query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -155,31 +154,26 @@ class BaseApi(api_client.Api): @typing.overload def _find_pets_by_status_oapg( - self: api_client.Api, + self, query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _find_pets_by_status_oapg( - self: api_client.Api, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + query_params = frozendict.frozendict(), + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ Finds Pets by status :param skip_deserialization: If true then api_response.response will be set but @@ -237,21 +231,20 @@ class FindPetsByStatus(BaseApi): @typing.overload def find_pets_by_status( - self: BaseApi, + self, query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def find_pets_by_status( - self: BaseApi, + self, query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -262,31 +255,26 @@ class FindPetsByStatus(BaseApi): @typing.overload def find_pets_by_status( - self: BaseApi, + self, query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def find_pets_by_status( - self: BaseApi, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + query_params = frozendict.frozendict(), + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._find_pets_by_status_oapg( query_params=query_params, accept_content_types=accept_content_types, @@ -301,21 +289,20 @@ class ApiForget(BaseApi): @typing.overload def get( - self: BaseApi, + self, query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def get( - self: BaseApi, + self, query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -326,31 +313,26 @@ class ApiForget(BaseApi): @typing.overload def get( - self: BaseApi, + self, query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def get( - self: BaseApi, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + query_params = frozendict.frozendict(), + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._find_pets_by_status_oapg( query_params=query_params, accept_content_types=accept_content_types, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_find_by_tags/get.py b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_find_by_tags/get.py index b42fb444051..4c954a906ea 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_find_by_tags/get.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_find_by_tags/get.py @@ -180,21 +180,20 @@ class BaseApi(api_client.Api): @typing.overload def _find_pets_by_tags_oapg( - self: api_client.Api, + self, query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _find_pets_by_tags_oapg( - self: api_client.Api, + self, query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -205,31 +204,26 @@ def _find_pets_by_tags_oapg( @typing.overload def _find_pets_by_tags_oapg( - self: api_client.Api, + self, query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _find_pets_by_tags_oapg( - self: api_client.Api, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + query_params = frozendict.frozendict(), + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ Finds Pets by tags :param skip_deserialization: If true then api_response.response will be set but @@ -287,21 +281,20 @@ class FindPetsByTags(BaseApi): @typing.overload def find_pets_by_tags( - self: BaseApi, + self, query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def find_pets_by_tags( - self: BaseApi, + self, query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -312,31 +305,26 @@ def find_pets_by_tags( @typing.overload def find_pets_by_tags( - self: BaseApi, + self, query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def find_pets_by_tags( - self: BaseApi, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + query_params = frozendict.frozendict(), + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._find_pets_by_tags_oapg( query_params=query_params, accept_content_types=accept_content_types, @@ -351,21 +339,20 @@ class ApiForget(BaseApi): @typing.overload def get( - self: BaseApi, + self, query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def get( - self: BaseApi, + self, query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -376,31 +363,26 @@ def get( @typing.overload def get( - self: BaseApi, + self, query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def get( - self: BaseApi, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + query_params = frozendict.frozendict(), + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._find_pets_by_tags_oapg( query_params=query_params, accept_content_types=accept_content_types, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_find_by_tags/get.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_find_by_tags/get.pyi index 96a25b931a8..55da6139cfc 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_find_by_tags/get.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_find_by_tags/get.pyi @@ -113,21 +113,20 @@ class BaseApi(api_client.Api): @typing.overload def _find_pets_by_tags_oapg( - self: api_client.Api, + self, query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _find_pets_by_tags_oapg( - self: api_client.Api, + self, query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -138,31 +137,26 @@ class BaseApi(api_client.Api): @typing.overload def _find_pets_by_tags_oapg( - self: api_client.Api, + self, query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _find_pets_by_tags_oapg( - self: api_client.Api, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + query_params = frozendict.frozendict(), + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ Finds Pets by tags :param skip_deserialization: If true then api_response.response will be set but @@ -220,21 +214,20 @@ class FindPetsByTags(BaseApi): @typing.overload def find_pets_by_tags( - self: BaseApi, + self, query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def find_pets_by_tags( - self: BaseApi, + self, query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -245,31 +238,26 @@ class FindPetsByTags(BaseApi): @typing.overload def find_pets_by_tags( - self: BaseApi, + self, query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def find_pets_by_tags( - self: BaseApi, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + query_params = frozendict.frozendict(), + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._find_pets_by_tags_oapg( query_params=query_params, accept_content_types=accept_content_types, @@ -284,21 +272,20 @@ class ApiForget(BaseApi): @typing.overload def get( - self: BaseApi, + self, query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def get( - self: BaseApi, + self, query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -309,31 +296,26 @@ class ApiForget(BaseApi): @typing.overload def get( - self: BaseApi, + self, query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def get( - self: BaseApi, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + query_params = frozendict.frozendict(), + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._find_pets_by_tags_oapg( query_params=query_params, accept_content_types=accept_content_types, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/delete.py b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/delete.py index dca7feb92a9..b0fea9ab2de 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/delete.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/delete.py @@ -102,20 +102,19 @@ class BaseApi(api_client.Api): @typing.overload def _delete_pet_oapg( - self: api_client.Api, + self, header_params: RequestHeaderParams = frozendict.frozendict(), path_params: RequestPathParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, ]: ... @typing.overload def _delete_pet_oapg( - self: api_client.Api, + self, header_params: RequestHeaderParams = frozendict.frozendict(), path_params: RequestPathParams = frozendict.frozendict(), stream: bool = False, @@ -126,29 +125,25 @@ def _delete_pet_oapg( @typing.overload def _delete_pet_oapg( - self: api_client.Api, + self, header_params: RequestHeaderParams = frozendict.frozendict(), path_params: RequestPathParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + api_client.ApiResponseWithoutDeserialization, ]: ... def _delete_pet_oapg( - self: api_client.Api, - header_params: RequestHeaderParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + header_params = frozendict.frozendict(), + path_params = frozendict.frozendict(), + stream = False, + timeout = None, + skip_deserialization = False, + ): """ Deletes a pet :param skip_deserialization: If true then api_response.response will be set but @@ -212,20 +207,19 @@ class DeletePet(BaseApi): @typing.overload def delete_pet( - self: BaseApi, + self, header_params: RequestHeaderParams = frozendict.frozendict(), path_params: RequestPathParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, ]: ... @typing.overload def delete_pet( - self: BaseApi, + self, header_params: RequestHeaderParams = frozendict.frozendict(), path_params: RequestPathParams = frozendict.frozendict(), stream: bool = False, @@ -236,29 +230,25 @@ def delete_pet( @typing.overload def delete_pet( - self: BaseApi, + self, header_params: RequestHeaderParams = frozendict.frozendict(), path_params: RequestPathParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + api_client.ApiResponseWithoutDeserialization, ]: ... def delete_pet( - self: BaseApi, - header_params: RequestHeaderParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + header_params = frozendict.frozendict(), + path_params = frozendict.frozendict(), + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._delete_pet_oapg( header_params=header_params, path_params=path_params, @@ -273,20 +263,19 @@ class ApiFordelete(BaseApi): @typing.overload def delete( - self: BaseApi, + self, header_params: RequestHeaderParams = frozendict.frozendict(), path_params: RequestPathParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, ]: ... @typing.overload def delete( - self: BaseApi, + self, header_params: RequestHeaderParams = frozendict.frozendict(), path_params: RequestPathParams = frozendict.frozendict(), stream: bool = False, @@ -297,29 +286,25 @@ def delete( @typing.overload def delete( - self: BaseApi, + self, header_params: RequestHeaderParams = frozendict.frozendict(), path_params: RequestPathParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + api_client.ApiResponseWithoutDeserialization, ]: ... def delete( - self: BaseApi, - header_params: RequestHeaderParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + header_params = frozendict.frozendict(), + path_params = frozendict.frozendict(), + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._delete_pet_oapg( header_params=header_params, path_params=path_params, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/delete.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/delete.pyi index 9a396e782a5..fbde751180d 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/delete.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/delete.pyi @@ -35,20 +35,19 @@ class BaseApi(api_client.Api): @typing.overload def _delete_pet_oapg( - self: api_client.Api, + self, header_params: RequestHeaderParams = frozendict.frozendict(), path_params: RequestPathParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, ]: ... @typing.overload def _delete_pet_oapg( - self: api_client.Api, + self, header_params: RequestHeaderParams = frozendict.frozendict(), path_params: RequestPathParams = frozendict.frozendict(), stream: bool = False, @@ -59,29 +58,25 @@ class BaseApi(api_client.Api): @typing.overload def _delete_pet_oapg( - self: api_client.Api, + self, header_params: RequestHeaderParams = frozendict.frozendict(), path_params: RequestPathParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + api_client.ApiResponseWithoutDeserialization, ]: ... def _delete_pet_oapg( - self: api_client.Api, - header_params: RequestHeaderParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + header_params = frozendict.frozendict(), + path_params = frozendict.frozendict(), + stream = False, + timeout = None, + skip_deserialization = False, + ): """ Deletes a pet :param skip_deserialization: If true then api_response.response will be set but @@ -145,20 +140,19 @@ class DeletePet(BaseApi): @typing.overload def delete_pet( - self: BaseApi, + self, header_params: RequestHeaderParams = frozendict.frozendict(), path_params: RequestPathParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, ]: ... @typing.overload def delete_pet( - self: BaseApi, + self, header_params: RequestHeaderParams = frozendict.frozendict(), path_params: RequestPathParams = frozendict.frozendict(), stream: bool = False, @@ -169,29 +163,25 @@ class DeletePet(BaseApi): @typing.overload def delete_pet( - self: BaseApi, + self, header_params: RequestHeaderParams = frozendict.frozendict(), path_params: RequestPathParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + api_client.ApiResponseWithoutDeserialization, ]: ... def delete_pet( - self: BaseApi, - header_params: RequestHeaderParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + header_params = frozendict.frozendict(), + path_params = frozendict.frozendict(), + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._delete_pet_oapg( header_params=header_params, path_params=path_params, @@ -206,20 +196,19 @@ class ApiFordelete(BaseApi): @typing.overload def delete( - self: BaseApi, + self, header_params: RequestHeaderParams = frozendict.frozendict(), path_params: RequestPathParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, ]: ... @typing.overload def delete( - self: BaseApi, + self, header_params: RequestHeaderParams = frozendict.frozendict(), path_params: RequestPathParams = frozendict.frozendict(), stream: bool = False, @@ -230,29 +219,25 @@ class ApiFordelete(BaseApi): @typing.overload def delete( - self: BaseApi, + self, header_params: RequestHeaderParams = frozendict.frozendict(), path_params: RequestPathParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + api_client.ApiResponseWithoutDeserialization, ]: ... def delete( - self: BaseApi, - header_params: RequestHeaderParams = frozendict.frozendict(), - path_params: RequestPathParams = frozendict.frozendict(), - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + header_params = frozendict.frozendict(), + path_params = frozendict.frozendict(), + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._delete_pet_oapg( header_params=header_params, path_params=path_params, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/get.py b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/get.py index 87835a5d15c..a7e49c66e0d 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/get.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/get.py @@ -120,22 +120,20 @@ class BaseApi(api_client.Api): @typing.overload def _get_pet_by_id_oapg( - self: api_client.Api, + self, path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _get_pet_by_id_oapg( - self: api_client.Api, + self, path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -146,33 +144,26 @@ def _get_pet_by_id_oapg( @typing.overload def _get_pet_by_id_oapg( - self: api_client.Api, + self, path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _get_pet_by_id_oapg( - self: api_client.Api, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + path_params = frozendict.frozendict(), + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ Find pet by ID :param skip_deserialization: If true then api_response.response will be set but @@ -230,22 +221,20 @@ class GetPetById(BaseApi): @typing.overload def get_pet_by_id( - self: BaseApi, + self, path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def get_pet_by_id( - self: BaseApi, + self, path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -256,33 +245,26 @@ def get_pet_by_id( @typing.overload def get_pet_by_id( - self: BaseApi, + self, path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def get_pet_by_id( - self: BaseApi, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + path_params = frozendict.frozendict(), + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._get_pet_by_id_oapg( path_params=path_params, accept_content_types=accept_content_types, @@ -297,22 +279,20 @@ class ApiForget(BaseApi): @typing.overload def get( - self: BaseApi, + self, path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def get( - self: BaseApi, + self, path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -323,33 +303,26 @@ def get( @typing.overload def get( - self: BaseApi, + self, path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def get( - self: BaseApi, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + path_params = frozendict.frozendict(), + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._get_pet_by_id_oapg( path_params=path_params, accept_content_types=accept_content_types, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/get.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/get.pyi index d9eeb2f115f..de42fcb0c5a 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/get.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/get.pyi @@ -41,22 +41,20 @@ class BaseApi(api_client.Api): @typing.overload def _get_pet_by_id_oapg( - self: api_client.Api, + self, path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _get_pet_by_id_oapg( - self: api_client.Api, + self, path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -67,33 +65,26 @@ class BaseApi(api_client.Api): @typing.overload def _get_pet_by_id_oapg( - self: api_client.Api, + self, path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _get_pet_by_id_oapg( - self: api_client.Api, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + path_params = frozendict.frozendict(), + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ Find pet by ID :param skip_deserialization: If true then api_response.response will be set but @@ -151,22 +142,20 @@ class GetPetById(BaseApi): @typing.overload def get_pet_by_id( - self: BaseApi, + self, path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def get_pet_by_id( - self: BaseApi, + self, path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -177,33 +166,26 @@ class GetPetById(BaseApi): @typing.overload def get_pet_by_id( - self: BaseApi, + self, path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def get_pet_by_id( - self: BaseApi, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + path_params = frozendict.frozendict(), + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._get_pet_by_id_oapg( path_params=path_params, accept_content_types=accept_content_types, @@ -218,22 +200,20 @@ class ApiForget(BaseApi): @typing.overload def get( - self: BaseApi, + self, path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def get( - self: BaseApi, + self, path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -244,33 +224,26 @@ class ApiForget(BaseApi): @typing.overload def get( - self: BaseApi, + self, path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def get( - self: BaseApi, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + path_params = frozendict.frozendict(), + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._get_pet_by_id_oapg( path_params=path_params, accept_content_types=accept_content_types, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/post.py index 08377e94a6f..005c1b2ab73 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/post.py @@ -146,22 +146,21 @@ class BaseApi(api_client.Api): @typing.overload def _update_pet_with_form_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, path_params: RequestPathParams = frozendict.frozendict(), content_type: str = 'application/x-www-form-urlencoded', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, ]: ... @typing.overload def _update_pet_with_form_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, path_params: RequestPathParams = frozendict.frozendict(), content_type: str = 'application/x-www-form-urlencoded', stream: bool = False, @@ -172,31 +171,27 @@ def _update_pet_with_form_oapg( @typing.overload def _update_pet_with_form_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, path_params: RequestPathParams = frozendict.frozendict(), content_type: str = 'application/x-www-form-urlencoded', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + api_client.ApiResponseWithoutDeserialization, ]: ... def _update_pet_with_form_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - path_params: RequestPathParams = frozendict.frozendict(), - content_type: str = 'application/x-www-form-urlencoded', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + path_params = frozendict.frozendict(), + content_type = 'application/x-www-form-urlencoded', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ Updates a pet in the store with form data :param skip_deserialization: If true then api_response.response will be set but @@ -262,22 +257,21 @@ class UpdatePetWithForm(BaseApi): @typing.overload def update_pet_with_form( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, path_params: RequestPathParams = frozendict.frozendict(), content_type: str = 'application/x-www-form-urlencoded', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, ]: ... @typing.overload def update_pet_with_form( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, path_params: RequestPathParams = frozendict.frozendict(), content_type: str = 'application/x-www-form-urlencoded', stream: bool = False, @@ -288,31 +282,27 @@ def update_pet_with_form( @typing.overload def update_pet_with_form( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, path_params: RequestPathParams = frozendict.frozendict(), content_type: str = 'application/x-www-form-urlencoded', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + api_client.ApiResponseWithoutDeserialization, ]: ... def update_pet_with_form( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - path_params: RequestPathParams = frozendict.frozendict(), - content_type: str = 'application/x-www-form-urlencoded', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + path_params = frozendict.frozendict(), + content_type = 'application/x-www-form-urlencoded', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._update_pet_with_form_oapg( body=body, path_params=path_params, @@ -328,22 +318,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, path_params: RequestPathParams = frozendict.frozendict(), content_type: str = 'application/x-www-form-urlencoded', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, path_params: RequestPathParams = frozendict.frozendict(), content_type: str = 'application/x-www-form-urlencoded', stream: bool = False, @@ -354,31 +343,27 @@ def post( @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, path_params: RequestPathParams = frozendict.frozendict(), content_type: str = 'application/x-www-form-urlencoded', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - path_params: RequestPathParams = frozendict.frozendict(), - content_type: str = 'application/x-www-form-urlencoded', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + path_params = frozendict.frozendict(), + content_type = 'application/x-www-form-urlencoded', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._update_pet_with_form_oapg( body=body, path_params=path_params, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/post.pyi index fb7cb2a0a55..5bcaf95a441 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/post.pyi @@ -94,22 +94,21 @@ class BaseApi(api_client.Api): @typing.overload def _update_pet_with_form_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, path_params: RequestPathParams = frozendict.frozendict(), content_type: str = 'application/x-www-form-urlencoded', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, ]: ... @typing.overload def _update_pet_with_form_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, path_params: RequestPathParams = frozendict.frozendict(), content_type: str = 'application/x-www-form-urlencoded', stream: bool = False, @@ -120,31 +119,27 @@ class BaseApi(api_client.Api): @typing.overload def _update_pet_with_form_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, path_params: RequestPathParams = frozendict.frozendict(), content_type: str = 'application/x-www-form-urlencoded', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + api_client.ApiResponseWithoutDeserialization, ]: ... def _update_pet_with_form_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - path_params: RequestPathParams = frozendict.frozendict(), - content_type: str = 'application/x-www-form-urlencoded', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + path_params = frozendict.frozendict(), + content_type = 'application/x-www-form-urlencoded', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ Updates a pet in the store with form data :param skip_deserialization: If true then api_response.response will be set but @@ -210,22 +205,21 @@ class UpdatePetWithForm(BaseApi): @typing.overload def update_pet_with_form( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, path_params: RequestPathParams = frozendict.frozendict(), content_type: str = 'application/x-www-form-urlencoded', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, ]: ... @typing.overload def update_pet_with_form( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, path_params: RequestPathParams = frozendict.frozendict(), content_type: str = 'application/x-www-form-urlencoded', stream: bool = False, @@ -236,31 +230,27 @@ class UpdatePetWithForm(BaseApi): @typing.overload def update_pet_with_form( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, path_params: RequestPathParams = frozendict.frozendict(), content_type: str = 'application/x-www-form-urlencoded', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + api_client.ApiResponseWithoutDeserialization, ]: ... def update_pet_with_form( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - path_params: RequestPathParams = frozendict.frozendict(), - content_type: str = 'application/x-www-form-urlencoded', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + path_params = frozendict.frozendict(), + content_type = 'application/x-www-form-urlencoded', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._update_pet_with_form_oapg( body=body, path_params=path_params, @@ -276,22 +266,21 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, path_params: RequestPathParams = frozendict.frozendict(), content_type: str = 'application/x-www-form-urlencoded', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, path_params: RequestPathParams = frozendict.frozendict(), content_type: str = 'application/x-www-form-urlencoded', stream: bool = False, @@ -302,31 +291,27 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, path_params: RequestPathParams = frozendict.frozendict(), content_type: str = 'application/x-www-form-urlencoded', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - path_params: RequestPathParams = frozendict.frozendict(), - content_type: str = 'application/x-www-form-urlencoded', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + path_params = frozendict.frozendict(), + content_type = 'application/x-www-form-urlencoded', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._update_pet_with_form_oapg( body=body, path_params=path_params, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id_upload_image/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id_upload_image/post.py index aab1ccfd11d..9eeda4835cb 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id_upload_image/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id_upload_image/post.py @@ -158,8 +158,8 @@ class BaseApi(api_client.Api): @typing.overload def _upload_image_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, path_params: RequestPathParams = frozendict.frozendict(), content_type: str = 'multipart/form-data', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -167,14 +167,14 @@ def _upload_image_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _upload_image_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, path_params: RequestPathParams = frozendict.frozendict(), content_type: str = 'multipart/form-data', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -186,8 +186,8 @@ def _upload_image_oapg( @typing.overload def _upload_image_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, path_params: RequestPathParams = frozendict.frozendict(), content_type: str = 'multipart/form-data', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -195,24 +195,21 @@ def _upload_image_oapg( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _upload_image_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - path_params: RequestPathParams = frozendict.frozendict(), - content_type: str = 'multipart/form-data', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + path_params = frozendict.frozendict(), + content_type = 'multipart/form-data', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ uploads an image :param skip_deserialization: If true then api_response.response will be set but @@ -281,8 +278,8 @@ class UploadImage(BaseApi): @typing.overload def upload_image( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, path_params: RequestPathParams = frozendict.frozendict(), content_type: str = 'multipart/form-data', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -290,14 +287,14 @@ def upload_image( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def upload_image( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, path_params: RequestPathParams = frozendict.frozendict(), content_type: str = 'multipart/form-data', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -309,8 +306,8 @@ def upload_image( @typing.overload def upload_image( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, path_params: RequestPathParams = frozendict.frozendict(), content_type: str = 'multipart/form-data', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -318,24 +315,21 @@ def upload_image( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def upload_image( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - path_params: RequestPathParams = frozendict.frozendict(), - content_type: str = 'multipart/form-data', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + path_params = frozendict.frozendict(), + content_type = 'multipart/form-data', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._upload_image_oapg( body=body, path_params=path_params, @@ -352,8 +346,8 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, path_params: RequestPathParams = frozendict.frozendict(), content_type: str = 'multipart/form-data', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -361,14 +355,14 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, path_params: RequestPathParams = frozendict.frozendict(), content_type: str = 'multipart/form-data', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -380,8 +374,8 @@ def post( @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, path_params: RequestPathParams = frozendict.frozendict(), content_type: str = 'multipart/form-data', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -389,24 +383,21 @@ def post( timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - path_params: RequestPathParams = frozendict.frozendict(), - content_type: str = 'multipart/form-data', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + path_params = frozendict.frozendict(), + content_type = 'multipart/form-data', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._upload_image_oapg( body=body, path_params=path_params, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id_upload_image/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id_upload_image/post.pyi index 9ef686f4f1a..26f4ee6c65e 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id_upload_image/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id_upload_image/post.pyi @@ -100,8 +100,8 @@ class BaseApi(api_client.Api): @typing.overload def _upload_image_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, path_params: RequestPathParams = frozendict.frozendict(), content_type: str = 'multipart/form-data', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -109,14 +109,14 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _upload_image_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, path_params: RequestPathParams = frozendict.frozendict(), content_type: str = 'multipart/form-data', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -128,8 +128,8 @@ class BaseApi(api_client.Api): @typing.overload def _upload_image_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, path_params: RequestPathParams = frozendict.frozendict(), content_type: str = 'multipart/form-data', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -137,24 +137,21 @@ class BaseApi(api_client.Api): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _upload_image_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - path_params: RequestPathParams = frozendict.frozendict(), - content_type: str = 'multipart/form-data', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + path_params = frozendict.frozendict(), + content_type = 'multipart/form-data', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ uploads an image :param skip_deserialization: If true then api_response.response will be set but @@ -223,8 +220,8 @@ class UploadImage(BaseApi): @typing.overload def upload_image( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, path_params: RequestPathParams = frozendict.frozendict(), content_type: str = 'multipart/form-data', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -232,14 +229,14 @@ class UploadImage(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def upload_image( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, path_params: RequestPathParams = frozendict.frozendict(), content_type: str = 'multipart/form-data', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -251,8 +248,8 @@ class UploadImage(BaseApi): @typing.overload def upload_image( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, path_params: RequestPathParams = frozendict.frozendict(), content_type: str = 'multipart/form-data', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -260,24 +257,21 @@ class UploadImage(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def upload_image( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - path_params: RequestPathParams = frozendict.frozendict(), - content_type: str = 'multipart/form-data', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + path_params = frozendict.frozendict(), + content_type = 'multipart/form-data', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._upload_image_oapg( body=body, path_params=path_params, @@ -294,8 +288,8 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, path_params: RequestPathParams = frozendict.frozendict(), content_type: str = 'multipart/form-data', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -303,14 +297,14 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, path_params: RequestPathParams = frozendict.frozendict(), content_type: str = 'multipart/form-data', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -322,8 +316,8 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + self, + body: typing.Union[SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, path_params: RequestPathParams = frozendict.frozendict(), content_type: str = 'multipart/form-data', accept_content_types: typing.Tuple[str] = _all_accept_content_types, @@ -331,24 +325,21 @@ class ApiForpost(BaseApi): timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyMultipartFormData, dict, frozendict.frozendict, schemas.Unset] = schemas.unset, - path_params: RequestPathParams = frozendict.frozendict(), - content_type: str = 'multipart/form-data', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + path_params = frozendict.frozendict(), + content_type = 'multipart/form-data', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._upload_image_oapg( body=body, path_params=path_params, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/store_inventory/get.py b/samples/openapi3/client/petstore/python/petstore_api/paths/store_inventory/get.py index e60a5dd1244..7775294be3d 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/store_inventory/get.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/store_inventory/get.py @@ -89,19 +89,19 @@ class BaseApi(api_client.Api): @typing.overload def _get_inventory_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _get_inventory_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -111,27 +111,24 @@ def _get_inventory_oapg( @typing.overload def _get_inventory_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _get_inventory_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ Returns pet inventories by status :param skip_deserialization: If true then api_response.response will be set but @@ -175,19 +172,19 @@ class GetInventory(BaseApi): @typing.overload def get_inventory( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def get_inventory( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -197,27 +194,24 @@ def get_inventory( @typing.overload def get_inventory( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def get_inventory( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._get_inventory_oapg( accept_content_types=accept_content_types, stream=stream, @@ -231,19 +225,19 @@ class ApiForget(BaseApi): @typing.overload def get( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def get( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -253,27 +247,24 @@ def get( @typing.overload def get( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def get( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._get_inventory_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/store_inventory/get.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/store_inventory/get.pyi index 291cca6b537..5dd7215f10d 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/store_inventory/get.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/store_inventory/get.pyi @@ -63,19 +63,19 @@ class BaseApi(api_client.Api): @typing.overload def _get_inventory_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _get_inventory_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -85,27 +85,24 @@ class BaseApi(api_client.Api): @typing.overload def _get_inventory_oapg( - self: api_client.Api, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _get_inventory_oapg( - self: api_client.Api, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ Returns pet inventories by status :param skip_deserialization: If true then api_response.response will be set but @@ -149,19 +146,19 @@ class GetInventory(BaseApi): @typing.overload def get_inventory( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def get_inventory( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -171,27 +168,24 @@ class GetInventory(BaseApi): @typing.overload def get_inventory( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def get_inventory( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._get_inventory_oapg( accept_content_types=accept_content_types, stream=stream, @@ -205,19 +199,19 @@ class ApiForget(BaseApi): @typing.overload def get( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def get( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -227,27 +221,24 @@ class ApiForget(BaseApi): @typing.overload def get( - self: BaseApi, + self, accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def get( - self: BaseApi, - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._get_inventory_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/store_order/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/store_order/post.py index 7aac07705c0..40e3a8c52b5 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/store_order/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/store_order/post.py @@ -89,23 +89,22 @@ class BaseApi(api_client.Api): @typing.overload def _place_order_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _place_order_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -116,33 +115,28 @@ def _place_order_oapg( @typing.overload def _place_order_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _place_order_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ Place an order for a pet :param skip_deserialization: If true then api_response.response will be set but @@ -198,23 +192,22 @@ class PlaceOrder(BaseApi): @typing.overload def place_order( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def place_order( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -225,33 +218,28 @@ def place_order( @typing.overload def place_order( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def place_order( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._place_order_oapg( body=body, content_type=content_type, @@ -267,23 +255,22 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -294,33 +281,28 @@ def post( @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._place_order_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/store_order/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/store_order/post.pyi index 664dbe431de..95dd13d6c73 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/store_order/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/store_order/post.pyi @@ -41,23 +41,22 @@ class BaseApi(api_client.Api): @typing.overload def _place_order_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _place_order_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -68,33 +67,28 @@ class BaseApi(api_client.Api): @typing.overload def _place_order_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _place_order_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ Place an order for a pet :param skip_deserialization: If true then api_response.response will be set but @@ -150,23 +144,22 @@ class PlaceOrder(BaseApi): @typing.overload def place_order( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def place_order( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -177,33 +170,28 @@ class PlaceOrder(BaseApi): @typing.overload def place_order( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def place_order( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._place_order_oapg( body=body, content_type=content_type, @@ -219,23 +207,22 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -246,33 +233,28 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._place_order_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/store_order_order_id/delete.py b/samples/openapi3/client/petstore/python/petstore_api/paths/store_order_order_id/delete.py index 7c6cb6a6c8c..046a7b15510 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/store_order_order_id/delete.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/store_order_order_id/delete.py @@ -86,20 +86,18 @@ class BaseApi(api_client.Api): @typing.overload def _delete_order_oapg( - self: api_client.Api, + self, path_params: RequestPathParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, ]: ... @typing.overload def _delete_order_oapg( - self: api_client.Api, + self, path_params: RequestPathParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -109,29 +107,23 @@ def _delete_order_oapg( @typing.overload def _delete_order_oapg( - self: api_client.Api, + self, path_params: RequestPathParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + api_client.ApiResponseWithoutDeserialization, ]: ... def _delete_order_oapg( - self: api_client.Api, - path_params: RequestPathParams = frozendict.frozendict(), - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + path_params = frozendict.frozendict(), + stream = False, + timeout = None, + skip_deserialization = False, + ): """ Delete purchase order by ID :param skip_deserialization: If true then api_response.response will be set but @@ -182,20 +174,18 @@ class DeleteOrder(BaseApi): @typing.overload def delete_order( - self: BaseApi, + self, path_params: RequestPathParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, ]: ... @typing.overload def delete_order( - self: BaseApi, + self, path_params: RequestPathParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -205,29 +195,23 @@ def delete_order( @typing.overload def delete_order( - self: BaseApi, + self, path_params: RequestPathParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + api_client.ApiResponseWithoutDeserialization, ]: ... def delete_order( - self: BaseApi, - path_params: RequestPathParams = frozendict.frozendict(), - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + path_params = frozendict.frozendict(), + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._delete_order_oapg( path_params=path_params, stream=stream, @@ -241,20 +225,18 @@ class ApiFordelete(BaseApi): @typing.overload def delete( - self: BaseApi, + self, path_params: RequestPathParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, ]: ... @typing.overload def delete( - self: BaseApi, + self, path_params: RequestPathParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -264,29 +246,23 @@ def delete( @typing.overload def delete( - self: BaseApi, + self, path_params: RequestPathParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + api_client.ApiResponseWithoutDeserialization, ]: ... def delete( - self: BaseApi, - path_params: RequestPathParams = frozendict.frozendict(), - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + path_params = frozendict.frozendict(), + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._delete_order_oapg( path_params=path_params, stream=stream, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/store_order_order_id/delete.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/store_order_order_id/delete.pyi index a05ab61bc8c..037ab536b6c 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/store_order_order_id/delete.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/store_order_order_id/delete.pyi @@ -32,20 +32,18 @@ class BaseApi(api_client.Api): @typing.overload def _delete_order_oapg( - self: api_client.Api, + self, path_params: RequestPathParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, ]: ... @typing.overload def _delete_order_oapg( - self: api_client.Api, + self, path_params: RequestPathParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -55,29 +53,23 @@ class BaseApi(api_client.Api): @typing.overload def _delete_order_oapg( - self: api_client.Api, + self, path_params: RequestPathParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + api_client.ApiResponseWithoutDeserialization, ]: ... def _delete_order_oapg( - self: api_client.Api, - path_params: RequestPathParams = frozendict.frozendict(), - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + path_params = frozendict.frozendict(), + stream = False, + timeout = None, + skip_deserialization = False, + ): """ Delete purchase order by ID :param skip_deserialization: If true then api_response.response will be set but @@ -128,20 +120,18 @@ class DeleteOrder(BaseApi): @typing.overload def delete_order( - self: BaseApi, + self, path_params: RequestPathParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, ]: ... @typing.overload def delete_order( - self: BaseApi, + self, path_params: RequestPathParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -151,29 +141,23 @@ class DeleteOrder(BaseApi): @typing.overload def delete_order( - self: BaseApi, + self, path_params: RequestPathParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + api_client.ApiResponseWithoutDeserialization, ]: ... def delete_order( - self: BaseApi, - path_params: RequestPathParams = frozendict.frozendict(), - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + path_params = frozendict.frozendict(), + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._delete_order_oapg( path_params=path_params, stream=stream, @@ -187,20 +171,18 @@ class ApiFordelete(BaseApi): @typing.overload def delete( - self: BaseApi, + self, path_params: RequestPathParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, ]: ... @typing.overload def delete( - self: BaseApi, + self, path_params: RequestPathParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -210,29 +192,23 @@ class ApiFordelete(BaseApi): @typing.overload def delete( - self: BaseApi, + self, path_params: RequestPathParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + api_client.ApiResponseWithoutDeserialization, ]: ... def delete( - self: BaseApi, - path_params: RequestPathParams = frozendict.frozendict(), - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + path_params = frozendict.frozendict(), + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._delete_order_oapg( path_params=path_params, stream=stream, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/store_order_order_id/get.py b/samples/openapi3/client/petstore/python/petstore_api/paths/store_order_order_id/get.py index fede7756435..fa5e1cb306a 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/store_order_order_id/get.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/store_order_order_id/get.py @@ -127,22 +127,20 @@ class BaseApi(api_client.Api): @typing.overload def _get_order_by_id_oapg( - self: api_client.Api, + self, path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _get_order_by_id_oapg( - self: api_client.Api, + self, path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -153,33 +151,26 @@ def _get_order_by_id_oapg( @typing.overload def _get_order_by_id_oapg( - self: api_client.Api, + self, path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _get_order_by_id_oapg( - self: api_client.Api, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + path_params = frozendict.frozendict(), + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ Find purchase order by ID :param skip_deserialization: If true then api_response.response will be set but @@ -236,22 +227,20 @@ class GetOrderById(BaseApi): @typing.overload def get_order_by_id( - self: BaseApi, + self, path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def get_order_by_id( - self: BaseApi, + self, path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -262,33 +251,26 @@ def get_order_by_id( @typing.overload def get_order_by_id( - self: BaseApi, + self, path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def get_order_by_id( - self: BaseApi, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + path_params = frozendict.frozendict(), + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._get_order_by_id_oapg( path_params=path_params, accept_content_types=accept_content_types, @@ -303,22 +285,20 @@ class ApiForget(BaseApi): @typing.overload def get( - self: BaseApi, + self, path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def get( - self: BaseApi, + self, path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -329,33 +309,26 @@ def get( @typing.overload def get( - self: BaseApi, + self, path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def get( - self: BaseApi, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + path_params = frozendict.frozendict(), + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._get_order_by_id_oapg( path_params=path_params, accept_content_types=accept_content_types, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/store_order_order_id/get.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/store_order_order_id/get.pyi index 9af96a421ff..cf5712b3f03 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/store_order_order_id/get.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/store_order_order_id/get.pyi @@ -46,22 +46,20 @@ class BaseApi(api_client.Api): @typing.overload def _get_order_by_id_oapg( - self: api_client.Api, + self, path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _get_order_by_id_oapg( - self: api_client.Api, + self, path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -72,33 +70,26 @@ class BaseApi(api_client.Api): @typing.overload def _get_order_by_id_oapg( - self: api_client.Api, + self, path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _get_order_by_id_oapg( - self: api_client.Api, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + path_params = frozendict.frozendict(), + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ Find purchase order by ID :param skip_deserialization: If true then api_response.response will be set but @@ -155,22 +146,20 @@ class GetOrderById(BaseApi): @typing.overload def get_order_by_id( - self: BaseApi, + self, path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def get_order_by_id( - self: BaseApi, + self, path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -181,33 +170,26 @@ class GetOrderById(BaseApi): @typing.overload def get_order_by_id( - self: BaseApi, + self, path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def get_order_by_id( - self: BaseApi, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + path_params = frozendict.frozendict(), + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._get_order_by_id_oapg( path_params=path_params, accept_content_types=accept_content_types, @@ -222,22 +204,20 @@ class ApiForget(BaseApi): @typing.overload def get( - self: BaseApi, + self, path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def get( - self: BaseApi, + self, path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -248,33 +228,26 @@ class ApiForget(BaseApi): @typing.overload def get( - self: BaseApi, + self, path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def get( - self: BaseApi, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + path_params = frozendict.frozendict(), + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._get_order_by_id_oapg( path_params=path_params, accept_content_types=accept_content_types, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/user/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/user/post.py index 7cf4fe31dc7..59d2ad89d4c 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/user/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/user/post.py @@ -61,8 +61,8 @@ class BaseApi(api_client.Api): @typing.overload def _create_user_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -74,8 +74,8 @@ def _create_user_oapg( @typing.overload def _create_user_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -85,29 +85,26 @@ def _create_user_oapg( @typing.overload def _create_user_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization + api_client.ApiResponseWithoutDeserialization, ]: ... def _create_user_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ Create user :param skip_deserialization: If true then api_response.response will be set but @@ -164,8 +161,8 @@ class CreateUser(BaseApi): @typing.overload def create_user( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -177,8 +174,8 @@ def create_user( @typing.overload def create_user( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -188,29 +185,26 @@ def create_user( @typing.overload def create_user( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization + api_client.ApiResponseWithoutDeserialization, ]: ... def create_user( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._create_user_oapg( body=body, content_type=content_type, @@ -225,8 +219,8 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -238,8 +232,8 @@ def post( @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -249,29 +243,26 @@ def post( @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._create_user_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/user/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/user/post.pyi index bdca2572f9b..8ea4295dc51 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/user/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/user/post.pyi @@ -35,8 +35,8 @@ class BaseApi(api_client.Api): @typing.overload def _create_user_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -48,8 +48,8 @@ class BaseApi(api_client.Api): @typing.overload def _create_user_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -59,29 +59,26 @@ class BaseApi(api_client.Api): @typing.overload def _create_user_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization + api_client.ApiResponseWithoutDeserialization, ]: ... def _create_user_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ Create user :param skip_deserialization: If true then api_response.response will be set but @@ -138,8 +135,8 @@ class CreateUser(BaseApi): @typing.overload def create_user( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -151,8 +148,8 @@ class CreateUser(BaseApi): @typing.overload def create_user( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -162,29 +159,26 @@ class CreateUser(BaseApi): @typing.overload def create_user( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization + api_client.ApiResponseWithoutDeserialization, ]: ... def create_user( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._create_user_oapg( body=body, content_type=content_type, @@ -199,8 +193,8 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -212,8 +206,8 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -223,29 +217,26 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._create_user_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/user_create_with_array/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/user_create_with_array/post.py index f90bf89339b..5a8043591f3 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/user_create_with_array/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/user_create_with_array/post.py @@ -86,8 +86,8 @@ class BaseApi(api_client.Api): @typing.overload def _create_users_with_array_input_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,list, tuple, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -99,8 +99,8 @@ def _create_users_with_array_input_oapg( @typing.overload def _create_users_with_array_input_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,list, tuple, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -110,29 +110,26 @@ def _create_users_with_array_input_oapg( @typing.overload def _create_users_with_array_input_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,list, tuple, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization + api_client.ApiResponseWithoutDeserialization, ]: ... def _create_users_with_array_input_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ Creates list of users with given input array :param skip_deserialization: If true then api_response.response will be set but @@ -189,8 +186,8 @@ class CreateUsersWithArrayInput(BaseApi): @typing.overload def create_users_with_array_input( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,list, tuple, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -202,8 +199,8 @@ def create_users_with_array_input( @typing.overload def create_users_with_array_input( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,list, tuple, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -213,29 +210,26 @@ def create_users_with_array_input( @typing.overload def create_users_with_array_input( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,list, tuple, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization + api_client.ApiResponseWithoutDeserialization, ]: ... def create_users_with_array_input( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._create_users_with_array_input_oapg( body=body, content_type=content_type, @@ -250,8 +244,8 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,list, tuple, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -263,8 +257,8 @@ def post( @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,list, tuple, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -274,29 +268,26 @@ def post( @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,list, tuple, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._create_users_with_array_input_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/user_create_with_array/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/user_create_with_array/post.pyi index 7586ca9364a..7d4151f93fe 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/user_create_with_array/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/user_create_with_array/post.pyi @@ -60,8 +60,8 @@ class BaseApi(api_client.Api): @typing.overload def _create_users_with_array_input_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,list, tuple, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -73,8 +73,8 @@ class BaseApi(api_client.Api): @typing.overload def _create_users_with_array_input_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,list, tuple, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -84,29 +84,26 @@ class BaseApi(api_client.Api): @typing.overload def _create_users_with_array_input_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,list, tuple, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization + api_client.ApiResponseWithoutDeserialization, ]: ... def _create_users_with_array_input_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ Creates list of users with given input array :param skip_deserialization: If true then api_response.response will be set but @@ -163,8 +160,8 @@ class CreateUsersWithArrayInput(BaseApi): @typing.overload def create_users_with_array_input( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,list, tuple, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -176,8 +173,8 @@ class CreateUsersWithArrayInput(BaseApi): @typing.overload def create_users_with_array_input( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,list, tuple, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -187,29 +184,26 @@ class CreateUsersWithArrayInput(BaseApi): @typing.overload def create_users_with_array_input( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,list, tuple, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization + api_client.ApiResponseWithoutDeserialization, ]: ... def create_users_with_array_input( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._create_users_with_array_input_oapg( body=body, content_type=content_type, @@ -224,8 +218,8 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,list, tuple, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -237,8 +231,8 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,list, tuple, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -248,29 +242,26 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,list, tuple, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._create_users_with_array_input_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/user_create_with_list/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/user_create_with_list/post.py index 9917d6adfd9..715e192cc42 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/user_create_with_list/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/user_create_with_list/post.py @@ -86,8 +86,8 @@ class BaseApi(api_client.Api): @typing.overload def _create_users_with_list_input_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,list, tuple, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -99,8 +99,8 @@ def _create_users_with_list_input_oapg( @typing.overload def _create_users_with_list_input_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,list, tuple, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -110,29 +110,26 @@ def _create_users_with_list_input_oapg( @typing.overload def _create_users_with_list_input_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,list, tuple, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization + api_client.ApiResponseWithoutDeserialization, ]: ... def _create_users_with_list_input_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ Creates list of users with given input array :param skip_deserialization: If true then api_response.response will be set but @@ -189,8 +186,8 @@ class CreateUsersWithListInput(BaseApi): @typing.overload def create_users_with_list_input( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,list, tuple, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -202,8 +199,8 @@ def create_users_with_list_input( @typing.overload def create_users_with_list_input( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,list, tuple, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -213,29 +210,26 @@ def create_users_with_list_input( @typing.overload def create_users_with_list_input( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,list, tuple, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization + api_client.ApiResponseWithoutDeserialization, ]: ... def create_users_with_list_input( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._create_users_with_list_input_oapg( body=body, content_type=content_type, @@ -250,8 +244,8 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,list, tuple, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -263,8 +257,8 @@ def post( @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,list, tuple, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -274,29 +268,26 @@ def post( @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,list, tuple, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._create_users_with_list_input_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/user_create_with_list/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/user_create_with_list/post.pyi index d13d627dda1..f55c52bb2ff 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/user_create_with_list/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/user_create_with_list/post.pyi @@ -60,8 +60,8 @@ class BaseApi(api_client.Api): @typing.overload def _create_users_with_list_input_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,list, tuple, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -73,8 +73,8 @@ class BaseApi(api_client.Api): @typing.overload def _create_users_with_list_input_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,list, tuple, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -84,29 +84,26 @@ class BaseApi(api_client.Api): @typing.overload def _create_users_with_list_input_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,list, tuple, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization + api_client.ApiResponseWithoutDeserialization, ]: ... def _create_users_with_list_input_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ Creates list of users with given input array :param skip_deserialization: If true then api_response.response will be set but @@ -163,8 +160,8 @@ class CreateUsersWithListInput(BaseApi): @typing.overload def create_users_with_list_input( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,list, tuple, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -176,8 +173,8 @@ class CreateUsersWithListInput(BaseApi): @typing.overload def create_users_with_list_input( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,list, tuple, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -187,29 +184,26 @@ class CreateUsersWithListInput(BaseApi): @typing.overload def create_users_with_list_input( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,list, tuple, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization + api_client.ApiResponseWithoutDeserialization, ]: ... def create_users_with_list_input( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._create_users_with_list_input_oapg( body=body, content_type=content_type, @@ -224,8 +218,8 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,list, tuple, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -237,8 +231,8 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,list, tuple, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -248,29 +242,26 @@ class ApiForpost(BaseApi): @typing.overload def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,list, tuple, ], content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization + api_client.ApiResponseWithoutDeserialization, ]: ... def post( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, list, tuple, ], - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._create_users_with_list_input_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/user_login/get.py b/samples/openapi3/client/petstore/python/petstore_api/paths/user_login/get.py index b3cdc1da253..10ffcb4689e 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/user_login/get.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/user_login/get.py @@ -135,21 +135,20 @@ class BaseApi(api_client.Api): @typing.overload def _login_user_oapg( - self: api_client.Api, + self, query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _login_user_oapg( - self: api_client.Api, + self, query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -160,31 +159,26 @@ def _login_user_oapg( @typing.overload def _login_user_oapg( - self: api_client.Api, + self, query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _login_user_oapg( - self: api_client.Api, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + query_params = frozendict.frozendict(), + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ Logs user into the system :param skip_deserialization: If true then api_response.response will be set but @@ -242,21 +236,20 @@ class LoginUser(BaseApi): @typing.overload def login_user( - self: BaseApi, + self, query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def login_user( - self: BaseApi, + self, query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -267,31 +260,26 @@ def login_user( @typing.overload def login_user( - self: BaseApi, + self, query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def login_user( - self: BaseApi, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + query_params = frozendict.frozendict(), + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._login_user_oapg( query_params=query_params, accept_content_types=accept_content_types, @@ -306,21 +294,20 @@ class ApiForget(BaseApi): @typing.overload def get( - self: BaseApi, + self, query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def get( - self: BaseApi, + self, query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -331,31 +318,26 @@ def get( @typing.overload def get( - self: BaseApi, + self, query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def get( - self: BaseApi, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + query_params = frozendict.frozendict(), + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._login_user_oapg( query_params=query_params, accept_content_types=accept_content_types, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/user_login/get.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/user_login/get.pyi index 12d12885ae4..b98a78f6107 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/user_login/get.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/user_login/get.pyi @@ -42,21 +42,20 @@ class BaseApi(api_client.Api): @typing.overload def _login_user_oapg( - self: api_client.Api, + self, query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _login_user_oapg( - self: api_client.Api, + self, query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -67,31 +66,26 @@ class BaseApi(api_client.Api): @typing.overload def _login_user_oapg( - self: api_client.Api, + self, query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _login_user_oapg( - self: api_client.Api, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + query_params = frozendict.frozendict(), + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ Logs user into the system :param skip_deserialization: If true then api_response.response will be set but @@ -149,21 +143,20 @@ class LoginUser(BaseApi): @typing.overload def login_user( - self: BaseApi, + self, query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def login_user( - self: BaseApi, + self, query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -174,31 +167,26 @@ class LoginUser(BaseApi): @typing.overload def login_user( - self: BaseApi, + self, query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def login_user( - self: BaseApi, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + query_params = frozendict.frozendict(), + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._login_user_oapg( query_params=query_params, accept_content_types=accept_content_types, @@ -213,21 +201,20 @@ class ApiForget(BaseApi): @typing.overload def get( - self: BaseApi, + self, query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def get( - self: BaseApi, + self, query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -238,31 +225,26 @@ class ApiForget(BaseApi): @typing.overload def get( - self: BaseApi, + self, query_params: RequestQueryParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def get( - self: BaseApi, - query_params: RequestQueryParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + query_params = frozendict.frozendict(), + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._login_user_oapg( query_params=query_params, accept_content_types=accept_content_types, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/user_logout/get.py b/samples/openapi3/client/petstore/python/petstore_api/paths/user_logout/get.py index f089b713816..510c172b45c 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/user_logout/get.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/user_logout/get.py @@ -47,7 +47,7 @@ class BaseApi(api_client.Api): @typing.overload def _logout_user_oapg( - self: api_client.Api, + self, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, @@ -58,7 +58,7 @@ def _logout_user_oapg( @typing.overload def _logout_user_oapg( - self: api_client.Api, + self, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[True] = True, @@ -67,25 +67,22 @@ def _logout_user_oapg( @typing.overload def _logout_user_oapg( - self: api_client.Api, + self, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization + api_client.ApiResponseWithoutDeserialization, ]: ... def _logout_user_oapg( - self: api_client.Api, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization - ]: + self, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ Logs out current logged in user session :param skip_deserialization: If true then api_response.response will be set but @@ -126,7 +123,7 @@ class LogoutUser(BaseApi): @typing.overload def logout_user( - self: BaseApi, + self, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, @@ -137,7 +134,7 @@ def logout_user( @typing.overload def logout_user( - self: BaseApi, + self, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[True] = True, @@ -146,25 +143,22 @@ def logout_user( @typing.overload def logout_user( - self: BaseApi, + self, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization + api_client.ApiResponseWithoutDeserialization, ]: ... def logout_user( - self: BaseApi, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization - ]: + self, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._logout_user_oapg( stream=stream, timeout=timeout, @@ -177,7 +171,7 @@ class ApiForget(BaseApi): @typing.overload def get( - self: BaseApi, + self, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, @@ -188,7 +182,7 @@ def get( @typing.overload def get( - self: BaseApi, + self, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[True] = True, @@ -197,25 +191,22 @@ def get( @typing.overload def get( - self: BaseApi, + self, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization + api_client.ApiResponseWithoutDeserialization, ]: ... def get( - self: BaseApi, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization - ]: + self, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._logout_user_oapg( stream=stream, timeout=timeout, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/user_logout/get.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/user_logout/get.pyi index f2c3c333fdf..100c1b9a293 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/user_logout/get.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/user_logout/get.pyi @@ -30,7 +30,7 @@ class BaseApi(api_client.Api): @typing.overload def _logout_user_oapg( - self: api_client.Api, + self, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, @@ -41,7 +41,7 @@ class BaseApi(api_client.Api): @typing.overload def _logout_user_oapg( - self: api_client.Api, + self, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[True] = True, @@ -50,25 +50,22 @@ class BaseApi(api_client.Api): @typing.overload def _logout_user_oapg( - self: api_client.Api, + self, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization + api_client.ApiResponseWithoutDeserialization, ]: ... def _logout_user_oapg( - self: api_client.Api, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization - ]: + self, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ Logs out current logged in user session :param skip_deserialization: If true then api_response.response will be set but @@ -109,7 +106,7 @@ class LogoutUser(BaseApi): @typing.overload def logout_user( - self: BaseApi, + self, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, @@ -120,7 +117,7 @@ class LogoutUser(BaseApi): @typing.overload def logout_user( - self: BaseApi, + self, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[True] = True, @@ -129,25 +126,22 @@ class LogoutUser(BaseApi): @typing.overload def logout_user( - self: BaseApi, + self, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization + api_client.ApiResponseWithoutDeserialization, ]: ... def logout_user( - self: BaseApi, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization - ]: + self, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._logout_user_oapg( stream=stream, timeout=timeout, @@ -160,7 +154,7 @@ class ApiForget(BaseApi): @typing.overload def get( - self: BaseApi, + self, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, @@ -171,7 +165,7 @@ class ApiForget(BaseApi): @typing.overload def get( - self: BaseApi, + self, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[True] = True, @@ -180,25 +174,22 @@ class ApiForget(BaseApi): @typing.overload def get( - self: BaseApi, + self, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization + api_client.ApiResponseWithoutDeserialization, ]: ... def get( - self: BaseApi, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - ApiResponseForDefault, - api_client.ApiResponseWithoutDeserialization - ]: + self, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._logout_user_oapg( stream=stream, timeout=timeout, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/delete.py b/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/delete.py index ad23120a564..68767a8b1b4 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/delete.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/delete.py @@ -86,20 +86,18 @@ class BaseApi(api_client.Api): @typing.overload def _delete_user_oapg( - self: api_client.Api, + self, path_params: RequestPathParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, ]: ... @typing.overload def _delete_user_oapg( - self: api_client.Api, + self, path_params: RequestPathParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -109,29 +107,23 @@ def _delete_user_oapg( @typing.overload def _delete_user_oapg( - self: api_client.Api, + self, path_params: RequestPathParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + api_client.ApiResponseWithoutDeserialization, ]: ... def _delete_user_oapg( - self: api_client.Api, - path_params: RequestPathParams = frozendict.frozendict(), - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + path_params = frozendict.frozendict(), + stream = False, + timeout = None, + skip_deserialization = False, + ): """ Delete user :param skip_deserialization: If true then api_response.response will be set but @@ -182,20 +174,18 @@ class DeleteUser(BaseApi): @typing.overload def delete_user( - self: BaseApi, + self, path_params: RequestPathParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, ]: ... @typing.overload def delete_user( - self: BaseApi, + self, path_params: RequestPathParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -205,29 +195,23 @@ def delete_user( @typing.overload def delete_user( - self: BaseApi, + self, path_params: RequestPathParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + api_client.ApiResponseWithoutDeserialization, ]: ... def delete_user( - self: BaseApi, - path_params: RequestPathParams = frozendict.frozendict(), - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + path_params = frozendict.frozendict(), + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._delete_user_oapg( path_params=path_params, stream=stream, @@ -241,20 +225,18 @@ class ApiFordelete(BaseApi): @typing.overload def delete( - self: BaseApi, + self, path_params: RequestPathParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, ]: ... @typing.overload def delete( - self: BaseApi, + self, path_params: RequestPathParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -264,29 +246,23 @@ def delete( @typing.overload def delete( - self: BaseApi, + self, path_params: RequestPathParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + api_client.ApiResponseWithoutDeserialization, ]: ... def delete( - self: BaseApi, - path_params: RequestPathParams = frozendict.frozendict(), - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + path_params = frozendict.frozendict(), + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._delete_user_oapg( path_params=path_params, stream=stream, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/delete.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/delete.pyi index bf96604fe21..b0aca52fddf 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/delete.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/delete.pyi @@ -32,20 +32,18 @@ class BaseApi(api_client.Api): @typing.overload def _delete_user_oapg( - self: api_client.Api, + self, path_params: RequestPathParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, ]: ... @typing.overload def _delete_user_oapg( - self: api_client.Api, + self, path_params: RequestPathParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -55,29 +53,23 @@ class BaseApi(api_client.Api): @typing.overload def _delete_user_oapg( - self: api_client.Api, + self, path_params: RequestPathParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + api_client.ApiResponseWithoutDeserialization, ]: ... def _delete_user_oapg( - self: api_client.Api, - path_params: RequestPathParams = frozendict.frozendict(), - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + path_params = frozendict.frozendict(), + stream = False, + timeout = None, + skip_deserialization = False, + ): """ Delete user :param skip_deserialization: If true then api_response.response will be set but @@ -128,20 +120,18 @@ class DeleteUser(BaseApi): @typing.overload def delete_user( - self: BaseApi, + self, path_params: RequestPathParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, ]: ... @typing.overload def delete_user( - self: BaseApi, + self, path_params: RequestPathParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -151,29 +141,23 @@ class DeleteUser(BaseApi): @typing.overload def delete_user( - self: BaseApi, + self, path_params: RequestPathParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + api_client.ApiResponseWithoutDeserialization, ]: ... def delete_user( - self: BaseApi, - path_params: RequestPathParams = frozendict.frozendict(), - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + path_params = frozendict.frozendict(), + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._delete_user_oapg( path_params=path_params, stream=stream, @@ -187,20 +171,18 @@ class ApiFordelete(BaseApi): @typing.overload def delete( - self: BaseApi, + self, path_params: RequestPathParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, ]: ... @typing.overload def delete( - self: BaseApi, + self, path_params: RequestPathParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, @@ -210,29 +192,23 @@ class ApiFordelete(BaseApi): @typing.overload def delete( - self: BaseApi, + self, path_params: RequestPathParams = frozendict.frozendict(), stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + api_client.ApiResponseWithoutDeserialization, ]: ... def delete( - self: BaseApi, - path_params: RequestPathParams = frozendict.frozendict(), - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + path_params = frozendict.frozendict(), + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._delete_user_oapg( path_params=path_params, stream=stream, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/get.py b/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/get.py index 4d2b88518f7..09a40137ad7 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/get.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/get.py @@ -117,22 +117,20 @@ class BaseApi(api_client.Api): @typing.overload def _get_user_by_name_oapg( - self: api_client.Api, + self, path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _get_user_by_name_oapg( - self: api_client.Api, + self, path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -143,33 +141,26 @@ def _get_user_by_name_oapg( @typing.overload def _get_user_by_name_oapg( - self: api_client.Api, + self, path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _get_user_by_name_oapg( - self: api_client.Api, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + path_params = frozendict.frozendict(), + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ Get user by user name :param skip_deserialization: If true then api_response.response will be set but @@ -226,22 +217,20 @@ class GetUserByName(BaseApi): @typing.overload def get_user_by_name( - self: BaseApi, + self, path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def get_user_by_name( - self: BaseApi, + self, path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -252,33 +241,26 @@ def get_user_by_name( @typing.overload def get_user_by_name( - self: BaseApi, + self, path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def get_user_by_name( - self: BaseApi, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + path_params = frozendict.frozendict(), + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._get_user_by_name_oapg( path_params=path_params, accept_content_types=accept_content_types, @@ -293,22 +275,20 @@ class ApiForget(BaseApi): @typing.overload def get( - self: BaseApi, + self, path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def get( - self: BaseApi, + self, path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -319,33 +299,26 @@ def get( @typing.overload def get( - self: BaseApi, + self, path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def get( - self: BaseApi, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + path_params = frozendict.frozendict(), + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._get_user_by_name_oapg( path_params=path_params, accept_content_types=accept_content_types, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/get.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/get.pyi index 18ba77028d7..a0ac6e402f6 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/get.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/get.pyi @@ -41,22 +41,20 @@ class BaseApi(api_client.Api): @typing.overload def _get_user_by_name_oapg( - self: api_client.Api, + self, path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def _get_user_by_name_oapg( - self: api_client.Api, + self, path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -67,33 +65,26 @@ class BaseApi(api_client.Api): @typing.overload def _get_user_by_name_oapg( - self: api_client.Api, + self, path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def _get_user_by_name_oapg( - self: api_client.Api, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + path_params = frozendict.frozendict(), + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): """ Get user by user name :param skip_deserialization: If true then api_response.response will be set but @@ -150,22 +141,20 @@ class GetUserByName(BaseApi): @typing.overload def get_user_by_name( - self: BaseApi, + self, path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def get_user_by_name( - self: BaseApi, + self, path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -176,33 +165,26 @@ class GetUserByName(BaseApi): @typing.overload def get_user_by_name( - self: BaseApi, + self, path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def get_user_by_name( - self: BaseApi, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + path_params = frozendict.frozendict(), + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._get_user_by_name_oapg( path_params=path_params, accept_content_types=accept_content_types, @@ -217,22 +199,20 @@ class ApiForget(BaseApi): @typing.overload def get( - self: BaseApi, + self, path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponse, + ApiResponseFor200, ]: ... @typing.overload def get( - self: BaseApi, + self, path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, @@ -243,33 +223,26 @@ class ApiForget(BaseApi): @typing.overload def get( - self: BaseApi, + self, path_params: RequestPathParams = frozendict.frozendict(), accept_content_types: typing.Tuple[str] = _all_accept_content_types, stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + ApiResponseFor200, + api_client.ApiResponseWithoutDeserialization, ]: ... def get( - self: BaseApi, - path_params: RequestPathParams = frozendict.frozendict(), - accept_content_types: typing.Tuple[str] = _all_accept_content_types, - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + path_params = frozendict.frozendict(), + accept_content_types = _all_accept_content_types, + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._get_user_by_name_oapg( path_params=path_params, accept_content_types=accept_content_types, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/put.py b/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/put.py index af7f73a043c..bc7131d9096 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/put.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/put.py @@ -100,23 +100,21 @@ class BaseApi(api_client.Api): @typing.overload def _update_user_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], path_params: RequestPathParams = frozendict.frozendict(), content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, ]: ... @typing.overload def _update_user_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], path_params: RequestPathParams = frozendict.frozendict(), content_type: str = 'application/json', stream: bool = False, @@ -127,33 +125,27 @@ def _update_user_oapg( @typing.overload def _update_user_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], path_params: RequestPathParams = frozendict.frozendict(), content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + api_client.ApiResponseWithoutDeserialization, ]: ... def _update_user_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - path_params: RequestPathParams = frozendict.frozendict(), - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + path_params = frozendict.frozendict(), + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ Updated user :param skip_deserialization: If true then api_response.response will be set but @@ -220,23 +212,21 @@ class UpdateUser(BaseApi): @typing.overload def update_user( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], path_params: RequestPathParams = frozendict.frozendict(), content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, ]: ... @typing.overload def update_user( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], path_params: RequestPathParams = frozendict.frozendict(), content_type: str = 'application/json', stream: bool = False, @@ -247,33 +237,27 @@ def update_user( @typing.overload def update_user( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], path_params: RequestPathParams = frozendict.frozendict(), content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + api_client.ApiResponseWithoutDeserialization, ]: ... def update_user( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - path_params: RequestPathParams = frozendict.frozendict(), - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + path_params = frozendict.frozendict(), + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._update_user_oapg( body=body, path_params=path_params, @@ -289,23 +273,21 @@ class ApiForput(BaseApi): @typing.overload def put( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], path_params: RequestPathParams = frozendict.frozendict(), content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, ]: ... @typing.overload def put( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], path_params: RequestPathParams = frozendict.frozendict(), content_type: str = 'application/json', stream: bool = False, @@ -316,33 +298,27 @@ def put( @typing.overload def put( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], path_params: RequestPathParams = frozendict.frozendict(), content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + api_client.ApiResponseWithoutDeserialization, ]: ... def put( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - path_params: RequestPathParams = frozendict.frozendict(), - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + path_params = frozendict.frozendict(), + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._update_user_oapg( body=body, path_params=path_params, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/put.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/put.pyi index c509c3c896b..0fed65259f9 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/put.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/put.pyi @@ -37,23 +37,21 @@ class BaseApi(api_client.Api): @typing.overload def _update_user_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], path_params: RequestPathParams = frozendict.frozendict(), content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, ]: ... @typing.overload def _update_user_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], path_params: RequestPathParams = frozendict.frozendict(), content_type: str = 'application/json', stream: bool = False, @@ -64,33 +62,27 @@ class BaseApi(api_client.Api): @typing.overload def _update_user_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], path_params: RequestPathParams = frozendict.frozendict(), content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + api_client.ApiResponseWithoutDeserialization, ]: ... def _update_user_oapg( - self: api_client.Api, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - path_params: RequestPathParams = frozendict.frozendict(), - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + path_params = frozendict.frozendict(), + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): """ Updated user :param skip_deserialization: If true then api_response.response will be set but @@ -157,23 +149,21 @@ class UpdateUser(BaseApi): @typing.overload def update_user( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], path_params: RequestPathParams = frozendict.frozendict(), content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, ]: ... @typing.overload def update_user( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], path_params: RequestPathParams = frozendict.frozendict(), content_type: str = 'application/json', stream: bool = False, @@ -184,33 +174,27 @@ class UpdateUser(BaseApi): @typing.overload def update_user( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], path_params: RequestPathParams = frozendict.frozendict(), content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + api_client.ApiResponseWithoutDeserialization, ]: ... def update_user( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - path_params: RequestPathParams = frozendict.frozendict(), - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + path_params = frozendict.frozendict(), + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._update_user_oapg( body=body, path_params=path_params, @@ -226,23 +210,21 @@ class ApiForput(BaseApi): @typing.overload def put( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], path_params: RequestPathParams = frozendict.frozendict(), content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, ]: ... @typing.overload def put( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], path_params: RequestPathParams = frozendict.frozendict(), content_type: str = 'application/json', stream: bool = False, @@ -253,33 +235,27 @@ class ApiForput(BaseApi): @typing.overload def put( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], + self, + body: typing.Union[SchemaForRequestBodyApplicationJson,], path_params: RequestPathParams = frozendict.frozendict(), content_type: str = 'application/json', stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: bool = False, ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization + api_client.ApiResponseWithoutDeserialization, ]: ... def put( - self: BaseApi, - body: typing.Union[SchemaForRequestBodyApplicationJson, ], - path_params: RequestPathParams = frozendict.frozendict(), - content_type: str = 'application/json', - stream: bool = False, - timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, - skip_deserialization: bool = False, - ) -> typing.Union[ - api_client.ApiResponse, - api_client.ApiResponse, - api_client.ApiResponseWithoutDeserialization - ]: + self, + body, + path_params = frozendict.frozendict(), + content_type = 'application/json', + stream = False, + timeout = None, + skip_deserialization = False, + ): return self._update_user_oapg( body=body, path_params=path_params, From de44f7479b1d607f4c409896f8ecfddb5d93d9e9 Mon Sep 17 00:00:00 2001 From: Elton Chou Date: Sun, 2 Oct 2022 17:15:33 +0800 Subject: [PATCH 08/11] Add fallback return type --- .../main/resources/python/endpoint_args.handlebars | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/modules/openapi-json-schema-generator/src/main/resources/python/endpoint_args.handlebars b/modules/openapi-json-schema-generator/src/main/resources/python/endpoint_args.handlebars index 713921a73bf..4eef79959d2 100644 --- a/modules/openapi-json-schema-generator/src/main/resources/python/endpoint_args.handlebars +++ b/modules/openapi-json-schema-generator/src/main/resources/python/endpoint_args.handlebars @@ -4,7 +4,7 @@ {{#if isOverload}} body: typing.Union[{{#each content}}{{#with this.schema}}{{baseName}},{{> model_templates/schema_python_types }}{{/with}}{{/each}}{{#unless required}}schemas.Unset] = schemas.unset{{else}}]{{/unless}}, {{else}} - body, + body{{#unless required}} = schemas.unset{{/unless}}, {{/if}} {{/with}} {{/if}} @@ -52,17 +52,7 @@ ) -> api_client.ApiResponseWithoutDeserialization: {{/eq}} {{#eq skipDeserialization "False"}} -) -> typing.Union[ - {{#each responses}} - {{#if isDefault}} - ApiResponseForDefault, - {{else}} - {{#if is2xx}} - ApiResponseFor{{code}}, - {{/if}} - {{/if}} - {{/each}} -]: +) -> typing.Union[{{#each responses}}{{#if isDefault}}ApiResponseForDefault,{{else}}{{#if is2xx}}ApiResponseFor{{code}},{{/if}}{{/if}}{{/each}}api_client.ApiResponse,]: {{/eq}} {{#eq skipDeserialization "null"}} {{#if isOverload}} From ae398eb4707ee2228cc3b5beea70e6aaafa877f7 Mon Sep 17 00:00:00 2001 From: Elton Chou Date: Sun, 2 Oct 2022 17:16:13 +0800 Subject: [PATCH 09/11] Update samples --- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../request_body_post_not_request_body/post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../post.py | 12 +++--------- .../post.pyi | 12 +++--------- .../paths/another_fake_dummy/patch.py | 12 +++--------- .../paths/another_fake_dummy/patch.pyi | 12 +++--------- .../python/petstore_api/paths/fake/delete.py | 9 +++------ .../python/petstore_api/paths/fake/delete.pyi | 9 +++------ .../python/petstore_api/paths/fake/get.py | 15 ++++++--------- .../python/petstore_api/paths/fake/get.pyi | 15 ++++++--------- .../python/petstore_api/paths/fake/patch.py | 12 +++--------- .../python/petstore_api/paths/fake/patch.pyi | 12 +++--------- .../python/petstore_api/paths/fake/post.py | 15 ++++++--------- .../python/petstore_api/paths/fake/post.pyi | 15 ++++++--------- .../get.py | 18 ++++++------------ .../get.pyi | 18 ++++++------------ .../paths/fake_body_with_file_schema/put.py | 12 +++--------- .../paths/fake_body_with_file_schema/put.pyi | 12 +++--------- .../paths/fake_body_with_query_params/put.py | 12 +++--------- .../paths/fake_body_with_query_params/put.pyi | 12 +++--------- .../paths/fake_case_sensitive_params/put.py | 12 +++--------- .../paths/fake_case_sensitive_params/put.pyi | 12 +++--------- .../paths/fake_classname_test/patch.py | 12 +++--------- .../paths/fake_classname_test/patch.pyi | 12 +++--------- .../paths/fake_delete_coffee_id/delete.py | 15 +++------------ .../paths/fake_delete_coffee_id/delete.pyi | 15 +++------------ .../petstore_api/paths/fake_health/get.py | 12 +++--------- .../petstore_api/paths/fake_health/get.pyi | 12 +++--------- .../fake_inline_additional_properties/post.py | 12 +++--------- .../fake_inline_additional_properties/post.pyi | 12 +++--------- .../paths/fake_inline_composition_/post.py | 18 ++++++------------ .../paths/fake_inline_composition_/post.pyi | 18 ++++++------------ .../paths/fake_json_form_data/get.py | 18 ++++++------------ .../paths/fake_json_form_data/get.pyi | 18 ++++++------------ .../paths/fake_json_patch/patch.py | 18 ++++++------------ .../paths/fake_json_patch/patch.pyi | 18 ++++++------------ .../paths/fake_json_with_charset/post.py | 18 ++++++------------ .../paths/fake_json_with_charset/post.pyi | 18 ++++++------------ .../paths/fake_obj_in_query/get.py | 12 +++--------- .../paths/fake_obj_in_query/get.pyi | 12 +++--------- .../post.py | 18 ++++++------------ .../post.pyi | 18 ++++++------------ .../post.py | 18 ++++++------------ .../post.pyi | 18 ++++++------------ .../paths/fake_ref_obj_in_query/get.py | 12 +++--------- .../paths/fake_ref_obj_in_query/get.pyi | 12 +++--------- .../paths/fake_refs_array_of_enums/post.py | 18 ++++++------------ .../paths/fake_refs_array_of_enums/post.pyi | 18 ++++++------------ .../paths/fake_refs_arraymodel/post.py | 18 ++++++------------ .../paths/fake_refs_arraymodel/post.pyi | 18 ++++++------------ .../paths/fake_refs_boolean/post.py | 18 ++++++------------ .../paths/fake_refs_boolean/post.pyi | 18 ++++++------------ .../post.py | 18 ++++++------------ .../post.pyi | 18 ++++++------------ .../petstore_api/paths/fake_refs_enum/post.py | 18 ++++++------------ .../petstore_api/paths/fake_refs_enum/post.pyi | 18 ++++++------------ .../paths/fake_refs_mammal/post.py | 12 +++--------- .../paths/fake_refs_mammal/post.pyi | 12 +++--------- .../paths/fake_refs_number/post.py | 18 ++++++------------ .../paths/fake_refs_number/post.pyi | 18 ++++++------------ .../post.py | 18 ++++++------------ .../post.pyi | 18 ++++++------------ .../paths/fake_refs_string/post.py | 18 ++++++------------ .../paths/fake_refs_string/post.pyi | 18 ++++++------------ .../paths/fake_response_without_schema/get.py | 12 +++--------- .../paths/fake_response_without_schema/get.pyi | 12 +++--------- .../paths/fake_test_query_paramters/put.py | 12 +++--------- .../paths/fake_test_query_paramters/put.pyi | 12 +++--------- .../paths/fake_upload_download_file/post.py | 12 +++--------- .../paths/fake_upload_download_file/post.pyi | 12 +++--------- .../paths/fake_upload_file/post.py | 18 ++++++------------ .../paths/fake_upload_file/post.pyi | 18 ++++++------------ .../paths/fake_upload_files/post.py | 18 ++++++------------ .../paths/fake_upload_files/post.pyi | 18 ++++++------------ .../python/petstore_api/paths/foo/get.py | 12 +++--------- .../python/petstore_api/paths/foo/get.pyi | 12 +++--------- .../python/petstore_api/paths/pet/post.py | 12 +++--------- .../python/petstore_api/paths/pet/post.pyi | 12 +++--------- .../python/petstore_api/paths/pet/put.py | 9 +++------ .../python/petstore_api/paths/pet/put.pyi | 9 +++------ .../paths/pet_find_by_status/get.py | 12 +++--------- .../paths/pet_find_by_status/get.pyi | 12 +++--------- .../petstore_api/paths/pet_find_by_tags/get.py | 12 +++--------- .../paths/pet_find_by_tags/get.pyi | 12 +++--------- .../petstore_api/paths/pet_pet_id/delete.py | 9 +++------ .../petstore_api/paths/pet_pet_id/delete.pyi | 9 +++------ .../petstore_api/paths/pet_pet_id/get.py | 12 +++--------- .../petstore_api/paths/pet_pet_id/get.pyi | 12 +++--------- .../petstore_api/paths/pet_pet_id/post.py | 15 ++++++--------- .../petstore_api/paths/pet_pet_id/post.pyi | 15 ++++++--------- .../paths/pet_pet_id_upload_image/post.py | 18 ++++++------------ .../paths/pet_pet_id_upload_image/post.pyi | 18 ++++++------------ .../petstore_api/paths/store_inventory/get.py | 12 +++--------- .../petstore_api/paths/store_inventory/get.pyi | 12 +++--------- .../petstore_api/paths/store_order/post.py | 12 +++--------- .../petstore_api/paths/store_order/post.pyi | 12 +++--------- .../paths/store_order_order_id/delete.py | 9 +++------ .../paths/store_order_order_id/delete.pyi | 9 +++------ .../paths/store_order_order_id/get.py | 12 +++--------- .../paths/store_order_order_id/get.pyi | 12 +++--------- .../python/petstore_api/paths/user/post.py | 12 +++--------- .../python/petstore_api/paths/user/post.pyi | 12 +++--------- .../paths/user_create_with_array/post.py | 12 +++--------- .../paths/user_create_with_array/post.pyi | 12 +++--------- .../paths/user_create_with_list/post.py | 12 +++--------- .../paths/user_create_with_list/post.pyi | 12 +++--------- .../petstore_api/paths/user_login/get.py | 12 +++--------- .../petstore_api/paths/user_login/get.pyi | 12 +++--------- .../petstore_api/paths/user_logout/get.py | 12 +++--------- .../petstore_api/paths/user_logout/get.pyi | 12 +++--------- .../petstore_api/paths/user_username/delete.py | 9 +++------ .../paths/user_username/delete.pyi | 9 +++------ .../petstore_api/paths/user_username/get.py | 12 +++--------- .../petstore_api/paths/user_username/get.pyi | 12 +++--------- .../petstore_api/paths/user_username/put.py | 9 +++------ .../petstore_api/paths/user_username/put.pyi | 9 +++------ 460 files changed, 1506 insertions(+), 4218 deletions(-) diff --git a/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 b/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 index c1f4ada281d..c348da0ba3f 100644 --- a/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 +++ b/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 @@ -67,9 +67,7 @@ def _post_additionalproperties_allows_a_schema_which_should_validate_request_bod stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -162,9 +160,7 @@ def post_additionalproperties_allows_a_schema_which_should_validate_request_body stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -220,9 +216,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/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 b/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 index 63d5ca2d373..f50a377f7bb 100644 --- a/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 +++ b/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 @@ -41,9 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -136,9 +134,7 @@ class PostAdditionalpropertiesAllowsASchemaWhichShouldValidateRequestBody(BaseAp stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -194,9 +190,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/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 b/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 index f414126f954..005911a8a01 100644 --- a/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 +++ b/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 @@ -67,9 +67,7 @@ def _post_additionalproperties_are_allowed_by_default_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -162,9 +160,7 @@ def post_additionalproperties_are_allowed_by_default_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -220,9 +216,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/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 b/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 index ee8204d05bf..938f10acf31 100644 --- a/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 +++ b/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 @@ -41,9 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -136,9 +134,7 @@ class PostAdditionalpropertiesAreAllowedByDefaultRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -194,9 +190,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post.py index c033b0cd25a..9c77f5ffa4f 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post.py @@ -67,9 +67,7 @@ def _post_additionalproperties_can_exist_by_itself_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -162,9 +160,7 @@ def post_additionalproperties_can_exist_by_itself_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -220,9 +216,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post.pyi index 52b2d83f316..e56de7534cf 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post.pyi @@ -41,9 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -136,9 +134,7 @@ class PostAdditionalpropertiesCanExistByItselfRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -194,9 +190,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_should_not_look_in_applicators_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_should_not_look_in_applicators_request_body/post.py index 7517767744e..6d5c73b7965 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_should_not_look_in_applicators_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_should_not_look_in_applicators_request_body/post.py @@ -67,9 +67,7 @@ def _post_additionalproperties_should_not_look_in_applicators_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -162,9 +160,7 @@ def post_additionalproperties_should_not_look_in_applicators_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -220,9 +216,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_should_not_look_in_applicators_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_should_not_look_in_applicators_request_body/post.pyi index d38e5ee139f..4b81a18b08d 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_should_not_look_in_applicators_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_should_not_look_in_applicators_request_body/post.pyi @@ -41,9 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -136,9 +134,7 @@ class PostAdditionalpropertiesShouldNotLookInApplicatorsRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -194,9 +190,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post.py index 36606757c8d..94c5f3b177e 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post.py @@ -67,9 +67,7 @@ def _post_allof_combined_with_anyof_oneof_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -162,9 +160,7 @@ def post_allof_combined_with_anyof_oneof_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -220,9 +216,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post.pyi index 79e7f5be5bd..7981fe53777 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post.pyi @@ -41,9 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -136,9 +134,7 @@ class PostAllofCombinedWithAnyofOneofRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -194,9 +190,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_request_body/post.py index bd2ce78f547..0da6065de21 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_request_body/post.py @@ -67,9 +67,7 @@ def _post_allof_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -162,9 +160,7 @@ def post_allof_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -220,9 +216,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_request_body/post.pyi index 6fe9186c274..99805d15728 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_request_body/post.pyi @@ -41,9 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -136,9 +134,7 @@ class PostAllofRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -194,9 +190,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_simple_types_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_simple_types_request_body/post.py index 566077192af..fd3c204c6b6 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_simple_types_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_simple_types_request_body/post.py @@ -67,9 +67,7 @@ def _post_allof_simple_types_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -162,9 +160,7 @@ def post_allof_simple_types_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -220,9 +216,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_simple_types_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_simple_types_request_body/post.pyi index 65cb0c58043..8aba53ff790 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_simple_types_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_simple_types_request_body/post.pyi @@ -41,9 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -136,9 +134,7 @@ class PostAllofSimpleTypesRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -194,9 +190,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_base_schema_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_base_schema_request_body/post.py index 11f851d706c..f35f3c5cbfe 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_base_schema_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_base_schema_request_body/post.py @@ -67,9 +67,7 @@ def _post_allof_with_base_schema_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -162,9 +160,7 @@ def post_allof_with_base_schema_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -220,9 +216,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_base_schema_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_base_schema_request_body/post.pyi index 22150c5dab7..b1f9d61e2bc 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_base_schema_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_base_schema_request_body/post.pyi @@ -41,9 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -136,9 +134,7 @@ class PostAllofWithBaseSchemaRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -194,9 +190,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_one_empty_schema_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_one_empty_schema_request_body/post.py index 2dec41c9e41..54069ece634 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_one_empty_schema_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_one_empty_schema_request_body/post.py @@ -67,9 +67,7 @@ def _post_allof_with_one_empty_schema_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -162,9 +160,7 @@ def post_allof_with_one_empty_schema_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -220,9 +216,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_one_empty_schema_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_one_empty_schema_request_body/post.pyi index dda432f3151..3a1a49e7895 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_one_empty_schema_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_one_empty_schema_request_body/post.pyi @@ -41,9 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -136,9 +134,7 @@ class PostAllofWithOneEmptySchemaRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -194,9 +190,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post.py index d317dc88dec..18101c1a94b 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post.py @@ -67,9 +67,7 @@ def _post_allof_with_the_first_empty_schema_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -162,9 +160,7 @@ def post_allof_with_the_first_empty_schema_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -220,9 +216,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post.pyi index fc5f7e2fce1..0ad654fc8d8 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post.pyi @@ -41,9 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -136,9 +134,7 @@ class PostAllofWithTheFirstEmptySchemaRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -194,9 +190,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post.py index 7ac5ea4cd54..d0eabb7deee 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post.py @@ -67,9 +67,7 @@ def _post_allof_with_the_last_empty_schema_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -162,9 +160,7 @@ def post_allof_with_the_last_empty_schema_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -220,9 +216,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post.pyi index 4ad3f707042..a208630fcd5 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post.pyi @@ -41,9 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -136,9 +134,7 @@ class PostAllofWithTheLastEmptySchemaRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -194,9 +190,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post.py index 1c65de04a98..c7620de902c 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post.py @@ -67,9 +67,7 @@ def _post_allof_with_two_empty_schemas_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -162,9 +160,7 @@ def post_allof_with_two_empty_schemas_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -220,9 +216,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post.pyi index 03b8372ce1c..bb0910ebf6b 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post.pyi @@ -41,9 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -136,9 +134,7 @@ class PostAllofWithTwoEmptySchemasRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -194,9 +190,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_complex_types_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_complex_types_request_body/post.py index adc072324dc..9fe58900487 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_complex_types_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_complex_types_request_body/post.py @@ -67,9 +67,7 @@ def _post_anyof_complex_types_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -162,9 +160,7 @@ def post_anyof_complex_types_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -220,9 +216,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_complex_types_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_complex_types_request_body/post.pyi index 56407ebc631..1a60254d0e1 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_complex_types_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_complex_types_request_body/post.pyi @@ -41,9 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -136,9 +134,7 @@ class PostAnyofComplexTypesRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -194,9 +190,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_request_body/post.py index 9bd7dc27772..715898f59a9 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_request_body/post.py @@ -67,9 +67,7 @@ def _post_anyof_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -162,9 +160,7 @@ def post_anyof_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -220,9 +216,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_request_body/post.pyi index 816706a4ef9..aba3af925da 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_request_body/post.pyi @@ -41,9 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -136,9 +134,7 @@ class PostAnyofRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -194,9 +190,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_with_base_schema_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_with_base_schema_request_body/post.py index 2d131cdeebd..40ca1c2feb3 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_with_base_schema_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_with_base_schema_request_body/post.py @@ -67,9 +67,7 @@ def _post_anyof_with_base_schema_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -162,9 +160,7 @@ def post_anyof_with_base_schema_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -220,9 +216,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_with_base_schema_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_with_base_schema_request_body/post.pyi index 61bb5491245..2e624a182be 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_with_base_schema_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_with_base_schema_request_body/post.pyi @@ -41,9 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -136,9 +134,7 @@ class PostAnyofWithBaseSchemaRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -194,9 +190,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_with_one_empty_schema_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_with_one_empty_schema_request_body/post.py index 9cb217b32cd..ce966dc6e7b 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_with_one_empty_schema_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_with_one_empty_schema_request_body/post.py @@ -67,9 +67,7 @@ def _post_anyof_with_one_empty_schema_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -162,9 +160,7 @@ def post_anyof_with_one_empty_schema_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -220,9 +216,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_with_one_empty_schema_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_with_one_empty_schema_request_body/post.pyi index ee861a147b1..2456db204a5 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_with_one_empty_schema_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_with_one_empty_schema_request_body/post.pyi @@ -41,9 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -136,9 +134,7 @@ class PostAnyofWithOneEmptySchemaRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -194,9 +190,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post.py index a0d9c2b86ca..938b55a043e 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post.py @@ -67,9 +67,7 @@ def _post_array_type_matches_arrays_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -162,9 +160,7 @@ def post_array_type_matches_arrays_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -220,9 +216,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post.pyi index 6026fd3d462..88cd27685fa 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post.pyi @@ -41,9 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -136,9 +134,7 @@ class PostArrayTypeMatchesArraysRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -194,9 +190,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_boolean_type_matches_booleans_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_boolean_type_matches_booleans_request_body/post.py index f5da8825c3d..260ee24a228 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_boolean_type_matches_booleans_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_boolean_type_matches_booleans_request_body/post.py @@ -65,9 +65,7 @@ def _post_boolean_type_matches_booleans_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -160,9 +158,7 @@ def post_boolean_type_matches_booleans_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -218,9 +214,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_boolean_type_matches_booleans_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_boolean_type_matches_booleans_request_body/post.pyi index f2c160406a7..f54fd998415 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_boolean_type_matches_booleans_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_boolean_type_matches_booleans_request_body/post.pyi @@ -39,9 +39,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -134,9 +132,7 @@ class PostBooleanTypeMatchesBooleansRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -192,9 +188,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_int_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_int_request_body/post.py index 5716deff2d7..6900d48f0f3 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_int_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_int_request_body/post.py @@ -67,9 +67,7 @@ def _post_by_int_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -162,9 +160,7 @@ def post_by_int_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -220,9 +216,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_int_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_int_request_body/post.pyi index 04441f8b33d..06dfe9a0303 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_int_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_int_request_body/post.pyi @@ -41,9 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -136,9 +134,7 @@ class PostByIntRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -194,9 +190,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_number_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_number_request_body/post.py index d0fbc68482d..d3df02981db 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_number_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_number_request_body/post.py @@ -67,9 +67,7 @@ def _post_by_number_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -162,9 +160,7 @@ def post_by_number_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -220,9 +216,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_number_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_number_request_body/post.pyi index 4be040237c9..80f1c26be45 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_number_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_number_request_body/post.pyi @@ -41,9 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -136,9 +134,7 @@ class PostByNumberRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -194,9 +190,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_small_number_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_small_number_request_body/post.py index e31d5ee66b7..3b2ca99437a 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_small_number_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_small_number_request_body/post.py @@ -67,9 +67,7 @@ def _post_by_small_number_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -162,9 +160,7 @@ def post_by_small_number_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -220,9 +216,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_small_number_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_small_number_request_body/post.pyi index 66853a4cb0a..b6e48094ad2 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_small_number_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_small_number_request_body/post.pyi @@ -41,9 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -136,9 +134,7 @@ class PostBySmallNumberRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -194,9 +190,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_date_time_format_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_date_time_format_request_body/post.py index 76b6e1f3156..ad9bdde90c5 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_date_time_format_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_date_time_format_request_body/post.py @@ -88,9 +88,7 @@ def _post_date_time_format_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -183,9 +181,7 @@ def post_date_time_format_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -241,9 +237,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_date_time_format_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_date_time_format_request_body/post.pyi index bec917837c3..eeee884e731 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_date_time_format_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_date_time_format_request_body/post.pyi @@ -62,9 +62,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -157,9 +155,7 @@ class PostDateTimeFormatRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -215,9 +211,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_email_format_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_email_format_request_body/post.py index 4bba7736535..84ac297dadc 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_email_format_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_email_format_request_body/post.py @@ -87,9 +87,7 @@ def _post_email_format_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -182,9 +180,7 @@ def post_email_format_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -240,9 +236,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_email_format_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_email_format_request_body/post.pyi index a9042e5ea8b..7d50a6aa647 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_email_format_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_email_format_request_body/post.pyi @@ -61,9 +61,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -156,9 +154,7 @@ class PostEmailFormatRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -214,9 +210,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post.py index d73a2744c03..c87124f13b0 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post.py @@ -67,9 +67,7 @@ def _post_enum_with0_does_not_match_false_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -162,9 +160,7 @@ def post_enum_with0_does_not_match_false_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -220,9 +216,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post.pyi index debb33c2686..deae2e6297c 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post.pyi @@ -41,9 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -136,9 +134,7 @@ class PostEnumWith0DoesNotMatchFalseRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -194,9 +190,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with1_does_not_match_true_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with1_does_not_match_true_request_body/post.py index c36312154e3..f1fee679bfa 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with1_does_not_match_true_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with1_does_not_match_true_request_body/post.py @@ -67,9 +67,7 @@ def _post_enum_with1_does_not_match_true_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -162,9 +160,7 @@ def post_enum_with1_does_not_match_true_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -220,9 +216,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with1_does_not_match_true_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with1_does_not_match_true_request_body/post.pyi index 0e566f00073..610a01ade03 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with1_does_not_match_true_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with1_does_not_match_true_request_body/post.pyi @@ -41,9 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -136,9 +134,7 @@ class PostEnumWith1DoesNotMatchTrueRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -194,9 +190,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_escaped_characters_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_escaped_characters_request_body/post.py index 764a4da29a8..48e1daccbfb 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_escaped_characters_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_escaped_characters_request_body/post.py @@ -67,9 +67,7 @@ def _post_enum_with_escaped_characters_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -162,9 +160,7 @@ def post_enum_with_escaped_characters_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -220,9 +216,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_escaped_characters_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_escaped_characters_request_body/post.pyi index 4387965075d..c7c7f363f8a 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_escaped_characters_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_escaped_characters_request_body/post.pyi @@ -41,9 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -136,9 +134,7 @@ class PostEnumWithEscapedCharactersRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -194,9 +190,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_false_does_not_match0_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_false_does_not_match0_request_body/post.py index d38fc3236bb..9b935209674 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_false_does_not_match0_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_false_does_not_match0_request_body/post.py @@ -67,9 +67,7 @@ def _post_enum_with_false_does_not_match0_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -162,9 +160,7 @@ def post_enum_with_false_does_not_match0_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -220,9 +216,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_false_does_not_match0_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_false_does_not_match0_request_body/post.pyi index cc70ff31110..55522daa60f 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_false_does_not_match0_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_false_does_not_match0_request_body/post.pyi @@ -41,9 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -136,9 +134,7 @@ class PostEnumWithFalseDoesNotMatch0RequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -194,9 +190,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_true_does_not_match1_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_true_does_not_match1_request_body/post.py index e686cbacee7..6a3e9b819ee 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_true_does_not_match1_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_true_does_not_match1_request_body/post.py @@ -67,9 +67,7 @@ def _post_enum_with_true_does_not_match1_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -162,9 +160,7 @@ def post_enum_with_true_does_not_match1_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -220,9 +216,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_true_does_not_match1_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_true_does_not_match1_request_body/post.pyi index d3c6b701746..41ffc6c8724 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_true_does_not_match1_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_true_does_not_match1_request_body/post.pyi @@ -41,9 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -136,9 +134,7 @@ class PostEnumWithTrueDoesNotMatch1RequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -194,9 +190,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post.py index e07c82b9f58..cb1184250a4 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post.py @@ -67,9 +67,7 @@ def _post_enums_in_properties_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -162,9 +160,7 @@ def post_enums_in_properties_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -220,9 +216,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post.pyi index 95278557051..55623946bf4 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post.pyi @@ -41,9 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -136,9 +134,7 @@ class PostEnumsInPropertiesRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -194,9 +190,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_forbidden_property_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_forbidden_property_request_body/post.py index 205b10ea25c..a916c6062d5 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_forbidden_property_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_forbidden_property_request_body/post.py @@ -67,9 +67,7 @@ def _post_forbidden_property_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -162,9 +160,7 @@ def post_forbidden_property_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -220,9 +216,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_forbidden_property_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_forbidden_property_request_body/post.pyi index aa31d852101..868f27cc400 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_forbidden_property_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_forbidden_property_request_body/post.pyi @@ -41,9 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -136,9 +134,7 @@ class PostForbiddenPropertyRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -194,9 +190,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_hostname_format_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_hostname_format_request_body/post.py index a436f0d38a0..1d4798aaf48 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_hostname_format_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_hostname_format_request_body/post.py @@ -87,9 +87,7 @@ def _post_hostname_format_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -182,9 +180,7 @@ def post_hostname_format_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -240,9 +236,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_hostname_format_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_hostname_format_request_body/post.pyi index a51be22111c..bb1f2ddc892 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_hostname_format_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_hostname_format_request_body/post.pyi @@ -61,9 +61,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -156,9 +154,7 @@ class PostHostnameFormatRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -214,9 +210,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post.py index 3dd112e772e..0857a066ea2 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post.py @@ -65,9 +65,7 @@ def _post_integer_type_matches_integers_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -160,9 +158,7 @@ def post_integer_type_matches_integers_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -218,9 +214,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post.pyi index 5e8c945246a..bea770e9217 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post.pyi @@ -39,9 +39,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -134,9 +132,7 @@ class PostIntegerTypeMatchesIntegersRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -192,9 +188,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body/post.py index 0931822f80d..c78bc536ec5 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body/post.py @@ -67,9 +67,7 @@ def _post_invalid_instance_should_not_raise_error_when_float_division_inf_reques stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -162,9 +160,7 @@ def post_invalid_instance_should_not_raise_error_when_float_division_inf_request stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -220,9 +216,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body/post.pyi index 19eb4812731..91779c1e634 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body/post.pyi @@ -41,9 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -136,9 +134,7 @@ class PostInvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInfRequestBody(Base stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -194,9 +190,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_invalid_string_value_for_default_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_invalid_string_value_for_default_request_body/post.py index 18937f559b2..9f328184856 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_invalid_string_value_for_default_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_invalid_string_value_for_default_request_body/post.py @@ -67,9 +67,7 @@ def _post_invalid_string_value_for_default_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -162,9 +160,7 @@ def post_invalid_string_value_for_default_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -220,9 +216,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_invalid_string_value_for_default_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_invalid_string_value_for_default_request_body/post.pyi index 0a7ee77eaef..189cd56c49e 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_invalid_string_value_for_default_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_invalid_string_value_for_default_request_body/post.pyi @@ -41,9 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -136,9 +134,7 @@ class PostInvalidStringValueForDefaultRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -194,9 +190,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ipv4_format_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ipv4_format_request_body/post.py index 84c4bc7ccfa..dc9f221d8bf 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ipv4_format_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ipv4_format_request_body/post.py @@ -87,9 +87,7 @@ def _post_ipv4_format_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -182,9 +180,7 @@ def post_ipv4_format_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -240,9 +236,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ipv4_format_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ipv4_format_request_body/post.pyi index cf0cdee9970..ef1591a3303 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ipv4_format_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ipv4_format_request_body/post.pyi @@ -61,9 +61,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -156,9 +154,7 @@ class PostIpv4FormatRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -214,9 +210,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ipv6_format_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ipv6_format_request_body/post.py index 635d839216d..ceaf040655a 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ipv6_format_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ipv6_format_request_body/post.py @@ -87,9 +87,7 @@ def _post_ipv6_format_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -182,9 +180,7 @@ def post_ipv6_format_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -240,9 +236,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ipv6_format_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ipv6_format_request_body/post.pyi index c71b3b3af84..8a66ff2da25 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ipv6_format_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ipv6_format_request_body/post.pyi @@ -61,9 +61,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -156,9 +154,7 @@ class PostIpv6FormatRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -214,9 +210,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post.py index 8b637b6211e..a420b6f5f22 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post.py @@ -87,9 +87,7 @@ def _post_json_pointer_format_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -182,9 +180,7 @@ def post_json_pointer_format_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -240,9 +236,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post.pyi index 3221653d10e..8399b1d77dd 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post.pyi @@ -61,9 +61,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -156,9 +154,7 @@ class PostJsonPointerFormatRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -214,9 +210,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maximum_validation_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maximum_validation_request_body/post.py index 3fa5343a279..0f865ddbd8a 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maximum_validation_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maximum_validation_request_body/post.py @@ -67,9 +67,7 @@ def _post_maximum_validation_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -162,9 +160,7 @@ def post_maximum_validation_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -220,9 +216,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maximum_validation_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maximum_validation_request_body/post.pyi index 6abfecb5858..96ebfdfba23 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maximum_validation_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maximum_validation_request_body/post.pyi @@ -41,9 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -136,9 +134,7 @@ class PostMaximumValidationRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -194,9 +190,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post.py index 1204d80c8ea..3b3718b6dec 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post.py @@ -67,9 +67,7 @@ def _post_maximum_validation_with_unsigned_integer_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -162,9 +160,7 @@ def post_maximum_validation_with_unsigned_integer_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -220,9 +216,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post.pyi index fedcf4bad0d..c6b97185566 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post.pyi @@ -41,9 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -136,9 +134,7 @@ class PostMaximumValidationWithUnsignedIntegerRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -194,9 +190,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post.py index c615b1f2ca3..bb93660e117 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post.py @@ -67,9 +67,7 @@ def _post_maxitems_validation_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -162,9 +160,7 @@ def post_maxitems_validation_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -220,9 +216,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post.pyi index 3a273466be4..72757402d59 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post.pyi @@ -41,9 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -136,9 +134,7 @@ class PostMaxitemsValidationRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -194,9 +190,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post.py index 48d5e063b49..e84bd5ffcf7 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post.py @@ -67,9 +67,7 @@ def _post_maxlength_validation_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -162,9 +160,7 @@ def post_maxlength_validation_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -220,9 +216,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post.pyi index 5ad55e13665..d23d3cf3cc5 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post.pyi @@ -41,9 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -136,9 +134,7 @@ class PostMaxlengthValidationRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -194,9 +190,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post.py index 1d244bdb8f7..f85e375c49a 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post.py @@ -67,9 +67,7 @@ def _post_maxproperties0_means_the_object_is_empty_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -162,9 +160,7 @@ def post_maxproperties0_means_the_object_is_empty_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -220,9 +216,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post.pyi index cf54e45505a..2cfc155fd7a 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post.pyi @@ -41,9 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -136,9 +134,7 @@ class PostMaxproperties0MeansTheObjectIsEmptyRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -194,9 +190,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post.py index f2632e845df..9a9116ab054 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post.py @@ -67,9 +67,7 @@ def _post_maxproperties_validation_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -162,9 +160,7 @@ def post_maxproperties_validation_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -220,9 +216,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post.pyi index fa7291c673c..71410cf18e1 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post.pyi @@ -41,9 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -136,9 +134,7 @@ class PostMaxpropertiesValidationRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -194,9 +190,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minimum_validation_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minimum_validation_request_body/post.py index aa3a03a396e..69884748c19 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minimum_validation_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minimum_validation_request_body/post.py @@ -67,9 +67,7 @@ def _post_minimum_validation_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -162,9 +160,7 @@ def post_minimum_validation_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -220,9 +216,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minimum_validation_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minimum_validation_request_body/post.pyi index f7bf2dafd83..ca213a045bd 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minimum_validation_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minimum_validation_request_body/post.pyi @@ -41,9 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -136,9 +134,7 @@ class PostMinimumValidationRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -194,9 +190,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post.py index 30467ad405c..0af6a48c5dc 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post.py @@ -67,9 +67,7 @@ def _post_minimum_validation_with_signed_integer_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -162,9 +160,7 @@ def post_minimum_validation_with_signed_integer_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -220,9 +216,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post.pyi index a8e76f4ec4d..34b2d38c474 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post.pyi @@ -41,9 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -136,9 +134,7 @@ class PostMinimumValidationWithSignedIntegerRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -194,9 +190,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minitems_validation_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minitems_validation_request_body/post.py index c16f90818b8..e5b5d8ba49b 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minitems_validation_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minitems_validation_request_body/post.py @@ -67,9 +67,7 @@ def _post_minitems_validation_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -162,9 +160,7 @@ def post_minitems_validation_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -220,9 +216,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minitems_validation_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minitems_validation_request_body/post.pyi index 1c33c964c29..a913692f945 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minitems_validation_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minitems_validation_request_body/post.pyi @@ -41,9 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -136,9 +134,7 @@ class PostMinitemsValidationRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -194,9 +190,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minlength_validation_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minlength_validation_request_body/post.py index 2e1de9fb6d8..6c880e7916b 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minlength_validation_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minlength_validation_request_body/post.py @@ -67,9 +67,7 @@ def _post_minlength_validation_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -162,9 +160,7 @@ def post_minlength_validation_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -220,9 +216,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minlength_validation_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minlength_validation_request_body/post.pyi index 40266d38a20..063fe799c47 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minlength_validation_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minlength_validation_request_body/post.pyi @@ -41,9 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -136,9 +134,7 @@ class PostMinlengthValidationRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -194,9 +190,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post.py index cd3e2a3a1cd..7221097c8df 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post.py @@ -67,9 +67,7 @@ def _post_minproperties_validation_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -162,9 +160,7 @@ def post_minproperties_validation_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -220,9 +216,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post.pyi index f3be424163d..917f4d82084 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post.pyi @@ -41,9 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -136,9 +134,7 @@ class PostMinpropertiesValidationRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -194,9 +190,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post.py index 9491d46c18a..cc3c7b10d78 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post.py @@ -67,9 +67,7 @@ def _post_nested_allof_to_check_validation_semantics_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -162,9 +160,7 @@ def post_nested_allof_to_check_validation_semantics_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -220,9 +216,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post.pyi index b9d587f203b..0ac82460a9c 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post.pyi @@ -41,9 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -136,9 +134,7 @@ class PostNestedAllofToCheckValidationSemanticsRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -194,9 +190,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post.py index c499e8f98d9..c50360cbfc9 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post.py @@ -67,9 +67,7 @@ def _post_nested_anyof_to_check_validation_semantics_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -162,9 +160,7 @@ def post_nested_anyof_to_check_validation_semantics_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -220,9 +216,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post.pyi index 17bacec2ff8..b1fff82c515 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post.pyi @@ -41,9 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -136,9 +134,7 @@ class PostNestedAnyofToCheckValidationSemanticsRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -194,9 +190,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_items_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_items_request_body/post.py index ed8743801b2..d97f0e7fcce 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_items_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_items_request_body/post.py @@ -67,9 +67,7 @@ def _post_nested_items_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -162,9 +160,7 @@ def post_nested_items_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -220,9 +216,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_items_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_items_request_body/post.pyi index 67303cb2cd8..56cb80f2541 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_items_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_items_request_body/post.pyi @@ -41,9 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -136,9 +134,7 @@ class PostNestedItemsRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -194,9 +190,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post.py index ac8d51c046b..39d6cd25656 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post.py @@ -67,9 +67,7 @@ def _post_nested_oneof_to_check_validation_semantics_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -162,9 +160,7 @@ def post_nested_oneof_to_check_validation_semantics_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -220,9 +216,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post.pyi index c5d3e1c6056..7e1420196bc 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post.pyi @@ -41,9 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -136,9 +134,7 @@ class PostNestedOneofToCheckValidationSemanticsRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -194,9 +190,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post.py index bc69f89e3de..b3719c71220 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post.py @@ -136,9 +136,7 @@ def _post_not_more_complex_schema_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -231,9 +229,7 @@ def post_not_more_complex_schema_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -289,9 +285,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post.pyi index d0639aef0b5..569c1363f0a 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post.pyi @@ -110,9 +110,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -205,9 +203,7 @@ class PostNotMoreComplexSchemaRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -263,9 +259,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_not_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_not_request_body/post.py index 6cfcd90fbdc..e79e5c89a1f 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_not_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_not_request_body/post.py @@ -87,9 +87,7 @@ def _post_not_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -182,9 +180,7 @@ def post_not_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -240,9 +236,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_not_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_not_request_body/post.pyi index 3b5a981e8b7..39eea18036f 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_not_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_not_request_body/post.pyi @@ -61,9 +61,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -156,9 +154,7 @@ class PostNotRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -214,9 +210,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post.py index 94f20101f24..c633fa16e3f 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post.py @@ -67,9 +67,7 @@ def _post_nul_characters_in_strings_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -162,9 +160,7 @@ def post_nul_characters_in_strings_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -220,9 +216,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post.pyi index 6b3597d0648..064f26d7643 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post.pyi @@ -41,9 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -136,9 +134,7 @@ class PostNulCharactersInStringsRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -194,9 +190,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post.py index f0298ee7a39..569f8571150 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post.py @@ -65,9 +65,7 @@ def _post_null_type_matches_only_the_null_object_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -160,9 +158,7 @@ def post_null_type_matches_only_the_null_object_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -218,9 +214,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post.pyi index da3318b7a21..716d8e8d033 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post.pyi @@ -39,9 +39,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -134,9 +132,7 @@ class PostNullTypeMatchesOnlyTheNullObjectRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -192,9 +188,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post.py index aa9dcdee2e3..d6e5171dea1 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post.py @@ -65,9 +65,7 @@ def _post_number_type_matches_numbers_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -160,9 +158,7 @@ def post_number_type_matches_numbers_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -218,9 +214,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post.pyi index 882d790db80..8d9c38e17c5 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post.pyi @@ -39,9 +39,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -134,9 +132,7 @@ class PostNumberTypeMatchesNumbersRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -192,9 +188,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post.py index 7a2569566b1..d2228e8e5c6 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post.py @@ -67,9 +67,7 @@ def _post_object_properties_validation_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -162,9 +160,7 @@ def post_object_properties_validation_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -220,9 +216,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post.pyi index cddc3d59e95..e4fed4f9cce 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post.pyi @@ -41,9 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -136,9 +134,7 @@ class PostObjectPropertiesValidationRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -194,9 +190,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post.py index d10dd5667d4..f250ee53fe2 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post.py @@ -65,9 +65,7 @@ def _post_object_type_matches_objects_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -160,9 +158,7 @@ def post_object_type_matches_objects_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -218,9 +214,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post.pyi index 2287196c2e9..1c73e4e0cbf 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post.pyi @@ -39,9 +39,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -134,9 +132,7 @@ class PostObjectTypeMatchesObjectsRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -192,9 +188,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post.py index a5d3f5c38ec..f889e3caa23 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post.py @@ -67,9 +67,7 @@ def _post_oneof_complex_types_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -162,9 +160,7 @@ def post_oneof_complex_types_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -220,9 +216,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post.pyi index f1eff1228c4..d98985775d3 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post.pyi @@ -41,9 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -136,9 +134,7 @@ class PostOneofComplexTypesRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -194,9 +190,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_request_body/post.py index 87ba5b962ef..d04d02b7644 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_request_body/post.py @@ -67,9 +67,7 @@ def _post_oneof_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -162,9 +160,7 @@ def post_oneof_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -220,9 +216,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_request_body/post.pyi index 3b2008012b8..60eb362ff5f 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_request_body/post.pyi @@ -41,9 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -136,9 +134,7 @@ class PostOneofRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -194,9 +190,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post.py index 40daf6c75e4..b76c58fb661 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post.py @@ -67,9 +67,7 @@ def _post_oneof_with_base_schema_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -162,9 +160,7 @@ def post_oneof_with_base_schema_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -220,9 +216,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post.pyi index 55e2c6414eb..579e0395941 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post.pyi @@ -41,9 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -136,9 +134,7 @@ class PostOneofWithBaseSchemaRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -194,9 +190,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post.py index 944b7870d59..7ef3eb59803 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post.py @@ -67,9 +67,7 @@ def _post_oneof_with_empty_schema_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -162,9 +160,7 @@ def post_oneof_with_empty_schema_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -220,9 +216,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post.pyi index adc7374ab68..466c19d8df9 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post.pyi @@ -41,9 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -136,9 +134,7 @@ class PostOneofWithEmptySchemaRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -194,9 +190,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post.py index 7d41b1ede5c..ae0842d0124 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post.py @@ -67,9 +67,7 @@ def _post_oneof_with_required_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -162,9 +160,7 @@ def post_oneof_with_required_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -220,9 +216,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post.pyi index e2946bc9f14..35eca42f3ca 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post.pyi @@ -41,9 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -136,9 +134,7 @@ class PostOneofWithRequiredRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -194,9 +190,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post.py index 3599e977af1..33e87d26342 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post.py @@ -67,9 +67,7 @@ def _post_pattern_is_not_anchored_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -162,9 +160,7 @@ def post_pattern_is_not_anchored_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -220,9 +216,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post.pyi index ef2e85ad4b1..2551e4973d3 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post.pyi @@ -41,9 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -136,9 +134,7 @@ class PostPatternIsNotAnchoredRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -194,9 +190,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_pattern_validation_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_pattern_validation_request_body/post.py index bca019c745d..78805fa99a5 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_pattern_validation_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_pattern_validation_request_body/post.py @@ -67,9 +67,7 @@ def _post_pattern_validation_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -162,9 +160,7 @@ def post_pattern_validation_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -220,9 +216,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_pattern_validation_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_pattern_validation_request_body/post.pyi index c5cfbf87c87..d16e3d72bda 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_pattern_validation_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_pattern_validation_request_body/post.pyi @@ -41,9 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -136,9 +134,7 @@ class PostPatternValidationRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -194,9 +190,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post.py index 029214efccd..7bc781c527a 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post.py @@ -67,9 +67,7 @@ def _post_properties_with_escaped_characters_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -162,9 +160,7 @@ def post_properties_with_escaped_characters_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -220,9 +216,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post.pyi index a06478ba12d..11488d31da6 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post.pyi @@ -41,9 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -136,9 +134,7 @@ class PostPropertiesWithEscapedCharactersRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -194,9 +190,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post.py index 060818a8089..aafeb27b7f5 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post.py @@ -67,9 +67,7 @@ def _post_property_named_ref_that_is_not_a_reference_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -162,9 +160,7 @@ def post_property_named_ref_that_is_not_a_reference_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -220,9 +216,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post.pyi index 86a2e7a28de..a348898e183 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post.pyi @@ -41,9 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -136,9 +134,7 @@ class PostPropertyNamedRefThatIsNotAReferenceRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -194,9 +190,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_additionalproperties_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_additionalproperties_request_body/post.py index 99c05b6c7d1..e756539bc65 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_additionalproperties_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_additionalproperties_request_body/post.py @@ -67,9 +67,7 @@ def _post_ref_in_additionalproperties_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -162,9 +160,7 @@ def post_ref_in_additionalproperties_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -220,9 +216,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_additionalproperties_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_additionalproperties_request_body/post.pyi index a65ec1af7e6..0d4d9a402a3 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_additionalproperties_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_additionalproperties_request_body/post.pyi @@ -41,9 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -136,9 +134,7 @@ class PostRefInAdditionalpropertiesRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -194,9 +190,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_allof_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_allof_request_body/post.py index 57eac9c3abd..b433dc1c062 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_allof_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_allof_request_body/post.py @@ -67,9 +67,7 @@ def _post_ref_in_allof_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -162,9 +160,7 @@ def post_ref_in_allof_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -220,9 +216,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_allof_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_allof_request_body/post.pyi index 0a309316aa5..e358c2f3b9d 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_allof_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_allof_request_body/post.pyi @@ -41,9 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -136,9 +134,7 @@ class PostRefInAllofRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -194,9 +190,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_anyof_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_anyof_request_body/post.py index cac8ab126a0..5504b608aa7 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_anyof_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_anyof_request_body/post.py @@ -67,9 +67,7 @@ def _post_ref_in_anyof_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -162,9 +160,7 @@ def post_ref_in_anyof_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -220,9 +216,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_anyof_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_anyof_request_body/post.pyi index e792ca8b485..b296dacd58d 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_anyof_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_anyof_request_body/post.pyi @@ -41,9 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -136,9 +134,7 @@ class PostRefInAnyofRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -194,9 +190,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_items_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_items_request_body/post.py index d9fa22501e8..a4f2dfa4e0a 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_items_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_items_request_body/post.py @@ -67,9 +67,7 @@ def _post_ref_in_items_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -162,9 +160,7 @@ def post_ref_in_items_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -220,9 +216,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_items_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_items_request_body/post.pyi index 201f8e412c1..4d6150947d4 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_items_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_items_request_body/post.pyi @@ -41,9 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -136,9 +134,7 @@ class PostRefInItemsRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -194,9 +190,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_not_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_not_request_body/post.py index f4f7ccbacfb..5fba898a32f 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_not_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_not_request_body/post.py @@ -92,9 +92,7 @@ def _post_ref_in_not_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -187,9 +185,7 @@ def post_ref_in_not_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -245,9 +241,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_not_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_not_request_body/post.pyi index 39e6421bc82..688e21fd49c 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_not_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_not_request_body/post.pyi @@ -66,9 +66,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -161,9 +159,7 @@ class PostRefInNotRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -219,9 +215,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_oneof_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_oneof_request_body/post.py index 5fdc006e10d..4aa3c1973af 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_oneof_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_oneof_request_body/post.py @@ -67,9 +67,7 @@ def _post_ref_in_oneof_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -162,9 +160,7 @@ def post_ref_in_oneof_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -220,9 +216,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_oneof_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_oneof_request_body/post.pyi index 0b9d0d0687d..3381cc89133 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_oneof_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_oneof_request_body/post.pyi @@ -41,9 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -136,9 +134,7 @@ class PostRefInOneofRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -194,9 +190,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_property_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_property_request_body/post.py index 20a1282c53e..85ac4039ca7 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_property_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_property_request_body/post.py @@ -67,9 +67,7 @@ def _post_ref_in_property_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -162,9 +160,7 @@ def post_ref_in_property_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -220,9 +216,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_property_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_property_request_body/post.pyi index e52a17ae898..f7d74c0a07d 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_property_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_property_request_body/post.pyi @@ -41,9 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -136,9 +134,7 @@ class PostRefInPropertyRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -194,9 +190,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_default_validation_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_default_validation_request_body/post.py index 59969c0d778..2e3b1b81037 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_default_validation_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_default_validation_request_body/post.py @@ -67,9 +67,7 @@ def _post_required_default_validation_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -162,9 +160,7 @@ def post_required_default_validation_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -220,9 +216,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_default_validation_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_default_validation_request_body/post.pyi index fc4589b42cb..b5a9f468a40 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_default_validation_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_default_validation_request_body/post.pyi @@ -41,9 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -136,9 +134,7 @@ class PostRequiredDefaultValidationRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -194,9 +190,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_validation_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_validation_request_body/post.py index 523f4f86b75..a353cf5f4d4 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_validation_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_validation_request_body/post.py @@ -67,9 +67,7 @@ def _post_required_validation_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -162,9 +160,7 @@ def post_required_validation_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -220,9 +216,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_validation_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_validation_request_body/post.pyi index fcdc6cba430..eba46f8d238 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_validation_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_validation_request_body/post.pyi @@ -41,9 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -136,9 +134,7 @@ class PostRequiredValidationRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -194,9 +190,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post.py index ee76d8ad04d..cfa779e40d0 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post.py @@ -67,9 +67,7 @@ def _post_required_with_empty_array_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -162,9 +160,7 @@ def post_required_with_empty_array_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -220,9 +216,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post.pyi index a88b299624a..6f45d0206e9 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post.pyi @@ -41,9 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -136,9 +134,7 @@ class PostRequiredWithEmptyArrayRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -194,9 +190,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post.py index 17b90f244a4..d17bf43b44c 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post.py @@ -95,9 +95,7 @@ def _post_required_with_escaped_characters_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -190,9 +188,7 @@ def post_required_with_escaped_characters_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -248,9 +244,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post.pyi index f8adfa1338a..66e90e595eb 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post.pyi @@ -69,9 +69,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -164,9 +162,7 @@ class PostRequiredWithEscapedCharactersRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -222,9 +218,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post.py index 9b586ae9ac6..9fb235a59c6 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post.py @@ -67,9 +67,7 @@ def _post_simple_enum_validation_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -162,9 +160,7 @@ def post_simple_enum_validation_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -220,9 +216,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post.pyi index df4db245286..f0ad128ac77 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post.pyi @@ -41,9 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -136,9 +134,7 @@ class PostSimpleEnumValidationRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -194,9 +190,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post.py index 190383b5f97..1b33749afa6 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post.py @@ -65,9 +65,7 @@ def _post_string_type_matches_strings_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -160,9 +158,7 @@ def post_string_type_matches_strings_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -218,9 +214,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post.pyi index e11ec86c292..deb7f7ab644 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post.pyi @@ -39,9 +39,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -134,9 +132,7 @@ class PostStringTypeMatchesStringsRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -192,9 +188,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body/post.py index dd365753b9f..6bbf3322cfa 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body/post.py @@ -67,9 +67,7 @@ def _post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_re stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -162,9 +160,7 @@ def post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_req stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -220,9 +216,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body/post.pyi index b8d9b860095..b67a3ce063f 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body/post.pyi @@ -41,9 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -136,9 +134,7 @@ class PostTheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissingRequestBody(Ba stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -194,9 +190,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post.py index e4c722222d8..4b850c28c3a 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post.py @@ -67,9 +67,7 @@ def _post_uniqueitems_false_validation_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -162,9 +160,7 @@ def post_uniqueitems_false_validation_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -220,9 +216,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post.pyi index b0ba33d2464..07de3ed68bf 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post.pyi @@ -41,9 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -136,9 +134,7 @@ class PostUniqueitemsFalseValidationRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -194,9 +190,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post.py index 35d7a2eb8fa..ed09a54837f 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post.py @@ -67,9 +67,7 @@ def _post_uniqueitems_validation_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -162,9 +160,7 @@ def post_uniqueitems_validation_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -220,9 +216,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post.pyi index 61b98dc9525..3f8a5ce7d00 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post.pyi @@ -41,9 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -136,9 +134,7 @@ class PostUniqueitemsValidationRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -194,9 +190,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_format_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_format_request_body/post.py index 71116639b1c..b1dd829ef09 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_format_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_format_request_body/post.py @@ -87,9 +87,7 @@ def _post_uri_format_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -182,9 +180,7 @@ def post_uri_format_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -240,9 +236,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_format_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_format_request_body/post.pyi index bf26ee140a9..e6dd1565d6f 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_format_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_format_request_body/post.pyi @@ -61,9 +61,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -156,9 +154,7 @@ class PostUriFormatRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -214,9 +210,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post.py index 2397434582b..5481ee95312 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post.py @@ -87,9 +87,7 @@ def _post_uri_reference_format_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -182,9 +180,7 @@ def post_uri_reference_format_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -240,9 +236,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post.pyi index 889064f1641..a5a9dd81024 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post.pyi @@ -61,9 +61,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -156,9 +154,7 @@ class PostUriReferenceFormatRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -214,9 +210,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_template_format_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_template_format_request_body/post.py index 7ac6ef9d5b4..a02cdd84570 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_template_format_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_template_format_request_body/post.py @@ -87,9 +87,7 @@ def _post_uri_template_format_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -182,9 +180,7 @@ def post_uri_template_format_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -240,9 +236,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_template_format_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_template_format_request_body/post.pyi index c2a99c5b7a6..6d57a164c98 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_template_format_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_template_format_request_body/post.pyi @@ -61,9 +61,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -156,9 +154,7 @@ class PostUriTemplateFormatRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -214,9 +210,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types/post.py index 5766ec54e05..88f97eea811 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types/post.py @@ -65,9 +65,7 @@ def _post_additionalproperties_allows_a_schema_which_should_validate_response_bo stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -146,9 +144,7 @@ def post_additionalproperties_allows_a_schema_which_should_validate_response_bod stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -199,9 +195,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types/post.pyi index 44046acf5cc..14992012034 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types/post.pyi @@ -42,9 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -123,9 +121,7 @@ class PostAdditionalpropertiesAllowsASchemaWhichShouldValidateResponseBodyForCon stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -176,9 +172,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post.py index c3316aac4aa..d9ee011fe75 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post.py @@ -65,9 +65,7 @@ def _post_additionalproperties_are_allowed_by_default_response_body_for_content_ stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -146,9 +144,7 @@ def post_additionalproperties_are_allowed_by_default_response_body_for_content_t stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -199,9 +195,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post.pyi index 3b531cf38ca..915da3a0817 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post.pyi @@ -42,9 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -123,9 +121,7 @@ class PostAdditionalpropertiesAreAllowedByDefaultResponseBodyForContentTypes(Bas stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -176,9 +172,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post.py index 36e40b81ffb..eb85afba21f 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post.py @@ -65,9 +65,7 @@ def _post_additionalproperties_can_exist_by_itself_response_body_for_content_typ stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -146,9 +144,7 @@ def post_additionalproperties_can_exist_by_itself_response_body_for_content_type stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -199,9 +195,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post.pyi index 676ee2d34e1..c855c03be7b 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post.pyi @@ -42,9 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -123,9 +121,7 @@ class PostAdditionalpropertiesCanExistByItselfResponseBodyForContentTypes(BaseAp stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -176,9 +172,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types/post.py index 6f8b7bda15b..dcdf4798bbb 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types/post.py @@ -65,9 +65,7 @@ def _post_additionalproperties_should_not_look_in_applicators_response_body_for_ stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -146,9 +144,7 @@ def post_additionalproperties_should_not_look_in_applicators_response_body_for_c stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -199,9 +195,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types/post.pyi index 1b820aa31fa..17a08b36a4c 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types/post.pyi @@ -42,9 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -123,9 +121,7 @@ class PostAdditionalpropertiesShouldNotLookInApplicatorsResponseBodyForContentTy stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -176,9 +172,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post.py index 71bfb0ab3af..65afa000971 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post.py @@ -65,9 +65,7 @@ def _post_allof_combined_with_anyof_oneof_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -146,9 +144,7 @@ def post_allof_combined_with_anyof_oneof_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -199,9 +195,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post.pyi index a387aa9341b..3021c37c6c6 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post.pyi @@ -42,9 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -123,9 +121,7 @@ class PostAllofCombinedWithAnyofOneofResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -176,9 +172,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_response_body_for_content_types/post.py index ef43e92bf05..b0500b3af8b 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_response_body_for_content_types/post.py @@ -65,9 +65,7 @@ def _post_allof_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -146,9 +144,7 @@ def post_allof_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -199,9 +195,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_response_body_for_content_types/post.pyi index 72eecd7a9ae..b8097ec6358 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_response_body_for_content_types/post.pyi @@ -42,9 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -123,9 +121,7 @@ class PostAllofResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -176,9 +172,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_simple_types_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_simple_types_response_body_for_content_types/post.py index fb597c4d1c0..de8fffd0c8b 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_simple_types_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_simple_types_response_body_for_content_types/post.py @@ -65,9 +65,7 @@ def _post_allof_simple_types_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -146,9 +144,7 @@ def post_allof_simple_types_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -199,9 +195,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_simple_types_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_simple_types_response_body_for_content_types/post.pyi index 696b0f06851..4693132d581 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_simple_types_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_simple_types_response_body_for_content_types/post.pyi @@ -42,9 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -123,9 +121,7 @@ class PostAllofSimpleTypesResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -176,9 +172,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post.py index 9df3d8552e4..fa6a1ef1d0a 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post.py @@ -65,9 +65,7 @@ def _post_allof_with_base_schema_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -146,9 +144,7 @@ def post_allof_with_base_schema_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -199,9 +195,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post.pyi index 312699ac1c5..f394bc7cbba 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post.pyi @@ -42,9 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -123,9 +121,7 @@ class PostAllofWithBaseSchemaResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -176,9 +172,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post.py index 45019f8273f..0f6bcbda90a 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post.py @@ -65,9 +65,7 @@ def _post_allof_with_one_empty_schema_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -146,9 +144,7 @@ def post_allof_with_one_empty_schema_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -199,9 +195,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post.pyi index 2a10c53732a..d6304a66c11 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post.pyi @@ -42,9 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -123,9 +121,7 @@ class PostAllofWithOneEmptySchemaResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -176,9 +172,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post.py index 8102cd0e67f..e8e3456a92d 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post.py @@ -65,9 +65,7 @@ def _post_allof_with_the_first_empty_schema_response_body_for_content_types_oapg stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -146,9 +144,7 @@ def post_allof_with_the_first_empty_schema_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -199,9 +195,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post.pyi index 14e52412874..32adc167693 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post.pyi @@ -42,9 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -123,9 +121,7 @@ class PostAllofWithTheFirstEmptySchemaResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -176,9 +172,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post.py index 73657909e74..54e0bdbeec2 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post.py @@ -65,9 +65,7 @@ def _post_allof_with_the_last_empty_schema_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -146,9 +144,7 @@ def post_allof_with_the_last_empty_schema_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -199,9 +195,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post.pyi index 0af3ca9c6a9..953946c6003 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post.pyi @@ -42,9 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -123,9 +121,7 @@ class PostAllofWithTheLastEmptySchemaResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -176,9 +172,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post.py index 7f5e7d1d418..a55254f77ad 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post.py @@ -65,9 +65,7 @@ def _post_allof_with_two_empty_schemas_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -146,9 +144,7 @@ def post_allof_with_two_empty_schemas_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -199,9 +195,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post.pyi index a7ff5bd34ec..abfb8348c77 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post.pyi @@ -42,9 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -123,9 +121,7 @@ class PostAllofWithTwoEmptySchemasResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -176,9 +172,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post.py index 218832d5852..31a5816c883 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post.py @@ -65,9 +65,7 @@ def _post_anyof_complex_types_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -146,9 +144,7 @@ def post_anyof_complex_types_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -199,9 +195,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post.pyi index 5c3b9615d1d..2c9e620912c 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post.pyi @@ -42,9 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -123,9 +121,7 @@ class PostAnyofComplexTypesResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -176,9 +172,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_response_body_for_content_types/post.py index 242dbcc3cf2..f9ee5bddd0e 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_response_body_for_content_types/post.py @@ -65,9 +65,7 @@ def _post_anyof_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -146,9 +144,7 @@ def post_anyof_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -199,9 +195,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_response_body_for_content_types/post.pyi index 7aa512d1d3d..23de0fed6fb 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_response_body_for_content_types/post.pyi @@ -42,9 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -123,9 +121,7 @@ class PostAnyofResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -176,9 +172,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post.py index 802f9ac4d3f..a1fd2bf5616 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post.py @@ -65,9 +65,7 @@ def _post_anyof_with_base_schema_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -146,9 +144,7 @@ def post_anyof_with_base_schema_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -199,9 +195,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post.pyi index d1ed84ea8be..928c029715f 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post.pyi @@ -42,9 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -123,9 +121,7 @@ class PostAnyofWithBaseSchemaResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -176,9 +172,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post.py index 11b71e1db5b..71568303fc3 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post.py @@ -65,9 +65,7 @@ def _post_anyof_with_one_empty_schema_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -146,9 +144,7 @@ def post_anyof_with_one_empty_schema_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -199,9 +195,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post.pyi index caae0712c2e..c5a8b886f64 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post.pyi @@ -42,9 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -123,9 +121,7 @@ class PostAnyofWithOneEmptySchemaResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -176,9 +172,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post.py index 5f3dcd2cdce..fdc5f4bda09 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post.py @@ -65,9 +65,7 @@ def _post_array_type_matches_arrays_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -146,9 +144,7 @@ def post_array_type_matches_arrays_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -199,9 +195,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post.pyi index fde1b602f89..868bb4ae5df 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post.pyi @@ -42,9 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -123,9 +121,7 @@ class PostArrayTypeMatchesArraysResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -176,9 +172,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post.py index 7021ba96401..fb5425946e1 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post.py @@ -63,9 +63,7 @@ def _post_boolean_type_matches_booleans_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -144,9 +142,7 @@ def post_boolean_type_matches_booleans_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -197,9 +193,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post.pyi index 037177ce010..dbcb3f1b6e5 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post.pyi @@ -40,9 +40,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -121,9 +119,7 @@ class PostBooleanTypeMatchesBooleansResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -174,9 +170,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_by_int_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_by_int_response_body_for_content_types/post.py index a280f8ab4e8..685dbb2f8c7 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_by_int_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_by_int_response_body_for_content_types/post.py @@ -65,9 +65,7 @@ def _post_by_int_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -146,9 +144,7 @@ def post_by_int_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -199,9 +195,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_by_int_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_by_int_response_body_for_content_types/post.pyi index 38d8f0cf063..43dbb53ca10 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_by_int_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_by_int_response_body_for_content_types/post.pyi @@ -42,9 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -123,9 +121,7 @@ class PostByIntResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -176,9 +172,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_by_number_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_by_number_response_body_for_content_types/post.py index 36644eef86d..c448aadb429 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_by_number_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_by_number_response_body_for_content_types/post.py @@ -65,9 +65,7 @@ def _post_by_number_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -146,9 +144,7 @@ def post_by_number_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -199,9 +195,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_by_number_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_by_number_response_body_for_content_types/post.pyi index bc964050ecb..011d3675b48 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_by_number_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_by_number_response_body_for_content_types/post.pyi @@ -42,9 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -123,9 +121,7 @@ class PostByNumberResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -176,9 +172,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_by_small_number_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_by_small_number_response_body_for_content_types/post.py index 2631a794536..acfe48777f7 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_by_small_number_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_by_small_number_response_body_for_content_types/post.py @@ -65,9 +65,7 @@ def _post_by_small_number_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -146,9 +144,7 @@ def post_by_small_number_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -199,9 +195,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_by_small_number_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_by_small_number_response_body_for_content_types/post.pyi index 0ab49177058..9708b9b6d15 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_by_small_number_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_by_small_number_response_body_for_content_types/post.pyi @@ -42,9 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -123,9 +121,7 @@ class PostBySmallNumberResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -176,9 +172,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_date_time_format_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_date_time_format_response_body_for_content_types/post.py index dd29952fdef..5f53e85fdc4 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_date_time_format_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_date_time_format_response_body_for_content_types/post.py @@ -86,9 +86,7 @@ def _post_date_time_format_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -167,9 +165,7 @@ def post_date_time_format_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -220,9 +216,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_date_time_format_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_date_time_format_response_body_for_content_types/post.pyi index 0110e5f9eff..d7121ca5e77 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_date_time_format_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_date_time_format_response_body_for_content_types/post.pyi @@ -63,9 +63,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -144,9 +142,7 @@ class PostDateTimeFormatResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -197,9 +193,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_email_format_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_email_format_response_body_for_content_types/post.py index 48e7e2275f9..cffaf1058d7 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_email_format_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_email_format_response_body_for_content_types/post.py @@ -85,9 +85,7 @@ def _post_email_format_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -166,9 +164,7 @@ def post_email_format_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -219,9 +215,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_email_format_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_email_format_response_body_for_content_types/post.pyi index 920b4e928d7..473e1249469 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_email_format_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_email_format_response_body_for_content_types/post.pyi @@ -62,9 +62,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -143,9 +141,7 @@ class PostEmailFormatResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -196,9 +192,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post.py index aa078178630..8d29541c2c1 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post.py @@ -65,9 +65,7 @@ def _post_enum_with0_does_not_match_false_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -146,9 +144,7 @@ def post_enum_with0_does_not_match_false_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -199,9 +195,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post.pyi index 0c31872d934..dbbcb406676 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post.pyi @@ -42,9 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -123,9 +121,7 @@ class PostEnumWith0DoesNotMatchFalseResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -176,9 +172,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post.py index 67f769db8ef..9fe2f6c5ea4 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post.py @@ -65,9 +65,7 @@ def _post_enum_with1_does_not_match_true_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -146,9 +144,7 @@ def post_enum_with1_does_not_match_true_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -199,9 +195,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post.pyi index e2601146c40..4ab8c860173 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post.pyi @@ -42,9 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -123,9 +121,7 @@ class PostEnumWith1DoesNotMatchTrueResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -176,9 +172,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post.py index 3f55fe26842..05afb0d41c7 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post.py @@ -65,9 +65,7 @@ def _post_enum_with_escaped_characters_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -146,9 +144,7 @@ def post_enum_with_escaped_characters_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -199,9 +195,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post.pyi index 56649f09276..2e8e11421b9 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post.pyi @@ -42,9 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -123,9 +121,7 @@ class PostEnumWithEscapedCharactersResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -176,9 +172,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post.py index 674c622e268..9a9aca3f6ae 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post.py @@ -65,9 +65,7 @@ def _post_enum_with_false_does_not_match0_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -146,9 +144,7 @@ def post_enum_with_false_does_not_match0_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -199,9 +195,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post.pyi index 70c33621f89..ec615db1020 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post.pyi @@ -42,9 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -123,9 +121,7 @@ class PostEnumWithFalseDoesNotMatch0ResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -176,9 +172,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post.py index c7c76afd6a1..ec0f4335a5b 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post.py @@ -65,9 +65,7 @@ def _post_enum_with_true_does_not_match1_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -146,9 +144,7 @@ def post_enum_with_true_does_not_match1_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -199,9 +195,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post.pyi index 53edef8b734..52b3becb76e 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post.pyi @@ -42,9 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -123,9 +121,7 @@ class PostEnumWithTrueDoesNotMatch1ResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -176,9 +172,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enums_in_properties_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enums_in_properties_response_body_for_content_types/post.py index 07a195cd0c2..41a60df48af 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enums_in_properties_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enums_in_properties_response_body_for_content_types/post.py @@ -65,9 +65,7 @@ def _post_enums_in_properties_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -146,9 +144,7 @@ def post_enums_in_properties_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -199,9 +195,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enums_in_properties_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enums_in_properties_response_body_for_content_types/post.pyi index 0ac9748cf8b..8657c1bc26c 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enums_in_properties_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enums_in_properties_response_body_for_content_types/post.pyi @@ -42,9 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -123,9 +121,7 @@ class PostEnumsInPropertiesResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -176,9 +172,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_forbidden_property_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_forbidden_property_response_body_for_content_types/post.py index d7b5e839556..ca7029d85bb 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_forbidden_property_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_forbidden_property_response_body_for_content_types/post.py @@ -65,9 +65,7 @@ def _post_forbidden_property_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -146,9 +144,7 @@ def post_forbidden_property_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -199,9 +195,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_forbidden_property_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_forbidden_property_response_body_for_content_types/post.pyi index dda66f028c8..7d5b23ccc10 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_forbidden_property_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_forbidden_property_response_body_for_content_types/post.pyi @@ -42,9 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -123,9 +121,7 @@ class PostForbiddenPropertyResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -176,9 +172,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_hostname_format_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_hostname_format_response_body_for_content_types/post.py index 20003a894a5..8de2de2ba8e 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_hostname_format_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_hostname_format_response_body_for_content_types/post.py @@ -85,9 +85,7 @@ def _post_hostname_format_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -166,9 +164,7 @@ def post_hostname_format_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -219,9 +215,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_hostname_format_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_hostname_format_response_body_for_content_types/post.pyi index da3aa9109b1..23d97712eab 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_hostname_format_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_hostname_format_response_body_for_content_types/post.pyi @@ -62,9 +62,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -143,9 +141,7 @@ class PostHostnameFormatResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -196,9 +192,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post.py index ef1b0cbaae6..0f48a370a3e 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post.py @@ -63,9 +63,7 @@ def _post_integer_type_matches_integers_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -144,9 +142,7 @@ def post_integer_type_matches_integers_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -197,9 +193,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post.pyi index 5392840664f..43cfa45410a 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post.pyi @@ -40,9 +40,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -121,9 +119,7 @@ class PostIntegerTypeMatchesIntegersResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -174,9 +170,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types/post.py index 5ebdabab983..19e1a7b5b6c 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types/post.py @@ -65,9 +65,7 @@ def _post_invalid_instance_should_not_raise_error_when_float_division_inf_respon stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -146,9 +144,7 @@ def post_invalid_instance_should_not_raise_error_when_float_division_inf_respons stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -199,9 +195,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types/post.pyi index 0aa39f038a0..73a9271f8fd 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types/post.pyi @@ -42,9 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -123,9 +121,7 @@ class PostInvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInfResponseBodyForC stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -176,9 +172,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_invalid_string_value_for_default_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_invalid_string_value_for_default_response_body_for_content_types/post.py index 45aa6a90e10..9192cb87527 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_invalid_string_value_for_default_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_invalid_string_value_for_default_response_body_for_content_types/post.py @@ -65,9 +65,7 @@ def _post_invalid_string_value_for_default_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -146,9 +144,7 @@ def post_invalid_string_value_for_default_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -199,9 +195,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_invalid_string_value_for_default_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_invalid_string_value_for_default_response_body_for_content_types/post.pyi index 242367bd29f..bc895db4859 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_invalid_string_value_for_default_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_invalid_string_value_for_default_response_body_for_content_types/post.pyi @@ -42,9 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -123,9 +121,7 @@ class PostInvalidStringValueForDefaultResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -176,9 +172,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ipv4_format_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ipv4_format_response_body_for_content_types/post.py index f4a194a1d8d..2c78693fde4 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ipv4_format_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ipv4_format_response_body_for_content_types/post.py @@ -85,9 +85,7 @@ def _post_ipv4_format_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -166,9 +164,7 @@ def post_ipv4_format_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -219,9 +215,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ipv4_format_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ipv4_format_response_body_for_content_types/post.pyi index 88600b180b9..39e947d8db5 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ipv4_format_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ipv4_format_response_body_for_content_types/post.pyi @@ -62,9 +62,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -143,9 +141,7 @@ class PostIpv4FormatResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -196,9 +192,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ipv6_format_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ipv6_format_response_body_for_content_types/post.py index 96afc8024ae..71b4d4767fd 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ipv6_format_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ipv6_format_response_body_for_content_types/post.py @@ -85,9 +85,7 @@ def _post_ipv6_format_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -166,9 +164,7 @@ def post_ipv6_format_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -219,9 +215,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ipv6_format_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ipv6_format_response_body_for_content_types/post.pyi index 9aa20cf2258..ae33c6e0baf 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ipv6_format_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ipv6_format_response_body_for_content_types/post.pyi @@ -62,9 +62,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -143,9 +141,7 @@ class PostIpv6FormatResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -196,9 +192,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_json_pointer_format_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_json_pointer_format_response_body_for_content_types/post.py index c80eaa51358..11820d96885 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_json_pointer_format_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_json_pointer_format_response_body_for_content_types/post.py @@ -85,9 +85,7 @@ def _post_json_pointer_format_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -166,9 +164,7 @@ def post_json_pointer_format_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -219,9 +215,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_json_pointer_format_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_json_pointer_format_response_body_for_content_types/post.pyi index 3d134e901cf..769a6b205f4 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_json_pointer_format_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_json_pointer_format_response_body_for_content_types/post.pyi @@ -62,9 +62,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -143,9 +141,7 @@ class PostJsonPointerFormatResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -196,9 +192,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maximum_validation_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maximum_validation_response_body_for_content_types/post.py index 13264682e96..a97b1d2e379 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maximum_validation_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maximum_validation_response_body_for_content_types/post.py @@ -65,9 +65,7 @@ def _post_maximum_validation_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -146,9 +144,7 @@ def post_maximum_validation_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -199,9 +195,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maximum_validation_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maximum_validation_response_body_for_content_types/post.pyi index a559f6e43cb..791d907ba24 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maximum_validation_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maximum_validation_response_body_for_content_types/post.pyi @@ -42,9 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -123,9 +121,7 @@ class PostMaximumValidationResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -176,9 +172,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post.py index bbd7cf48ad1..cb8aa3746bb 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post.py @@ -65,9 +65,7 @@ def _post_maximum_validation_with_unsigned_integer_response_body_for_content_typ stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -146,9 +144,7 @@ def post_maximum_validation_with_unsigned_integer_response_body_for_content_type stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -199,9 +195,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post.pyi index 97de83137a8..01450c9b044 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post.pyi @@ -42,9 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -123,9 +121,7 @@ class PostMaximumValidationWithUnsignedIntegerResponseBodyForContentTypes(BaseAp stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -176,9 +172,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxitems_validation_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxitems_validation_response_body_for_content_types/post.py index 6f8d4263aa7..b949d4c319c 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxitems_validation_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxitems_validation_response_body_for_content_types/post.py @@ -65,9 +65,7 @@ def _post_maxitems_validation_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -146,9 +144,7 @@ def post_maxitems_validation_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -199,9 +195,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxitems_validation_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxitems_validation_response_body_for_content_types/post.pyi index 4c41db104be..ede24efee81 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxitems_validation_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxitems_validation_response_body_for_content_types/post.pyi @@ -42,9 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -123,9 +121,7 @@ class PostMaxitemsValidationResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -176,9 +172,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxlength_validation_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxlength_validation_response_body_for_content_types/post.py index 1a706645e2d..8c17d4945d3 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxlength_validation_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxlength_validation_response_body_for_content_types/post.py @@ -65,9 +65,7 @@ def _post_maxlength_validation_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -146,9 +144,7 @@ def post_maxlength_validation_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -199,9 +195,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxlength_validation_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxlength_validation_response_body_for_content_types/post.pyi index 9a670d8798f..cad9d319a81 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxlength_validation_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxlength_validation_response_body_for_content_types/post.pyi @@ -42,9 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -123,9 +121,7 @@ class PostMaxlengthValidationResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -176,9 +172,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post.py index 1f352431438..2b96dfbca0b 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post.py @@ -65,9 +65,7 @@ def _post_maxproperties0_means_the_object_is_empty_response_body_for_content_typ stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -146,9 +144,7 @@ def post_maxproperties0_means_the_object_is_empty_response_body_for_content_type stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -199,9 +195,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post.pyi index 605f90a4c5f..b702999019d 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post.pyi @@ -42,9 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -123,9 +121,7 @@ class PostMaxproperties0MeansTheObjectIsEmptyResponseBodyForContentTypes(BaseApi stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -176,9 +172,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post.py index f31f1fb1d9c..712c621f579 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post.py @@ -65,9 +65,7 @@ def _post_maxproperties_validation_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -146,9 +144,7 @@ def post_maxproperties_validation_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -199,9 +195,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post.pyi index 216e4aabb1b..72d5c17df25 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post.pyi @@ -42,9 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -123,9 +121,7 @@ class PostMaxpropertiesValidationResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -176,9 +172,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minimum_validation_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minimum_validation_response_body_for_content_types/post.py index 2f406e188cc..a78d0777b23 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minimum_validation_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minimum_validation_response_body_for_content_types/post.py @@ -65,9 +65,7 @@ def _post_minimum_validation_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -146,9 +144,7 @@ def post_minimum_validation_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -199,9 +195,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minimum_validation_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minimum_validation_response_body_for_content_types/post.pyi index c736df7683f..d0adfce0659 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minimum_validation_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minimum_validation_response_body_for_content_types/post.pyi @@ -42,9 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -123,9 +121,7 @@ class PostMinimumValidationResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -176,9 +172,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post.py index 7ef54d79a3b..0c60c37d234 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post.py @@ -65,9 +65,7 @@ def _post_minimum_validation_with_signed_integer_response_body_for_content_types stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -146,9 +144,7 @@ def post_minimum_validation_with_signed_integer_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -199,9 +195,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post.pyi index 2756a0b8077..2a40ce3df34 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post.pyi @@ -42,9 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -123,9 +121,7 @@ class PostMinimumValidationWithSignedIntegerResponseBodyForContentTypes(BaseApi) stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -176,9 +172,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minitems_validation_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minitems_validation_response_body_for_content_types/post.py index 6f52d1b83c0..a0e4d054b41 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minitems_validation_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minitems_validation_response_body_for_content_types/post.py @@ -65,9 +65,7 @@ def _post_minitems_validation_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -146,9 +144,7 @@ def post_minitems_validation_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -199,9 +195,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minitems_validation_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minitems_validation_response_body_for_content_types/post.pyi index a2246732390..41b4f620d36 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minitems_validation_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minitems_validation_response_body_for_content_types/post.pyi @@ -42,9 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -123,9 +121,7 @@ class PostMinitemsValidationResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -176,9 +172,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minlength_validation_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minlength_validation_response_body_for_content_types/post.py index 7fa06ec8d97..891540e636d 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minlength_validation_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minlength_validation_response_body_for_content_types/post.py @@ -65,9 +65,7 @@ def _post_minlength_validation_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -146,9 +144,7 @@ def post_minlength_validation_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -199,9 +195,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minlength_validation_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minlength_validation_response_body_for_content_types/post.pyi index 3156a0ce4ee..860b537063d 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minlength_validation_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minlength_validation_response_body_for_content_types/post.pyi @@ -42,9 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -123,9 +121,7 @@ class PostMinlengthValidationResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -176,9 +172,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minproperties_validation_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minproperties_validation_response_body_for_content_types/post.py index b0bd0bbe8c5..81cea8035ae 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minproperties_validation_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minproperties_validation_response_body_for_content_types/post.py @@ -65,9 +65,7 @@ def _post_minproperties_validation_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -146,9 +144,7 @@ def post_minproperties_validation_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -199,9 +195,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minproperties_validation_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minproperties_validation_response_body_for_content_types/post.pyi index 7a9c4618e6b..bb2a706ef89 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minproperties_validation_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minproperties_validation_response_body_for_content_types/post.pyi @@ -42,9 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -123,9 +121,7 @@ class PostMinpropertiesValidationResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -176,9 +172,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post.py index eb09a155211..4375e5d3aa3 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post.py @@ -65,9 +65,7 @@ def _post_nested_allof_to_check_validation_semantics_response_body_for_content_t stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -146,9 +144,7 @@ def post_nested_allof_to_check_validation_semantics_response_body_for_content_ty stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -199,9 +195,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post.pyi index 13105bed5b9..de891125da4 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post.pyi @@ -42,9 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -123,9 +121,7 @@ class PostNestedAllofToCheckValidationSemanticsResponseBodyForContentTypes(BaseA stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -176,9 +172,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post.py index 07164341eee..ffd92406daf 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post.py @@ -65,9 +65,7 @@ def _post_nested_anyof_to_check_validation_semantics_response_body_for_content_t stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -146,9 +144,7 @@ def post_nested_anyof_to_check_validation_semantics_response_body_for_content_ty stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -199,9 +195,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post.pyi index 01588447f20..e7737f40ba0 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post.pyi @@ -42,9 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -123,9 +121,7 @@ class PostNestedAnyofToCheckValidationSemanticsResponseBodyForContentTypes(BaseA stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -176,9 +172,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_items_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_items_response_body_for_content_types/post.py index ea9b1a92fec..d25fec727a7 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_items_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_items_response_body_for_content_types/post.py @@ -65,9 +65,7 @@ def _post_nested_items_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -146,9 +144,7 @@ def post_nested_items_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -199,9 +195,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_items_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_items_response_body_for_content_types/post.pyi index 2c105129b12..b74843b749c 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_items_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_items_response_body_for_content_types/post.pyi @@ -42,9 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -123,9 +121,7 @@ class PostNestedItemsResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -176,9 +172,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post.py index 3abd1cfed99..2580a622844 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post.py @@ -65,9 +65,7 @@ def _post_nested_oneof_to_check_validation_semantics_response_body_for_content_t stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -146,9 +144,7 @@ def post_nested_oneof_to_check_validation_semantics_response_body_for_content_ty stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -199,9 +195,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post.pyi index e9a31003be6..0f20a8943f8 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post.pyi @@ -42,9 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -123,9 +121,7 @@ class PostNestedOneofToCheckValidationSemanticsResponseBodyForContentTypes(BaseA stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -176,9 +172,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post.py index 4d8348fff0d..4e12e73861b 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post.py @@ -134,9 +134,7 @@ def _post_not_more_complex_schema_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -215,9 +213,7 @@ def post_not_more_complex_schema_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -268,9 +264,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post.pyi index 93ae304e590..4f386caf31b 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post.pyi @@ -111,9 +111,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -192,9 +190,7 @@ class PostNotMoreComplexSchemaResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -245,9 +241,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_not_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_not_response_body_for_content_types/post.py index 5dc688e0bd4..5e13a856db2 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_not_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_not_response_body_for_content_types/post.py @@ -85,9 +85,7 @@ def _post_not_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -166,9 +164,7 @@ def post_not_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -219,9 +215,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_not_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_not_response_body_for_content_types/post.pyi index ed6e52fff5d..47ba312d8dc 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_not_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_not_response_body_for_content_types/post.pyi @@ -62,9 +62,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -143,9 +141,7 @@ class PostNotResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -196,9 +192,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post.py index 08cffaab4fe..eec1c316355 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post.py @@ -65,9 +65,7 @@ def _post_nul_characters_in_strings_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -146,9 +144,7 @@ def post_nul_characters_in_strings_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -199,9 +195,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post.pyi index b80810e8b09..ab45487bfa8 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post.pyi @@ -42,9 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -123,9 +121,7 @@ class PostNulCharactersInStringsResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -176,9 +172,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post.py index bd3a97244fa..00a23cdd55a 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post.py @@ -63,9 +63,7 @@ def _post_null_type_matches_only_the_null_object_response_body_for_content_types stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -144,9 +142,7 @@ def post_null_type_matches_only_the_null_object_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -197,9 +193,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post.pyi index ac857bac556..d7078928fd2 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post.pyi @@ -40,9 +40,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -121,9 +119,7 @@ class PostNullTypeMatchesOnlyTheNullObjectResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -174,9 +170,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post.py index 1286a98175d..c1269d1755f 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post.py @@ -63,9 +63,7 @@ def _post_number_type_matches_numbers_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -144,9 +142,7 @@ def post_number_type_matches_numbers_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -197,9 +193,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post.pyi index 754a890b1a9..d31f3cbd8e5 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post.pyi @@ -40,9 +40,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -121,9 +119,7 @@ class PostNumberTypeMatchesNumbersResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -174,9 +170,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_object_properties_validation_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_object_properties_validation_response_body_for_content_types/post.py index 41853ac2e4d..753a77e103b 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_object_properties_validation_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_object_properties_validation_response_body_for_content_types/post.py @@ -65,9 +65,7 @@ def _post_object_properties_validation_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -146,9 +144,7 @@ def post_object_properties_validation_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -199,9 +195,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_object_properties_validation_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_object_properties_validation_response_body_for_content_types/post.pyi index 8f0d390d1f6..1fe07a7d369 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_object_properties_validation_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_object_properties_validation_response_body_for_content_types/post.pyi @@ -42,9 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -123,9 +121,7 @@ class PostObjectPropertiesValidationResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -176,9 +172,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post.py index 864523ccfe9..f4485f270fe 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post.py @@ -63,9 +63,7 @@ def _post_object_type_matches_objects_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -144,9 +142,7 @@ def post_object_type_matches_objects_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -197,9 +193,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post.pyi index e3420170132..6883420f23d 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post.pyi @@ -40,9 +40,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -121,9 +119,7 @@ class PostObjectTypeMatchesObjectsResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -174,9 +170,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post.py index e80421ed784..9335893477c 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post.py @@ -65,9 +65,7 @@ def _post_oneof_complex_types_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -146,9 +144,7 @@ def post_oneof_complex_types_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -199,9 +195,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post.pyi index 288412939d2..e6731da3e90 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post.pyi @@ -42,9 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -123,9 +121,7 @@ class PostOneofComplexTypesResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -176,9 +172,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_response_body_for_content_types/post.py index 327f5a1183a..18e0dae0900 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_response_body_for_content_types/post.py @@ -65,9 +65,7 @@ def _post_oneof_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -146,9 +144,7 @@ def post_oneof_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -199,9 +195,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_response_body_for_content_types/post.pyi index 6043a9cd60d..def7ebe433d 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_response_body_for_content_types/post.pyi @@ -42,9 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -123,9 +121,7 @@ class PostOneofResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -176,9 +172,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post.py index 265f6838374..4c11b7514dd 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post.py @@ -65,9 +65,7 @@ def _post_oneof_with_base_schema_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -146,9 +144,7 @@ def post_oneof_with_base_schema_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -199,9 +195,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post.pyi index 7fcadd8ed77..49a036e39a3 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post.pyi @@ -42,9 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -123,9 +121,7 @@ class PostOneofWithBaseSchemaResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -176,9 +172,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post.py index 83084f3f651..fd2284ce9c6 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post.py @@ -65,9 +65,7 @@ def _post_oneof_with_empty_schema_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -146,9 +144,7 @@ def post_oneof_with_empty_schema_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -199,9 +195,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post.pyi index 586ec60b2e6..4393113a62d 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post.pyi @@ -42,9 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -123,9 +121,7 @@ class PostOneofWithEmptySchemaResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -176,9 +172,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_with_required_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_with_required_response_body_for_content_types/post.py index 3d20def3fcf..19b6a1f135c 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_with_required_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_with_required_response_body_for_content_types/post.py @@ -65,9 +65,7 @@ def _post_oneof_with_required_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -146,9 +144,7 @@ def post_oneof_with_required_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -199,9 +195,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_with_required_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_with_required_response_body_for_content_types/post.pyi index ee8ca5b79f1..45f92e98b21 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_with_required_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_with_required_response_body_for_content_types/post.pyi @@ -42,9 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -123,9 +121,7 @@ class PostOneofWithRequiredResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -176,9 +172,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post.py index 1dbf2974f42..ed8ec528792 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post.py @@ -65,9 +65,7 @@ def _post_pattern_is_not_anchored_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -146,9 +144,7 @@ def post_pattern_is_not_anchored_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -199,9 +195,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post.pyi index 6269f67e2cd..6fbc1c7e60f 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post.pyi @@ -42,9 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -123,9 +121,7 @@ class PostPatternIsNotAnchoredResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -176,9 +172,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_pattern_validation_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_pattern_validation_response_body_for_content_types/post.py index e658e02dec5..c8e35a1121b 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_pattern_validation_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_pattern_validation_response_body_for_content_types/post.py @@ -65,9 +65,7 @@ def _post_pattern_validation_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -146,9 +144,7 @@ def post_pattern_validation_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -199,9 +195,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_pattern_validation_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_pattern_validation_response_body_for_content_types/post.pyi index 157cb2e8e62..fa77565fa91 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_pattern_validation_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_pattern_validation_response_body_for_content_types/post.pyi @@ -42,9 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -123,9 +121,7 @@ class PostPatternValidationResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -176,9 +172,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post.py index a0ece4c167c..d8d85de9c09 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post.py @@ -65,9 +65,7 @@ def _post_properties_with_escaped_characters_response_body_for_content_types_oap stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -146,9 +144,7 @@ def post_properties_with_escaped_characters_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -199,9 +195,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post.pyi index 0339680a59f..697a90f0f3f 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post.pyi @@ -42,9 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -123,9 +121,7 @@ class PostPropertiesWithEscapedCharactersResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -176,9 +172,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post.py index d395f881c2a..5bcde72bfef 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post.py @@ -65,9 +65,7 @@ def _post_property_named_ref_that_is_not_a_reference_response_body_for_content_t stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -146,9 +144,7 @@ def post_property_named_ref_that_is_not_a_reference_response_body_for_content_ty stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -199,9 +195,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post.pyi index 952e20870d0..9d258b16401 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post.pyi @@ -42,9 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -123,9 +121,7 @@ class PostPropertyNamedRefThatIsNotAReferenceResponseBodyForContentTypes(BaseApi stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -176,9 +172,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_additionalproperties_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_additionalproperties_response_body_for_content_types/post.py index 29aae89d9b9..a8b9b64a33e 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_additionalproperties_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_additionalproperties_response_body_for_content_types/post.py @@ -65,9 +65,7 @@ def _post_ref_in_additionalproperties_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -146,9 +144,7 @@ def post_ref_in_additionalproperties_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -199,9 +195,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_additionalproperties_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_additionalproperties_response_body_for_content_types/post.pyi index 5d1a4e9ff95..65ac38884a6 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_additionalproperties_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_additionalproperties_response_body_for_content_types/post.pyi @@ -42,9 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -123,9 +121,7 @@ class PostRefInAdditionalpropertiesResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -176,9 +172,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_allof_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_allof_response_body_for_content_types/post.py index 1d3ee05b0a1..f910ca309d0 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_allof_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_allof_response_body_for_content_types/post.py @@ -65,9 +65,7 @@ def _post_ref_in_allof_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -146,9 +144,7 @@ def post_ref_in_allof_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -199,9 +195,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_allof_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_allof_response_body_for_content_types/post.pyi index c258a8b7adc..c7ac8f95b59 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_allof_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_allof_response_body_for_content_types/post.pyi @@ -42,9 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -123,9 +121,7 @@ class PostRefInAllofResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -176,9 +172,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_anyof_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_anyof_response_body_for_content_types/post.py index b319c3c395d..b629ec62746 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_anyof_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_anyof_response_body_for_content_types/post.py @@ -65,9 +65,7 @@ def _post_ref_in_anyof_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -146,9 +144,7 @@ def post_ref_in_anyof_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -199,9 +195,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_anyof_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_anyof_response_body_for_content_types/post.pyi index f1a6dfa6458..078a42199a3 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_anyof_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_anyof_response_body_for_content_types/post.pyi @@ -42,9 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -123,9 +121,7 @@ class PostRefInAnyofResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -176,9 +172,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_items_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_items_response_body_for_content_types/post.py index 75e3e9c8228..e9d8c8c6f37 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_items_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_items_response_body_for_content_types/post.py @@ -65,9 +65,7 @@ def _post_ref_in_items_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -146,9 +144,7 @@ def post_ref_in_items_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -199,9 +195,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_items_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_items_response_body_for_content_types/post.pyi index 25df9b099be..bafa8139f40 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_items_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_items_response_body_for_content_types/post.pyi @@ -42,9 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -123,9 +121,7 @@ class PostRefInItemsResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -176,9 +172,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_not_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_not_response_body_for_content_types/post.py index e4dd2cf89cc..37f531106d1 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_not_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_not_response_body_for_content_types/post.py @@ -90,9 +90,7 @@ def _post_ref_in_not_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -171,9 +169,7 @@ def post_ref_in_not_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -224,9 +220,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_not_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_not_response_body_for_content_types/post.pyi index 45caf1de363..71db8812c2d 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_not_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_not_response_body_for_content_types/post.pyi @@ -67,9 +67,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -148,9 +146,7 @@ class PostRefInNotResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -201,9 +197,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_oneof_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_oneof_response_body_for_content_types/post.py index 0d83e231496..28382769b6f 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_oneof_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_oneof_response_body_for_content_types/post.py @@ -65,9 +65,7 @@ def _post_ref_in_oneof_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -146,9 +144,7 @@ def post_ref_in_oneof_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -199,9 +195,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_oneof_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_oneof_response_body_for_content_types/post.pyi index c9f54384c62..df42903262a 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_oneof_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_oneof_response_body_for_content_types/post.pyi @@ -42,9 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -123,9 +121,7 @@ class PostRefInOneofResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -176,9 +172,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_property_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_property_response_body_for_content_types/post.py index a9a24543d8a..fb8ebb434da 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_property_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_property_response_body_for_content_types/post.py @@ -65,9 +65,7 @@ def _post_ref_in_property_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -146,9 +144,7 @@ def post_ref_in_property_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -199,9 +195,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_property_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_property_response_body_for_content_types/post.pyi index 0fb869f19af..38a62fa28f7 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_property_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_property_response_body_for_content_types/post.pyi @@ -42,9 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -123,9 +121,7 @@ class PostRefInPropertyResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -176,9 +172,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_default_validation_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_default_validation_response_body_for_content_types/post.py index e3662192920..3fc5d9f7fff 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_default_validation_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_default_validation_response_body_for_content_types/post.py @@ -65,9 +65,7 @@ def _post_required_default_validation_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -146,9 +144,7 @@ def post_required_default_validation_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -199,9 +195,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_default_validation_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_default_validation_response_body_for_content_types/post.pyi index 46bb7669002..18261ff4bd8 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_default_validation_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_default_validation_response_body_for_content_types/post.pyi @@ -42,9 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -123,9 +121,7 @@ class PostRequiredDefaultValidationResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -176,9 +172,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_validation_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_validation_response_body_for_content_types/post.py index 337bb1919db..9ea788981d8 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_validation_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_validation_response_body_for_content_types/post.py @@ -65,9 +65,7 @@ def _post_required_validation_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -146,9 +144,7 @@ def post_required_validation_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -199,9 +195,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_validation_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_validation_response_body_for_content_types/post.pyi index 25a1f365be5..ed771b14161 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_validation_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_validation_response_body_for_content_types/post.pyi @@ -42,9 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -123,9 +121,7 @@ class PostRequiredValidationResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -176,9 +172,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post.py index 64ff7e721f0..ecfc89356b9 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post.py @@ -65,9 +65,7 @@ def _post_required_with_empty_array_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -146,9 +144,7 @@ def post_required_with_empty_array_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -199,9 +195,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post.pyi index de0fda41f44..2f4fad6ff36 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post.pyi @@ -42,9 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -123,9 +121,7 @@ class PostRequiredWithEmptyArrayResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -176,9 +172,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post.py index 843bcde4dce..dbc1e3a4eeb 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post.py @@ -93,9 +93,7 @@ def _post_required_with_escaped_characters_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -174,9 +172,7 @@ def post_required_with_escaped_characters_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -227,9 +223,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post.pyi index c2969f0177f..6f884414608 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post.pyi @@ -70,9 +70,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -151,9 +149,7 @@ class PostRequiredWithEscapedCharactersResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -204,9 +200,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post.py index f63415d22fe..54f1dcd41c2 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post.py @@ -65,9 +65,7 @@ def _post_simple_enum_validation_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -146,9 +144,7 @@ def post_simple_enum_validation_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -199,9 +195,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post.pyi index 88313ca1e86..e8b1dc64051 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post.pyi @@ -42,9 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -123,9 +121,7 @@ class PostSimpleEnumValidationResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -176,9 +172,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post.py index e2c5180a2fb..aef271f0d2c 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post.py @@ -63,9 +63,7 @@ def _post_string_type_matches_strings_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -144,9 +142,7 @@ def post_string_type_matches_strings_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -197,9 +193,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post.pyi index dd1e19a57a1..9eb220555a6 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post.pyi @@ -40,9 +40,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -121,9 +119,7 @@ class PostStringTypeMatchesStringsResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -174,9 +170,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types/post.py index 0d769c856d1..9792bbcf8fb 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types/post.py @@ -65,9 +65,7 @@ def _post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_re stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -146,9 +144,7 @@ def post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_res stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -199,9 +195,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types/post.pyi index 883560225b4..e4e07123be8 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types/post.pyi @@ -42,9 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -123,9 +121,7 @@ class PostTheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissingResponseBodyFo stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -176,9 +172,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post.py index 244a88662b3..b73e05a2ba8 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post.py @@ -65,9 +65,7 @@ def _post_uniqueitems_false_validation_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -146,9 +144,7 @@ def post_uniqueitems_false_validation_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -199,9 +195,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post.pyi index a8506545109..2de954f4c97 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post.pyi @@ -42,9 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -123,9 +121,7 @@ class PostUniqueitemsFalseValidationResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -176,9 +172,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post.py index 0c7b65fdd56..10d7f30741b 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post.py @@ -65,9 +65,7 @@ def _post_uniqueitems_validation_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -146,9 +144,7 @@ def post_uniqueitems_validation_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -199,9 +195,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post.pyi index 99556cc32c5..c768116dfff 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post.pyi @@ -42,9 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -123,9 +121,7 @@ class PostUniqueitemsValidationResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -176,9 +172,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uri_format_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uri_format_response_body_for_content_types/post.py index 3bcf7864cf2..a97fe35eca8 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uri_format_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uri_format_response_body_for_content_types/post.py @@ -85,9 +85,7 @@ def _post_uri_format_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -166,9 +164,7 @@ def post_uri_format_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -219,9 +215,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uri_format_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uri_format_response_body_for_content_types/post.pyi index bf54d6cd98d..d8204514454 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uri_format_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uri_format_response_body_for_content_types/post.pyi @@ -62,9 +62,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -143,9 +141,7 @@ class PostUriFormatResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -196,9 +192,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uri_reference_format_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uri_reference_format_response_body_for_content_types/post.py index 43b531df4ef..8365bf07f6b 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uri_reference_format_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uri_reference_format_response_body_for_content_types/post.py @@ -85,9 +85,7 @@ def _post_uri_reference_format_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -166,9 +164,7 @@ def post_uri_reference_format_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -219,9 +215,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uri_reference_format_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uri_reference_format_response_body_for_content_types/post.pyi index 2101f17b6af..db17c070480 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uri_reference_format_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uri_reference_format_response_body_for_content_types/post.pyi @@ -62,9 +62,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -143,9 +141,7 @@ class PostUriReferenceFormatResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -196,9 +192,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uri_template_format_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uri_template_format_response_body_for_content_types/post.py index 623008ea85e..a46ff65a1b6 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uri_template_format_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uri_template_format_response_body_for_content_types/post.py @@ -85,9 +85,7 @@ def _post_uri_template_format_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -166,9 +164,7 @@ def post_uri_template_format_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -219,9 +215,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uri_template_format_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uri_template_format_response_body_for_content_types/post.pyi index 16020154baa..f2c419a8a41 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uri_template_format_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uri_template_format_response_body_for_content_types/post.pyi @@ -62,9 +62,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -143,9 +141,7 @@ class PostUriTemplateFormatResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -196,9 +192,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/another_fake_dummy/patch.py b/samples/openapi3/client/petstore/python/petstore_api/paths/another_fake_dummy/patch.py index cc10e347e16..26598dd2f0f 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/another_fake_dummy/patch.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/another_fake_dummy/patch.py @@ -78,9 +78,7 @@ def _call_123_test_special_tags_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -181,9 +179,7 @@ def call_123_test_special_tags( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -244,9 +240,7 @@ def patch( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/another_fake_dummy/patch.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/another_fake_dummy/patch.pyi index 618b7c275b0..72902288693 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/another_fake_dummy/patch.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/another_fake_dummy/patch.pyi @@ -46,9 +46,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -149,9 +147,7 @@ class Call123TestSpecialTags(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -212,9 +208,7 @@ class ApiForpatch(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake/delete.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake/delete.py index 5857f348ab1..d5ea6ec5717 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake/delete.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake/delete.py @@ -142,8 +142,7 @@ def _group_parameters_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ]: + ) -> typing.Union[api_client.ApiResponse,]: ... @typing.overload @@ -251,8 +250,7 @@ def group_parameters( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ]: + ) -> typing.Union[api_client.ApiResponse,]: ... @typing.overload @@ -307,8 +305,7 @@ def delete( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ]: + ) -> typing.Union[api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake/delete.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake/delete.pyi index d90a35478dd..c095154686d 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake/delete.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake/delete.pyi @@ -45,8 +45,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ]: + ) -> typing.Union[api_client.ApiResponse,]: ... @typing.overload @@ -154,8 +153,7 @@ class GroupParameters(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ]: + ) -> typing.Union[api_client.ApiResponse,]: ... @typing.overload @@ -210,8 +208,7 @@ class ApiFordelete(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ]: + ) -> typing.Union[api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake/get.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake/get.py index 94a9db6c062..1ad07d302ab 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake/get.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake/get.py @@ -463,8 +463,7 @@ def _enum_parameters_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ]: + ) -> typing.Union[api_client.ApiResponse,]: ... @typing.overload @@ -497,7 +496,7 @@ def _enum_parameters_oapg( def _enum_parameters_oapg( self, - body, + body = schemas.unset, query_params = frozendict.frozendict(), header_params = frozendict.frozendict(), content_type = 'application/x-www-form-urlencoded', @@ -590,8 +589,7 @@ def enum_parameters( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ]: + ) -> typing.Union[api_client.ApiResponse,]: ... @typing.overload @@ -624,7 +622,7 @@ def enum_parameters( def enum_parameters( self, - body, + body = schemas.unset, query_params = frozendict.frozendict(), header_params = frozendict.frozendict(), content_type = 'application/x-www-form-urlencoded', @@ -656,8 +654,7 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ]: + ) -> typing.Union[api_client.ApiResponse,]: ... @typing.overload @@ -690,7 +687,7 @@ def get( def get( self, - body, + body = schemas.unset, query_params = frozendict.frozendict(), header_params = frozendict.frozendict(), content_type = 'application/x-www-form-urlencoded', diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake/get.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake/get.pyi index b236af095a8..26966d60a90 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake/get.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake/get.pyi @@ -290,8 +290,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ]: + ) -> typing.Union[api_client.ApiResponse,]: ... @typing.overload @@ -324,7 +323,7 @@ class BaseApi(api_client.Api): def _enum_parameters_oapg( self, - body, + body = schemas.unset, query_params = frozendict.frozendict(), header_params = frozendict.frozendict(), content_type = 'application/x-www-form-urlencoded', @@ -417,8 +416,7 @@ class EnumParameters(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ]: + ) -> typing.Union[api_client.ApiResponse,]: ... @typing.overload @@ -451,7 +449,7 @@ class EnumParameters(BaseApi): def enum_parameters( self, - body, + body = schemas.unset, query_params = frozendict.frozendict(), header_params = frozendict.frozendict(), content_type = 'application/x-www-form-urlencoded', @@ -483,8 +481,7 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ]: + ) -> typing.Union[api_client.ApiResponse,]: ... @typing.overload @@ -517,7 +514,7 @@ class ApiForget(BaseApi): def get( self, - body, + body = schemas.unset, query_params = frozendict.frozendict(), header_params = frozendict.frozendict(), content_type = 'application/x-www-form-urlencoded', diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake/patch.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake/patch.py index 214dba3df07..e340c20f7b1 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake/patch.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake/patch.py @@ -78,9 +78,7 @@ def _client_model_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -181,9 +179,7 @@ def client_model( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -244,9 +240,7 @@ def patch( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake/patch.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake/patch.pyi index b659df245b4..54b282d6bf8 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake/patch.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake/patch.pyi @@ -46,9 +46,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -149,9 +147,7 @@ class ClientModel(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -212,9 +208,7 @@ class ApiForpatch(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake/post.py index 28c08fb6d23..3d759182f8d 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake/post.py @@ -348,8 +348,7 @@ def _endpoint_parameters_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ]: + ) -> typing.Union[api_client.ApiResponse,]: ... @typing.overload @@ -378,7 +377,7 @@ def _endpoint_parameters_oapg( def _endpoint_parameters_oapg( self, - body, + body = schemas.unset, content_type = 'application/x-www-form-urlencoded', stream = False, timeout = None, @@ -441,8 +440,7 @@ def endpoint_parameters( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ]: + ) -> typing.Union[api_client.ApiResponse,]: ... @typing.overload @@ -471,7 +469,7 @@ def endpoint_parameters( def endpoint_parameters( self, - body, + body = schemas.unset, content_type = 'application/x-www-form-urlencoded', stream = False, timeout = None, @@ -497,8 +495,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ]: + ) -> typing.Union[api_client.ApiResponse,]: ... @typing.overload @@ -527,7 +524,7 @@ def post( def post( self, - body, + body = schemas.unset, content_type = 'application/x-www-form-urlencoded', stream = False, timeout = None, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake/post.pyi index 19a58538b71..ed8fef77d87 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake/post.pyi @@ -267,8 +267,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ]: + ) -> typing.Union[api_client.ApiResponse,]: ... @typing.overload @@ -297,7 +296,7 @@ class BaseApi(api_client.Api): def _endpoint_parameters_oapg( self, - body, + body = schemas.unset, content_type = 'application/x-www-form-urlencoded', stream = False, timeout = None, @@ -360,8 +359,7 @@ class EndpointParameters(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ]: + ) -> typing.Union[api_client.ApiResponse,]: ... @typing.overload @@ -390,7 +388,7 @@ class EndpointParameters(BaseApi): def endpoint_parameters( self, - body, + body = schemas.unset, content_type = 'application/x-www-form-urlencoded', stream = False, timeout = None, @@ -416,8 +414,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ]: + ) -> typing.Union[api_client.ApiResponse,]: ... @typing.overload @@ -446,7 +443,7 @@ class ApiForpost(BaseApi): def post( self, - body, + body = schemas.unset, content_type = 'application/x-www-form-urlencoded', stream = False, timeout = None, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_additional_properties_with_array_of_enums/get.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_additional_properties_with_array_of_enums/get.py index 98b071b76c0..dd2a99c1bea 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_additional_properties_with_array_of_enums/get.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_additional_properties_with_array_of_enums/get.py @@ -77,9 +77,7 @@ def _additional_properties_with_array_of_enums_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -111,7 +109,7 @@ def _additional_properties_with_array_of_enums_oapg( def _additional_properties_with_array_of_enums_oapg( self, - body, + body = schemas.unset, content_type = 'application/json', accept_content_types = _all_accept_content_types, stream = False, @@ -178,9 +176,7 @@ def additional_properties_with_array_of_enums( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -212,7 +208,7 @@ def additional_properties_with_array_of_enums( def additional_properties_with_array_of_enums( self, - body, + body = schemas.unset, content_type = 'application/json', accept_content_types = _all_accept_content_types, stream = False, @@ -241,9 +237,7 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -275,7 +269,7 @@ def get( def get( self, - body, + body = schemas.unset, content_type = 'application/json', accept_content_types = _all_accept_content_types, stream = False, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_additional_properties_with_array_of_enums/get.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_additional_properties_with_array_of_enums/get.pyi index a0164210169..36b073f1bfe 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_additional_properties_with_array_of_enums/get.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_additional_properties_with_array_of_enums/get.pyi @@ -46,9 +46,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -80,7 +78,7 @@ class BaseApi(api_client.Api): def _additional_properties_with_array_of_enums_oapg( self, - body, + body = schemas.unset, content_type = 'application/json', accept_content_types = _all_accept_content_types, stream = False, @@ -147,9 +145,7 @@ class AdditionalPropertiesWithArrayOfEnums(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -181,7 +177,7 @@ class AdditionalPropertiesWithArrayOfEnums(BaseApi): def additional_properties_with_array_of_enums( self, - body, + body = schemas.unset, content_type = 'application/json', accept_content_types = _all_accept_content_types, stream = False, @@ -210,9 +206,7 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -244,7 +238,7 @@ class ApiForget(BaseApi): def get( self, - body, + body = schemas.unset, content_type = 'application/json', accept_content_types = _all_accept_content_types, stream = False, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_body_with_file_schema/put.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_body_with_file_schema/put.py index c03e4500e07..78844bf23c3 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_body_with_file_schema/put.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_body_with_file_schema/put.py @@ -67,9 +67,7 @@ def _body_with_file_schema_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -162,9 +160,7 @@ def body_with_file_schema( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -220,9 +216,7 @@ def put( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_body_with_file_schema/put.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_body_with_file_schema/put.pyi index 2697093e6eb..a67866e311e 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_body_with_file_schema/put.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_body_with_file_schema/put.pyi @@ -41,9 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -136,9 +134,7 @@ class BodyWithFileSchema(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -194,9 +190,7 @@ class ApiForput(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_body_with_query_params/put.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_body_with_query_params/put.py index 28d1bbfdb1f..c5b0aaa070a 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_body_with_query_params/put.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_body_with_query_params/put.py @@ -95,9 +95,7 @@ def _body_with_query_params_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -208,9 +206,7 @@ def body_with_query_params( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -271,9 +267,7 @@ def put( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_body_with_query_params/put.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_body_with_query_params/put.pyi index 4f17402bce5..b9a349b8f80 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_body_with_query_params/put.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_body_with_query_params/put.pyi @@ -44,9 +44,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -157,9 +155,7 @@ class BodyWithQueryParams(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -220,9 +216,7 @@ class ApiForput(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_case_sensitive_params/put.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_case_sensitive_params/put.py index c5ca852b035..f66906852c8 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_case_sensitive_params/put.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_case_sensitive_params/put.py @@ -97,9 +97,7 @@ def _case_sensitive_params_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -188,9 +186,7 @@ def case_sensitive_params( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -241,9 +237,7 @@ def put( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_case_sensitive_params/put.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_case_sensitive_params/put.pyi index d7af36ff156..235043f11db 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_case_sensitive_params/put.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_case_sensitive_params/put.pyi @@ -39,9 +39,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -130,9 +128,7 @@ class CaseSensitiveParams(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -183,9 +179,7 @@ class ApiForput(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_classname_test/patch.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_classname_test/patch.py index ef409571787..aa67548df0c 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_classname_test/patch.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_classname_test/patch.py @@ -81,9 +81,7 @@ def _classname_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -185,9 +183,7 @@ def classname( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -248,9 +244,7 @@ def patch( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_classname_test/patch.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_classname_test/patch.pyi index 6f4577d6ad3..27bae069a2a 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_classname_test/patch.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_classname_test/patch.pyi @@ -46,9 +46,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -150,9 +148,7 @@ class Classname(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -213,9 +209,7 @@ class ApiForpatch(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_delete_coffee_id/delete.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_delete_coffee_id/delete.py index c8d5bd23032..73491d28c7c 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_delete_coffee_id/delete.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_delete_coffee_id/delete.py @@ -91,10 +91,7 @@ def _delete_coffee_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: + ) -> typing.Union[ApiResponseFor200,ApiResponseForDefault,api_client.ApiResponse,]: ... @typing.overload @@ -187,10 +184,7 @@ def delete_coffee( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: + ) -> typing.Union[ApiResponseFor200,ApiResponseForDefault,api_client.ApiResponse,]: ... @typing.overload @@ -242,10 +236,7 @@ def delete( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: + ) -> typing.Union[ApiResponseFor200,ApiResponseForDefault,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_delete_coffee_id/delete.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_delete_coffee_id/delete.pyi index 5f35afdcffc..802aa3c7145 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_delete_coffee_id/delete.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_delete_coffee_id/delete.pyi @@ -37,10 +37,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: + ) -> typing.Union[ApiResponseFor200,ApiResponseForDefault,api_client.ApiResponse,]: ... @typing.overload @@ -133,10 +130,7 @@ class DeleteCoffee(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: + ) -> typing.Union[ApiResponseFor200,ApiResponseForDefault,api_client.ApiResponse,]: ... @typing.overload @@ -188,10 +182,7 @@ class ApiFordelete(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ApiResponseForDefault, - ]: + ) -> typing.Union[ApiResponseFor200,ApiResponseForDefault,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_health/get.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_health/get.py index 75ee45ec421..92c8af9ce3d 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_health/get.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_health/get.py @@ -65,9 +65,7 @@ def _fake_health_get_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -147,9 +145,7 @@ def fake_health_get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -200,9 +196,7 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_health/get.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_health/get.pyi index 7956d162384..632e9002912 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_health/get.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_health/get.pyi @@ -42,9 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -124,9 +122,7 @@ class FakeHealthGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -177,9 +173,7 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_inline_additional_properties/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_inline_additional_properties/post.py index 929d1fe97ad..fa6de552d0a 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_inline_additional_properties/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_inline_additional_properties/post.py @@ -93,9 +93,7 @@ def _inline_additional_properties_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -189,9 +187,7 @@ def inline_additional_properties( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -247,9 +243,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_inline_additional_properties/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_inline_additional_properties/post.pyi index ae94205e247..9f5bd58a9d9 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_inline_additional_properties/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_inline_additional_properties/post.pyi @@ -67,9 +67,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -163,9 +161,7 @@ class InlineAdditionalProperties(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -221,9 +217,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_inline_composition_/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_inline_composition_/post.py index 703817b8eae..9a3e5074332 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_inline_composition_/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_inline_composition_/post.py @@ -529,9 +529,7 @@ def _inline_composition_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -565,7 +563,7 @@ def _inline_composition_oapg( def _inline_composition_oapg( self, - body, + body = schemas.unset, query_params = frozendict.frozendict(), content_type = 'application/json', accept_content_types = _all_accept_content_types, @@ -649,9 +647,7 @@ def inline_composition( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -685,7 +681,7 @@ def inline_composition( def inline_composition( self, - body, + body = schemas.unset, query_params = frozendict.frozendict(), content_type = 'application/json', accept_content_types = _all_accept_content_types, @@ -717,9 +713,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -753,7 +747,7 @@ def post( def post( self, - body, + body = schemas.unset, query_params = frozendict.frozendict(), content_type = 'application/json', accept_content_types = _all_accept_content_types, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_inline_composition_/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_inline_composition_/post.pyi index 838be3251af..ac1643b59a5 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_inline_composition_/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_inline_composition_/post.pyi @@ -444,9 +444,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -480,7 +478,7 @@ class BaseApi(api_client.Api): def _inline_composition_oapg( self, - body, + body = schemas.unset, query_params = frozendict.frozendict(), content_type = 'application/json', accept_content_types = _all_accept_content_types, @@ -564,9 +562,7 @@ class InlineComposition(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -600,7 +596,7 @@ class InlineComposition(BaseApi): def inline_composition( self, - body, + body = schemas.unset, query_params = frozendict.frozendict(), content_type = 'application/json', accept_content_types = _all_accept_content_types, @@ -632,9 +628,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -668,7 +662,7 @@ class ApiForpost(BaseApi): def post( self, - body, + body = schemas.unset, query_params = frozendict.frozendict(), content_type = 'application/json', accept_content_types = _all_accept_content_types, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_form_data/get.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_form_data/get.py index cd8d4208109..a953470ea2f 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_form_data/get.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_form_data/get.py @@ -130,9 +130,7 @@ def _json_form_data_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -162,7 +160,7 @@ def _json_form_data_oapg( def _json_form_data_oapg( self, - body, + body = schemas.unset, content_type = 'application/x-www-form-urlencoded', stream = False, timeout = None, @@ -224,9 +222,7 @@ def json_form_data( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -256,7 +252,7 @@ def json_form_data( def json_form_data( self, - body, + body = schemas.unset, content_type = 'application/x-www-form-urlencoded', stream = False, timeout = None, @@ -282,9 +278,7 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -314,7 +308,7 @@ def get( def get( self, - body, + body = schemas.unset, content_type = 'application/x-www-form-urlencoded', stream = False, timeout = None, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_form_data/get.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_form_data/get.pyi index f00ccc89b98..491db881200 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_form_data/get.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_form_data/get.pyi @@ -105,9 +105,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -137,7 +135,7 @@ class BaseApi(api_client.Api): def _json_form_data_oapg( self, - body, + body = schemas.unset, content_type = 'application/x-www-form-urlencoded', stream = False, timeout = None, @@ -199,9 +197,7 @@ class JsonFormData(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -231,7 +227,7 @@ class JsonFormData(BaseApi): def json_form_data( self, - body, + body = schemas.unset, content_type = 'application/x-www-form-urlencoded', stream = False, timeout = None, @@ -257,9 +253,7 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -289,7 +283,7 @@ class ApiForget(BaseApi): def get( self, - body, + body = schemas.unset, content_type = 'application/x-www-form-urlencoded', stream = False, timeout = None, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_patch/patch.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_patch/patch.py index fb459d343aa..e21bd5445ca 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_patch/patch.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_patch/patch.py @@ -66,9 +66,7 @@ def _json_patch_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -98,7 +96,7 @@ def _json_patch_oapg( def _json_patch_oapg( self, - body, + body = schemas.unset, content_type = 'application/json-patch+json', stream = False, timeout = None, @@ -160,9 +158,7 @@ def json_patch( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -192,7 +188,7 @@ def json_patch( def json_patch( self, - body, + body = schemas.unset, content_type = 'application/json-patch+json', stream = False, timeout = None, @@ -218,9 +214,7 @@ def patch( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -250,7 +244,7 @@ def patch( def patch( self, - body, + body = schemas.unset, content_type = 'application/json-patch+json', stream = False, timeout = None, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_patch/patch.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_patch/patch.pyi index 9c680447513..a352de9325f 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_patch/patch.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_patch/patch.pyi @@ -41,9 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -73,7 +71,7 @@ class BaseApi(api_client.Api): def _json_patch_oapg( self, - body, + body = schemas.unset, content_type = 'application/json-patch+json', stream = False, timeout = None, @@ -135,9 +133,7 @@ class JsonPatch(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -167,7 +163,7 @@ class JsonPatch(BaseApi): def json_patch( self, - body, + body = schemas.unset, content_type = 'application/json-patch+json', stream = False, timeout = None, @@ -193,9 +189,7 @@ class ApiForpatch(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -225,7 +219,7 @@ class ApiForpatch(BaseApi): def patch( self, - body, + body = schemas.unset, content_type = 'application/json-patch+json', stream = False, timeout = None, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_with_charset/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_with_charset/post.py index 80349f06eeb..fb80aad8a6a 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_with_charset/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_with_charset/post.py @@ -75,9 +75,7 @@ def _json_with_charset_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -109,7 +107,7 @@ def _json_with_charset_oapg( def _json_with_charset_oapg( self, - body, + body = schemas.unset, content_type = 'application/json; charset=utf-8', accept_content_types = _all_accept_content_types, stream = False, @@ -176,9 +174,7 @@ def json_with_charset( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -210,7 +206,7 @@ def json_with_charset( def json_with_charset( self, - body, + body = schemas.unset, content_type = 'application/json; charset=utf-8', accept_content_types = _all_accept_content_types, stream = False, @@ -239,9 +235,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -273,7 +267,7 @@ def post( def post( self, - body, + body = schemas.unset, content_type = 'application/json; charset=utf-8', accept_content_types = _all_accept_content_types, stream = False, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_with_charset/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_with_charset/post.pyi index 1fa035709f3..e8af1111215 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_with_charset/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_with_charset/post.pyi @@ -44,9 +44,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -78,7 +76,7 @@ class BaseApi(api_client.Api): def _json_with_charset_oapg( self, - body, + body = schemas.unset, content_type = 'application/json; charset=utf-8', accept_content_types = _all_accept_content_types, stream = False, @@ -145,9 +143,7 @@ class JsonWithCharset(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -179,7 +175,7 @@ class JsonWithCharset(BaseApi): def json_with_charset( self, - body, + body = schemas.unset, content_type = 'application/json; charset=utf-8', accept_content_types = _all_accept_content_types, stream = False, @@ -208,9 +204,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -242,7 +236,7 @@ class ApiForpost(BaseApi): def post( self, - body, + body = schemas.unset, content_type = 'application/json; charset=utf-8', accept_content_types = _all_accept_content_types, stream = False, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_obj_in_query/get.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_obj_in_query/get.py index e4f421506e4..01173b48f1d 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_obj_in_query/get.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_obj_in_query/get.py @@ -127,9 +127,7 @@ def _object_in_query_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -217,9 +215,7 @@ def object_in_query( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -270,9 +266,7 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_obj_in_query/get.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_obj_in_query/get.pyi index d5a33f0a704..5f932a9f191 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_obj_in_query/get.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_obj_in_query/get.pyi @@ -86,9 +86,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -176,9 +174,7 @@ class ObjectInQuery(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -229,9 +225,7 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_parameter_collisions_1_a_b_ab_self_a_b_/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_parameter_collisions_1_a_b_ab_self_a_b_/post.py index 2e524dd6b21..eef5d877aaf 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_parameter_collisions_1_a_b_ab_self_a_b_/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_parameter_collisions_1_a_b_ab_self_a_b_/post.py @@ -299,9 +299,7 @@ def _parameter_collisions_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -341,7 +339,7 @@ def _parameter_collisions_oapg( def _parameter_collisions_oapg( self, - body, + body = schemas.unset, query_params = frozendict.frozendict(), header_params = frozendict.frozendict(), path_params = frozendict.frozendict(), @@ -465,9 +463,7 @@ def parameter_collisions( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -507,7 +503,7 @@ def parameter_collisions( def parameter_collisions( self, - body, + body = schemas.unset, query_params = frozendict.frozendict(), header_params = frozendict.frozendict(), path_params = frozendict.frozendict(), @@ -548,9 +544,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -590,7 +584,7 @@ def post( def post( self, - body, + body = schemas.unset, query_params = frozendict.frozendict(), header_params = frozendict.frozendict(), path_params = frozendict.frozendict(), diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_parameter_collisions_1_a_b_ab_self_a_b_/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_parameter_collisions_1_a_b_ab_self_a_b_/post.pyi index 2f552e3d589..486477c477a 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_parameter_collisions_1_a_b_ab_self_a_b_/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_parameter_collisions_1_a_b_ab_self_a_b_/post.pyi @@ -71,9 +71,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -113,7 +111,7 @@ class BaseApi(api_client.Api): def _parameter_collisions_oapg( self, - body, + body = schemas.unset, query_params = frozendict.frozendict(), header_params = frozendict.frozendict(), path_params = frozendict.frozendict(), @@ -237,9 +235,7 @@ class ParameterCollisions(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -279,7 +275,7 @@ class ParameterCollisions(BaseApi): def parameter_collisions( self, - body, + body = schemas.unset, query_params = frozendict.frozendict(), header_params = frozendict.frozendict(), path_params = frozendict.frozendict(), @@ -320,9 +316,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -362,7 +356,7 @@ class ApiForpost(BaseApi): def post( self, - body, + body = schemas.unset, query_params = frozendict.frozendict(), header_params = frozendict.frozendict(), path_params = frozendict.frozendict(), diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_pet_id_upload_image_with_required_file/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_pet_id_upload_image_with_required_file/post.py index cdb743b4f10..b9c10583f6f 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_pet_id_upload_image_with_required_file/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_pet_id_upload_image_with_required_file/post.py @@ -171,9 +171,7 @@ def _upload_file_with_required_file_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -207,7 +205,7 @@ def _upload_file_with_required_file_oapg( def _upload_file_with_required_file_oapg( self, - body, + body = schemas.unset, path_params = frozendict.frozendict(), content_type = 'multipart/form-data', accept_content_types = _all_accept_content_types, @@ -291,9 +289,7 @@ def upload_file_with_required_file( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -327,7 +323,7 @@ def upload_file_with_required_file( def upload_file_with_required_file( self, - body, + body = schemas.unset, path_params = frozendict.frozendict(), content_type = 'multipart/form-data', accept_content_types = _all_accept_content_types, @@ -359,9 +355,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -395,7 +389,7 @@ def post( def post( self, - body, + body = schemas.unset, path_params = frozendict.frozendict(), content_type = 'multipart/form-data', accept_content_types = _all_accept_content_types, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_pet_id_upload_image_with_required_file/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_pet_id_upload_image_with_required_file/post.pyi index e09c9fcb60c..f2b8c22a057 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_pet_id_upload_image_with_required_file/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_pet_id_upload_image_with_required_file/post.pyi @@ -113,9 +113,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -149,7 +147,7 @@ class BaseApi(api_client.Api): def _upload_file_with_required_file_oapg( self, - body, + body = schemas.unset, path_params = frozendict.frozendict(), content_type = 'multipart/form-data', accept_content_types = _all_accept_content_types, @@ -233,9 +231,7 @@ class UploadFileWithRequiredFile(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -269,7 +265,7 @@ class UploadFileWithRequiredFile(BaseApi): def upload_file_with_required_file( self, - body, + body = schemas.unset, path_params = frozendict.frozendict(), content_type = 'multipart/form-data', accept_content_types = _all_accept_content_types, @@ -301,9 +297,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -337,7 +331,7 @@ class ApiForpost(BaseApi): def post( self, - body, + body = schemas.unset, path_params = frozendict.frozendict(), content_type = 'multipart/form-data', accept_content_types = _all_accept_content_types, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_ref_obj_in_query/get.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_ref_obj_in_query/get.py index 059181e9756..914c179eb04 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_ref_obj_in_query/get.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_ref_obj_in_query/get.py @@ -80,9 +80,7 @@ def _ref_object_in_query_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -170,9 +168,7 @@ def ref_object_in_query( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -223,9 +219,7 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_ref_obj_in_query/get.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_ref_obj_in_query/get.pyi index 56bc113cc20..ca88dc50576 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_ref_obj_in_query/get.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_ref_obj_in_query/get.pyi @@ -39,9 +39,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -129,9 +127,7 @@ class RefObjectInQuery(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -182,9 +178,7 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_array_of_enums/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_array_of_enums/post.py index 5a3390698fc..6fd5e8851db 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_array_of_enums/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_array_of_enums/post.py @@ -77,9 +77,7 @@ def _array_of_enums_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -111,7 +109,7 @@ def _array_of_enums_oapg( def _array_of_enums_oapg( self, - body, + body = schemas.unset, content_type = 'application/json', accept_content_types = _all_accept_content_types, stream = False, @@ -178,9 +176,7 @@ def array_of_enums( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -212,7 +208,7 @@ def array_of_enums( def array_of_enums( self, - body, + body = schemas.unset, content_type = 'application/json', accept_content_types = _all_accept_content_types, stream = False, @@ -241,9 +237,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -275,7 +269,7 @@ def post( def post( self, - body, + body = schemas.unset, content_type = 'application/json', accept_content_types = _all_accept_content_types, stream = False, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_array_of_enums/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_array_of_enums/post.pyi index bdc82add7cc..e042e59fac8 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_array_of_enums/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_array_of_enums/post.pyi @@ -46,9 +46,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -80,7 +78,7 @@ class BaseApi(api_client.Api): def _array_of_enums_oapg( self, - body, + body = schemas.unset, content_type = 'application/json', accept_content_types = _all_accept_content_types, stream = False, @@ -147,9 +145,7 @@ class ArrayOfEnums(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -181,7 +177,7 @@ class ArrayOfEnums(BaseApi): def array_of_enums( self, - body, + body = schemas.unset, content_type = 'application/json', accept_content_types = _all_accept_content_types, stream = False, @@ -210,9 +206,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -244,7 +238,7 @@ class ApiForpost(BaseApi): def post( self, - body, + body = schemas.unset, content_type = 'application/json', accept_content_types = _all_accept_content_types, stream = False, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_arraymodel/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_arraymodel/post.py index 50ddcec3290..9d82a02343d 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_arraymodel/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_arraymodel/post.py @@ -77,9 +77,7 @@ def _array_model_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -111,7 +109,7 @@ def _array_model_oapg( def _array_model_oapg( self, - body, + body = schemas.unset, content_type = 'application/json', accept_content_types = _all_accept_content_types, stream = False, @@ -177,9 +175,7 @@ def array_model( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -211,7 +207,7 @@ def array_model( def array_model( self, - body, + body = schemas.unset, content_type = 'application/json', accept_content_types = _all_accept_content_types, stream = False, @@ -240,9 +236,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -274,7 +268,7 @@ def post( def post( self, - body, + body = schemas.unset, content_type = 'application/json', accept_content_types = _all_accept_content_types, stream = False, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_arraymodel/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_arraymodel/post.pyi index c8edcc70421..8264a66732a 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_arraymodel/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_arraymodel/post.pyi @@ -46,9 +46,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -80,7 +78,7 @@ class BaseApi(api_client.Api): def _array_model_oapg( self, - body, + body = schemas.unset, content_type = 'application/json', accept_content_types = _all_accept_content_types, stream = False, @@ -146,9 +144,7 @@ class ArrayModel(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -180,7 +176,7 @@ class ArrayModel(BaseApi): def array_model( self, - body, + body = schemas.unset, content_type = 'application/json', accept_content_types = _all_accept_content_types, stream = False, @@ -209,9 +205,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -243,7 +237,7 @@ class ApiForpost(BaseApi): def post( self, - body, + body = schemas.unset, content_type = 'application/json', accept_content_types = _all_accept_content_types, stream = False, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_boolean/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_boolean/post.py index fac52ed69aa..4307eb13cc7 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_boolean/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_boolean/post.py @@ -75,9 +75,7 @@ def _boolean_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -109,7 +107,7 @@ def _boolean_oapg( def _boolean_oapg( self, - body, + body = schemas.unset, content_type = 'application/json', accept_content_types = _all_accept_content_types, stream = False, @@ -175,9 +173,7 @@ def boolean( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -209,7 +205,7 @@ def boolean( def boolean( self, - body, + body = schemas.unset, content_type = 'application/json', accept_content_types = _all_accept_content_types, stream = False, @@ -238,9 +234,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -272,7 +266,7 @@ def post( def post( self, - body, + body = schemas.unset, content_type = 'application/json', accept_content_types = _all_accept_content_types, stream = False, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_boolean/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_boolean/post.pyi index 4499f018e71..48c115638fe 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_boolean/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_boolean/post.pyi @@ -44,9 +44,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -78,7 +76,7 @@ class BaseApi(api_client.Api): def _boolean_oapg( self, - body, + body = schemas.unset, content_type = 'application/json', accept_content_types = _all_accept_content_types, stream = False, @@ -144,9 +142,7 @@ class Boolean(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -178,7 +174,7 @@ class Boolean(BaseApi): def boolean( self, - body, + body = schemas.unset, content_type = 'application/json', accept_content_types = _all_accept_content_types, stream = False, @@ -207,9 +203,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -241,7 +235,7 @@ class ApiForpost(BaseApi): def post( self, - body, + body = schemas.unset, content_type = 'application/json', accept_content_types = _all_accept_content_types, stream = False, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_composed_one_of_number_with_validations/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_composed_one_of_number_with_validations/post.py index 9a2664fa2c0..270fa92ab55 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_composed_one_of_number_with_validations/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_composed_one_of_number_with_validations/post.py @@ -77,9 +77,7 @@ def _composed_one_of_different_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -111,7 +109,7 @@ def _composed_one_of_different_types_oapg( def _composed_one_of_different_types_oapg( self, - body, + body = schemas.unset, content_type = 'application/json', accept_content_types = _all_accept_content_types, stream = False, @@ -177,9 +175,7 @@ def composed_one_of_different_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -211,7 +207,7 @@ def composed_one_of_different_types( def composed_one_of_different_types( self, - body, + body = schemas.unset, content_type = 'application/json', accept_content_types = _all_accept_content_types, stream = False, @@ -240,9 +236,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -274,7 +268,7 @@ def post( def post( self, - body, + body = schemas.unset, content_type = 'application/json', accept_content_types = _all_accept_content_types, stream = False, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_composed_one_of_number_with_validations/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_composed_one_of_number_with_validations/post.pyi index 7248daddb1e..6f046a9024c 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_composed_one_of_number_with_validations/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_composed_one_of_number_with_validations/post.pyi @@ -46,9 +46,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -80,7 +78,7 @@ class BaseApi(api_client.Api): def _composed_one_of_different_types_oapg( self, - body, + body = schemas.unset, content_type = 'application/json', accept_content_types = _all_accept_content_types, stream = False, @@ -146,9 +144,7 @@ class ComposedOneOfDifferentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -180,7 +176,7 @@ class ComposedOneOfDifferentTypes(BaseApi): def composed_one_of_different_types( self, - body, + body = schemas.unset, content_type = 'application/json', accept_content_types = _all_accept_content_types, stream = False, @@ -209,9 +205,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -243,7 +237,7 @@ class ApiForpost(BaseApi): def post( self, - body, + body = schemas.unset, content_type = 'application/json', accept_content_types = _all_accept_content_types, stream = False, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_enum/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_enum/post.py index 6fc71e4fa5b..1ebffe09077 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_enum/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_enum/post.py @@ -77,9 +77,7 @@ def _string_enum_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -111,7 +109,7 @@ def _string_enum_oapg( def _string_enum_oapg( self, - body, + body = schemas.unset, content_type = 'application/json', accept_content_types = _all_accept_content_types, stream = False, @@ -177,9 +175,7 @@ def string_enum( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -211,7 +207,7 @@ def string_enum( def string_enum( self, - body, + body = schemas.unset, content_type = 'application/json', accept_content_types = _all_accept_content_types, stream = False, @@ -240,9 +236,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -274,7 +268,7 @@ def post( def post( self, - body, + body = schemas.unset, content_type = 'application/json', accept_content_types = _all_accept_content_types, stream = False, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_enum/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_enum/post.pyi index 1f8257d2b85..94a9939a49f 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_enum/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_enum/post.pyi @@ -46,9 +46,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -80,7 +78,7 @@ class BaseApi(api_client.Api): def _string_enum_oapg( self, - body, + body = schemas.unset, content_type = 'application/json', accept_content_types = _all_accept_content_types, stream = False, @@ -146,9 +144,7 @@ class StringEnum(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -180,7 +176,7 @@ class StringEnum(BaseApi): def string_enum( self, - body, + body = schemas.unset, content_type = 'application/json', accept_content_types = _all_accept_content_types, stream = False, @@ -209,9 +205,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -243,7 +237,7 @@ class ApiForpost(BaseApi): def post( self, - body, + body = schemas.unset, content_type = 'application/json', accept_content_types = _all_accept_content_types, stream = False, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_mammal/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_mammal/post.py index f3d7804eaa0..d05c0d4fa7c 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_mammal/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_mammal/post.py @@ -78,9 +78,7 @@ def _mammal_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -180,9 +178,7 @@ def mammal( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -243,9 +239,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_mammal/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_mammal/post.pyi index 01341850eac..21d3263c643 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_mammal/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_mammal/post.pyi @@ -46,9 +46,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -148,9 +146,7 @@ class Mammal(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -211,9 +207,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_number/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_number/post.py index bb40517b3ef..94f7aab99fc 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_number/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_number/post.py @@ -77,9 +77,7 @@ def _number_with_validations_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -111,7 +109,7 @@ def _number_with_validations_oapg( def _number_with_validations_oapg( self, - body, + body = schemas.unset, content_type = 'application/json', accept_content_types = _all_accept_content_types, stream = False, @@ -177,9 +175,7 @@ def number_with_validations( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -211,7 +207,7 @@ def number_with_validations( def number_with_validations( self, - body, + body = schemas.unset, content_type = 'application/json', accept_content_types = _all_accept_content_types, stream = False, @@ -240,9 +236,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -274,7 +268,7 @@ def post( def post( self, - body, + body = schemas.unset, content_type = 'application/json', accept_content_types = _all_accept_content_types, stream = False, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_number/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_number/post.pyi index c51777413ee..dc60a287b27 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_number/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_number/post.pyi @@ -46,9 +46,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -80,7 +78,7 @@ class BaseApi(api_client.Api): def _number_with_validations_oapg( self, - body, + body = schemas.unset, content_type = 'application/json', accept_content_types = _all_accept_content_types, stream = False, @@ -146,9 +144,7 @@ class NumberWithValidations(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -180,7 +176,7 @@ class NumberWithValidations(BaseApi): def number_with_validations( self, - body, + body = schemas.unset, content_type = 'application/json', accept_content_types = _all_accept_content_types, stream = False, @@ -209,9 +205,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -243,7 +237,7 @@ class ApiForpost(BaseApi): def post( self, - body, + body = schemas.unset, content_type = 'application/json', accept_content_types = _all_accept_content_types, stream = False, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_object_model_with_ref_props/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_object_model_with_ref_props/post.py index fa55d76f3d5..7974e25698f 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_object_model_with_ref_props/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_object_model_with_ref_props/post.py @@ -77,9 +77,7 @@ def _object_model_with_ref_props_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -111,7 +109,7 @@ def _object_model_with_ref_props_oapg( def _object_model_with_ref_props_oapg( self, - body, + body = schemas.unset, content_type = 'application/json', accept_content_types = _all_accept_content_types, stream = False, @@ -177,9 +175,7 @@ def object_model_with_ref_props( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -211,7 +207,7 @@ def object_model_with_ref_props( def object_model_with_ref_props( self, - body, + body = schemas.unset, content_type = 'application/json', accept_content_types = _all_accept_content_types, stream = False, @@ -240,9 +236,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -274,7 +268,7 @@ def post( def post( self, - body, + body = schemas.unset, content_type = 'application/json', accept_content_types = _all_accept_content_types, stream = False, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_object_model_with_ref_props/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_object_model_with_ref_props/post.pyi index 32ca78067c0..984a1775309 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_object_model_with_ref_props/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_object_model_with_ref_props/post.pyi @@ -46,9 +46,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -80,7 +78,7 @@ class BaseApi(api_client.Api): def _object_model_with_ref_props_oapg( self, - body, + body = schemas.unset, content_type = 'application/json', accept_content_types = _all_accept_content_types, stream = False, @@ -146,9 +144,7 @@ class ObjectModelWithRefProps(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -180,7 +176,7 @@ class ObjectModelWithRefProps(BaseApi): def object_model_with_ref_props( self, - body, + body = schemas.unset, content_type = 'application/json', accept_content_types = _all_accept_content_types, stream = False, @@ -209,9 +205,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -243,7 +237,7 @@ class ApiForpost(BaseApi): def post( self, - body, + body = schemas.unset, content_type = 'application/json', accept_content_types = _all_accept_content_types, stream = False, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_string/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_string/post.py index d2eea2d6b7d..1424f33eff7 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_string/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_string/post.py @@ -75,9 +75,7 @@ def _string_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -109,7 +107,7 @@ def _string_oapg( def _string_oapg( self, - body, + body = schemas.unset, content_type = 'application/json', accept_content_types = _all_accept_content_types, stream = False, @@ -175,9 +173,7 @@ def string( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -209,7 +205,7 @@ def string( def string( self, - body, + body = schemas.unset, content_type = 'application/json', accept_content_types = _all_accept_content_types, stream = False, @@ -238,9 +234,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -272,7 +266,7 @@ def post( def post( self, - body, + body = schemas.unset, content_type = 'application/json', accept_content_types = _all_accept_content_types, stream = False, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_string/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_string/post.pyi index f3f2db21caa..33e52f3a9d9 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_string/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_string/post.pyi @@ -44,9 +44,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -78,7 +76,7 @@ class BaseApi(api_client.Api): def _string_oapg( self, - body, + body = schemas.unset, content_type = 'application/json', accept_content_types = _all_accept_content_types, stream = False, @@ -144,9 +142,7 @@ class String(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -178,7 +174,7 @@ class String(BaseApi): def string( self, - body, + body = schemas.unset, content_type = 'application/json', accept_content_types = _all_accept_content_types, stream = False, @@ -207,9 +203,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -241,7 +235,7 @@ class ApiForpost(BaseApi): def post( self, - body, + body = schemas.unset, content_type = 'application/json', accept_content_types = _all_accept_content_types, stream = False, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_response_without_schema/get.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_response_without_schema/get.py index eea8e78da68..566b3bd9d01 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_response_without_schema/get.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_response_without_schema/get.py @@ -64,9 +64,7 @@ def _response_without_schema_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -146,9 +144,7 @@ def response_without_schema( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -199,9 +195,7 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_response_without_schema/get.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_response_without_schema/get.pyi index f040d74253f..de73c8689fb 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_response_without_schema/get.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_response_without_schema/get.pyi @@ -40,9 +40,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -122,9 +120,7 @@ class ResponseWithoutSchema(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -175,9 +171,7 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_test_query_paramters/put.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_test_query_paramters/put.py index 092ad736dc5..01e67eb2b51 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_test_query_paramters/put.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_test_query_paramters/put.py @@ -233,9 +233,7 @@ def _query_parameter_collection_format_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -327,9 +325,7 @@ def query_parameter_collection_format( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -380,9 +376,7 @@ def put( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_test_query_paramters/put.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_test_query_paramters/put.pyi index 2b531b5a5b7..fce33f2a61f 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_test_query_paramters/put.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_test_query_paramters/put.pyi @@ -154,9 +154,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -248,9 +246,7 @@ class QueryParameterCollectionFormat(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -301,9 +297,7 @@ class ApiForput(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_download_file/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_download_file/post.py index 2a2dcd1111a..ed4b007cde5 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_download_file/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_download_file/post.py @@ -76,9 +76,7 @@ def _upload_download_file_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -179,9 +177,7 @@ def upload_download_file( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -242,9 +238,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_download_file/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_download_file/post.pyi index dd99a85c360..f5e75567e87 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_download_file/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_download_file/post.pyi @@ -44,9 +44,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -147,9 +145,7 @@ class UploadDownloadFile(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -210,9 +206,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_file/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_file/post.py index 99e835fc94c..03ceffe4a7a 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_file/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_file/post.py @@ -141,9 +141,7 @@ def _upload_file_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -175,7 +173,7 @@ def _upload_file_oapg( def _upload_file_oapg( self, - body, + body = schemas.unset, content_type = 'multipart/form-data', accept_content_types = _all_accept_content_types, stream = False, @@ -242,9 +240,7 @@ def upload_file( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -276,7 +272,7 @@ def upload_file( def upload_file( self, - body, + body = schemas.unset, content_type = 'multipart/form-data', accept_content_types = _all_accept_content_types, stream = False, @@ -305,9 +301,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -339,7 +333,7 @@ def post( def post( self, - body, + body = schemas.unset, content_type = 'multipart/form-data', accept_content_types = _all_accept_content_types, stream = False, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_file/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_file/post.pyi index 7e6c5a92bf8..4fdf2fde1b2 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_file/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_file/post.pyi @@ -110,9 +110,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -144,7 +142,7 @@ class BaseApi(api_client.Api): def _upload_file_oapg( self, - body, + body = schemas.unset, content_type = 'multipart/form-data', accept_content_types = _all_accept_content_types, stream = False, @@ -211,9 +209,7 @@ class UploadFile(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -245,7 +241,7 @@ class UploadFile(BaseApi): def upload_file( self, - body, + body = schemas.unset, content_type = 'multipart/form-data', accept_content_types = _all_accept_content_types, stream = False, @@ -274,9 +270,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -308,7 +302,7 @@ class ApiForpost(BaseApi): def post( self, - body, + body = schemas.unset, content_type = 'multipart/form-data', accept_content_types = _all_accept_content_types, stream = False, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_files/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_files/post.py index 775a6213813..997912e9f7c 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_files/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_files/post.py @@ -148,9 +148,7 @@ def _upload_files_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -182,7 +180,7 @@ def _upload_files_oapg( def _upload_files_oapg( self, - body, + body = schemas.unset, content_type = 'multipart/form-data', accept_content_types = _all_accept_content_types, stream = False, @@ -249,9 +247,7 @@ def upload_files( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -283,7 +279,7 @@ def upload_files( def upload_files( self, - body, + body = schemas.unset, content_type = 'multipart/form-data', accept_content_types = _all_accept_content_types, stream = False, @@ -312,9 +308,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -346,7 +340,7 @@ def post( def post( self, - body, + body = schemas.unset, content_type = 'multipart/form-data', accept_content_types = _all_accept_content_types, stream = False, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_files/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_files/post.pyi index 8f7291c0e98..e040d26050a 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_files/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_files/post.pyi @@ -117,9 +117,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -151,7 +149,7 @@ class BaseApi(api_client.Api): def _upload_files_oapg( self, - body, + body = schemas.unset, content_type = 'multipart/form-data', accept_content_types = _all_accept_content_types, stream = False, @@ -218,9 +216,7 @@ class UploadFiles(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -252,7 +248,7 @@ class UploadFiles(BaseApi): def upload_files( self, - body, + body = schemas.unset, content_type = 'multipart/form-data', accept_content_types = _all_accept_content_types, stream = False, @@ -281,9 +277,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -315,7 +309,7 @@ class ApiForpost(BaseApi): def post( self, - body, + body = schemas.unset, content_type = 'multipart/form-data', accept_content_types = _all_accept_content_types, stream = False, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/foo/get.py b/samples/openapi3/client/petstore/python/petstore_api/paths/foo/get.py index 60147cf1398..8e6bda548fc 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/foo/get.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/foo/get.py @@ -117,9 +117,7 @@ def _foo_get_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseForDefault, - ]: + ) -> typing.Union[ApiResponseForDefault,api_client.ApiResponse,]: ... @typing.overload @@ -202,9 +200,7 @@ def foo_get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseForDefault, - ]: + ) -> typing.Union[ApiResponseForDefault,api_client.ApiResponse,]: ... @typing.overload @@ -255,9 +251,7 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseForDefault, - ]: + ) -> typing.Union[ApiResponseForDefault,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/foo/get.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/foo/get.pyi index f552c12fcfd..960dfb509f3 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/foo/get.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/foo/get.pyi @@ -94,9 +94,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseForDefault, - ]: + ) -> typing.Union[ApiResponseForDefault,api_client.ApiResponse,]: ... @typing.overload @@ -179,9 +177,7 @@ class FooGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseForDefault, - ]: + ) -> typing.Union[ApiResponseForDefault,api_client.ApiResponse,]: ... @typing.overload @@ -232,9 +228,7 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseForDefault, - ]: + ) -> typing.Union[ApiResponseForDefault,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/pet/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/pet/post.py index 6e72c9111d6..f7c05cd9dcd 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/pet/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/pet/post.py @@ -98,9 +98,7 @@ def _add_pet_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -202,9 +200,7 @@ def add_pet( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -265,9 +261,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/pet/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/pet/post.pyi index a0003e5c3f3..3419fdb6077 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/pet/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/pet/post.pyi @@ -43,9 +43,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -147,9 +145,7 @@ class AddPet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -210,9 +206,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/pet/put.py b/samples/openapi3/client/petstore/python/petstore_api/paths/pet/put.py index b4b8514b3c7..b2295ac22e3 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/pet/put.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/pet/put.py @@ -111,8 +111,7 @@ def _update_pet_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ]: + ) -> typing.Union[api_client.ApiResponse,]: ... @typing.overload @@ -213,8 +212,7 @@ def update_pet( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ]: + ) -> typing.Union[api_client.ApiResponse,]: ... @typing.overload @@ -274,8 +272,7 @@ def put( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ]: + ) -> typing.Union[api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/pet/put.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/pet/put.pyi index 47a33204479..0ef813911b8 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/pet/put.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/pet/put.pyi @@ -43,8 +43,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ]: + ) -> typing.Union[api_client.ApiResponse,]: ... @typing.overload @@ -145,8 +144,7 @@ class UpdatePet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ]: + ) -> typing.Union[api_client.ApiResponse,]: ... @typing.overload @@ -206,8 +204,7 @@ class ApiForput(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ]: + ) -> typing.Union[api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_find_by_status/get.py b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_find_by_status/get.py index ff5c59d13c4..e96d08d6eba 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_find_by_status/get.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_find_by_status/get.py @@ -211,9 +211,7 @@ def _find_pets_by_status_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -312,9 +310,7 @@ def find_pets_by_status( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -370,9 +366,7 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_find_by_status/get.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_find_by_status/get.pyi index d53f591700b..071d095cdd9 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_find_by_status/get.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_find_by_status/get.pyi @@ -136,9 +136,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -237,9 +235,7 @@ class FindPetsByStatus(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -295,9 +291,7 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_find_by_tags/get.py b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_find_by_tags/get.py index 4c954a906ea..d1b504c68fb 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_find_by_tags/get.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_find_by_tags/get.py @@ -186,9 +186,7 @@ def _find_pets_by_tags_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -287,9 +285,7 @@ def find_pets_by_tags( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -345,9 +341,7 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_find_by_tags/get.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_find_by_tags/get.pyi index 55da6139cfc..d7e4750598f 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_find_by_tags/get.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_find_by_tags/get.pyi @@ -119,9 +119,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -220,9 +218,7 @@ class FindPetsByTags(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -278,9 +274,7 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/delete.py b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/delete.py index b0fea9ab2de..b6da16aef65 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/delete.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/delete.py @@ -108,8 +108,7 @@ def _delete_pet_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ]: + ) -> typing.Union[api_client.ApiResponse,]: ... @typing.overload @@ -213,8 +212,7 @@ def delete_pet( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ]: + ) -> typing.Union[api_client.ApiResponse,]: ... @typing.overload @@ -269,8 +267,7 @@ def delete( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ]: + ) -> typing.Union[api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/delete.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/delete.pyi index fbde751180d..af117897895 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/delete.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/delete.pyi @@ -41,8 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ]: + ) -> typing.Union[api_client.ApiResponse,]: ... @typing.overload @@ -146,8 +145,7 @@ class DeletePet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ]: + ) -> typing.Union[api_client.ApiResponse,]: ... @typing.overload @@ -202,8 +200,7 @@ class ApiFordelete(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ]: + ) -> typing.Union[api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/get.py b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/get.py index a7e49c66e0d..0758a5a2364 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/get.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/get.py @@ -126,9 +126,7 @@ def _get_pet_by_id_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -227,9 +225,7 @@ def get_pet_by_id( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -285,9 +281,7 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/get.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/get.pyi index de42fcb0c5a..64ab2f4cd15 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/get.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/get.pyi @@ -47,9 +47,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -148,9 +146,7 @@ class GetPetById(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -206,9 +202,7 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/post.py index 005c1b2ab73..c03e0edb7c0 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/post.py @@ -153,8 +153,7 @@ def _update_pet_with_form_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ]: + ) -> typing.Union[api_client.ApiResponse,]: ... @typing.overload @@ -185,7 +184,7 @@ def _update_pet_with_form_oapg( def _update_pet_with_form_oapg( self, - body, + body = schemas.unset, path_params = frozendict.frozendict(), content_type = 'application/x-www-form-urlencoded', stream = False, @@ -264,8 +263,7 @@ def update_pet_with_form( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ]: + ) -> typing.Union[api_client.ApiResponse,]: ... @typing.overload @@ -296,7 +294,7 @@ def update_pet_with_form( def update_pet_with_form( self, - body, + body = schemas.unset, path_params = frozendict.frozendict(), content_type = 'application/x-www-form-urlencoded', stream = False, @@ -325,8 +323,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ]: + ) -> typing.Union[api_client.ApiResponse,]: ... @typing.overload @@ -357,7 +354,7 @@ def post( def post( self, - body, + body = schemas.unset, path_params = frozendict.frozendict(), content_type = 'application/x-www-form-urlencoded', stream = False, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/post.pyi index 5bcaf95a441..6390048736d 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/post.pyi @@ -101,8 +101,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ]: + ) -> typing.Union[api_client.ApiResponse,]: ... @typing.overload @@ -133,7 +132,7 @@ class BaseApi(api_client.Api): def _update_pet_with_form_oapg( self, - body, + body = schemas.unset, path_params = frozendict.frozendict(), content_type = 'application/x-www-form-urlencoded', stream = False, @@ -212,8 +211,7 @@ class UpdatePetWithForm(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ]: + ) -> typing.Union[api_client.ApiResponse,]: ... @typing.overload @@ -244,7 +242,7 @@ class UpdatePetWithForm(BaseApi): def update_pet_with_form( self, - body, + body = schemas.unset, path_params = frozendict.frozendict(), content_type = 'application/x-www-form-urlencoded', stream = False, @@ -273,8 +271,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ]: + ) -> typing.Union[api_client.ApiResponse,]: ... @typing.overload @@ -305,7 +302,7 @@ class ApiForpost(BaseApi): def post( self, - body, + body = schemas.unset, path_params = frozendict.frozendict(), content_type = 'application/x-www-form-urlencoded', stream = False, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id_upload_image/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id_upload_image/post.py index 9eeda4835cb..c9f436ac9e8 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id_upload_image/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id_upload_image/post.py @@ -166,9 +166,7 @@ def _upload_image_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -202,7 +200,7 @@ def _upload_image_oapg( def _upload_image_oapg( self, - body, + body = schemas.unset, path_params = frozendict.frozendict(), content_type = 'multipart/form-data', accept_content_types = _all_accept_content_types, @@ -286,9 +284,7 @@ def upload_image( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -322,7 +318,7 @@ def upload_image( def upload_image( self, - body, + body = schemas.unset, path_params = frozendict.frozendict(), content_type = 'multipart/form-data', accept_content_types = _all_accept_content_types, @@ -354,9 +350,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -390,7 +384,7 @@ def post( def post( self, - body, + body = schemas.unset, path_params = frozendict.frozendict(), content_type = 'multipart/form-data', accept_content_types = _all_accept_content_types, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id_upload_image/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id_upload_image/post.pyi index 26f4ee6c65e..8809e7cfdb3 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id_upload_image/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id_upload_image/post.pyi @@ -108,9 +108,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -144,7 +142,7 @@ class BaseApi(api_client.Api): def _upload_image_oapg( self, - body, + body = schemas.unset, path_params = frozendict.frozendict(), content_type = 'multipart/form-data', accept_content_types = _all_accept_content_types, @@ -228,9 +226,7 @@ class UploadImage(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -264,7 +260,7 @@ class UploadImage(BaseApi): def upload_image( self, - body, + body = schemas.unset, path_params = frozendict.frozendict(), content_type = 'multipart/form-data', accept_content_types = _all_accept_content_types, @@ -296,9 +292,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -332,7 +326,7 @@ class ApiForpost(BaseApi): def post( self, - body, + body = schemas.unset, path_params = frozendict.frozendict(), content_type = 'multipart/form-data', accept_content_types = _all_accept_content_types, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/store_inventory/get.py b/samples/openapi3/client/petstore/python/petstore_api/paths/store_inventory/get.py index 7775294be3d..579b400a968 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/store_inventory/get.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/store_inventory/get.py @@ -94,9 +94,7 @@ def _get_inventory_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -177,9 +175,7 @@ def get_inventory( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -230,9 +226,7 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/store_inventory/get.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/store_inventory/get.pyi index 5dd7215f10d..546ac7906b8 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/store_inventory/get.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/store_inventory/get.pyi @@ -68,9 +68,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -151,9 +149,7 @@ class GetInventory(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -204,9 +200,7 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/store_order/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/store_order/post.py index 40e3a8c52b5..5a39677fca8 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/store_order/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/store_order/post.py @@ -96,9 +96,7 @@ def _place_order_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -199,9 +197,7 @@ def place_order( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -262,9 +258,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/store_order/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/store_order/post.pyi index 95dd13d6c73..c72ca7ce5dd 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/store_order/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/store_order/post.pyi @@ -48,9 +48,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -151,9 +149,7 @@ class PlaceOrder(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -214,9 +210,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/store_order_order_id/delete.py b/samples/openapi3/client/petstore/python/petstore_api/paths/store_order_order_id/delete.py index 046a7b15510..840aebfeec9 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/store_order_order_id/delete.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/store_order_order_id/delete.py @@ -91,8 +91,7 @@ def _delete_order_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ]: + ) -> typing.Union[api_client.ApiResponse,]: ... @typing.overload @@ -179,8 +178,7 @@ def delete_order( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ]: + ) -> typing.Union[api_client.ApiResponse,]: ... @typing.overload @@ -230,8 +228,7 @@ def delete( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ]: + ) -> typing.Union[api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/store_order_order_id/delete.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/store_order_order_id/delete.pyi index 037ab536b6c..a5ed72083d6 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/store_order_order_id/delete.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/store_order_order_id/delete.pyi @@ -37,8 +37,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ]: + ) -> typing.Union[api_client.ApiResponse,]: ... @typing.overload @@ -125,8 +124,7 @@ class DeleteOrder(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ]: + ) -> typing.Union[api_client.ApiResponse,]: ... @typing.overload @@ -176,8 +174,7 @@ class ApiFordelete(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ]: + ) -> typing.Union[api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/store_order_order_id/get.py b/samples/openapi3/client/petstore/python/petstore_api/paths/store_order_order_id/get.py index fa5e1cb306a..588a9777abb 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/store_order_order_id/get.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/store_order_order_id/get.py @@ -133,9 +133,7 @@ def _get_order_by_id_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -233,9 +231,7 @@ def get_order_by_id( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -291,9 +287,7 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/store_order_order_id/get.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/store_order_order_id/get.pyi index cf5712b3f03..9865272867f 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/store_order_order_id/get.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/store_order_order_id/get.pyi @@ -52,9 +52,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -152,9 +150,7 @@ class GetOrderById(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -210,9 +206,7 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/user/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/user/post.py index 59d2ad89d4c..dc011ae42a6 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/user/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/user/post.py @@ -67,9 +67,7 @@ def _create_user_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseForDefault, - ]: + ) -> typing.Union[ApiResponseForDefault,api_client.ApiResponse,]: ... @typing.overload @@ -167,9 +165,7 @@ def create_user( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseForDefault, - ]: + ) -> typing.Union[ApiResponseForDefault,api_client.ApiResponse,]: ... @typing.overload @@ -225,9 +221,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseForDefault, - ]: + ) -> typing.Union[ApiResponseForDefault,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/user/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/user/post.pyi index 8ea4295dc51..ab42c97f6b4 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/user/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/user/post.pyi @@ -41,9 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseForDefault, - ]: + ) -> typing.Union[ApiResponseForDefault,api_client.ApiResponse,]: ... @typing.overload @@ -141,9 +139,7 @@ class CreateUser(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseForDefault, - ]: + ) -> typing.Union[ApiResponseForDefault,api_client.ApiResponse,]: ... @typing.overload @@ -199,9 +195,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseForDefault, - ]: + ) -> typing.Union[ApiResponseForDefault,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/user_create_with_array/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/user_create_with_array/post.py index 5a8043591f3..8376c4ddc1e 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/user_create_with_array/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/user_create_with_array/post.py @@ -92,9 +92,7 @@ def _create_users_with_array_input_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseForDefault, - ]: + ) -> typing.Union[ApiResponseForDefault,api_client.ApiResponse,]: ... @typing.overload @@ -192,9 +190,7 @@ def create_users_with_array_input( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseForDefault, - ]: + ) -> typing.Union[ApiResponseForDefault,api_client.ApiResponse,]: ... @typing.overload @@ -250,9 +246,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseForDefault, - ]: + ) -> typing.Union[ApiResponseForDefault,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/user_create_with_array/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/user_create_with_array/post.pyi index 7d4151f93fe..56475b38952 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/user_create_with_array/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/user_create_with_array/post.pyi @@ -66,9 +66,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseForDefault, - ]: + ) -> typing.Union[ApiResponseForDefault,api_client.ApiResponse,]: ... @typing.overload @@ -166,9 +164,7 @@ class CreateUsersWithArrayInput(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseForDefault, - ]: + ) -> typing.Union[ApiResponseForDefault,api_client.ApiResponse,]: ... @typing.overload @@ -224,9 +220,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseForDefault, - ]: + ) -> typing.Union[ApiResponseForDefault,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/user_create_with_list/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/user_create_with_list/post.py index 715e192cc42..d27b80686f1 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/user_create_with_list/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/user_create_with_list/post.py @@ -92,9 +92,7 @@ def _create_users_with_list_input_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseForDefault, - ]: + ) -> typing.Union[ApiResponseForDefault,api_client.ApiResponse,]: ... @typing.overload @@ -192,9 +190,7 @@ def create_users_with_list_input( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseForDefault, - ]: + ) -> typing.Union[ApiResponseForDefault,api_client.ApiResponse,]: ... @typing.overload @@ -250,9 +246,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseForDefault, - ]: + ) -> typing.Union[ApiResponseForDefault,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/user_create_with_list/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/user_create_with_list/post.pyi index f55c52bb2ff..3a3c6104d70 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/user_create_with_list/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/user_create_with_list/post.pyi @@ -66,9 +66,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseForDefault, - ]: + ) -> typing.Union[ApiResponseForDefault,api_client.ApiResponse,]: ... @typing.overload @@ -166,9 +164,7 @@ class CreateUsersWithListInput(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseForDefault, - ]: + ) -> typing.Union[ApiResponseForDefault,api_client.ApiResponse,]: ... @typing.overload @@ -224,9 +220,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseForDefault, - ]: + ) -> typing.Union[ApiResponseForDefault,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/user_login/get.py b/samples/openapi3/client/petstore/python/petstore_api/paths/user_login/get.py index 10ffcb4689e..2914203f9c4 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/user_login/get.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/user_login/get.py @@ -141,9 +141,7 @@ def _login_user_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -242,9 +240,7 @@ def login_user( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -300,9 +296,7 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/user_login/get.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/user_login/get.pyi index b98a78f6107..f4cc65ace57 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/user_login/get.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/user_login/get.pyi @@ -48,9 +48,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -149,9 +147,7 @@ class LoginUser(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -207,9 +203,7 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/user_logout/get.py b/samples/openapi3/client/petstore/python/petstore_api/paths/user_logout/get.py index 510c172b45c..14bf0535245 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/user_logout/get.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/user_logout/get.py @@ -51,9 +51,7 @@ def _logout_user_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseForDefault, - ]: + ) -> typing.Union[ApiResponseForDefault,api_client.ApiResponse,]: ... @typing.overload @@ -127,9 +125,7 @@ def logout_user( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseForDefault, - ]: + ) -> typing.Union[ApiResponseForDefault,api_client.ApiResponse,]: ... @typing.overload @@ -175,9 +171,7 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseForDefault, - ]: + ) -> typing.Union[ApiResponseForDefault,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/user_logout/get.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/user_logout/get.pyi index 100c1b9a293..7b6b1ecfc21 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/user_logout/get.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/user_logout/get.pyi @@ -34,9 +34,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseForDefault, - ]: + ) -> typing.Union[ApiResponseForDefault,api_client.ApiResponse,]: ... @typing.overload @@ -110,9 +108,7 @@ class LogoutUser(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseForDefault, - ]: + ) -> typing.Union[ApiResponseForDefault,api_client.ApiResponse,]: ... @typing.overload @@ -158,9 +154,7 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseForDefault, - ]: + ) -> typing.Union[ApiResponseForDefault,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/delete.py b/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/delete.py index 68767a8b1b4..12fcb33c24a 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/delete.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/delete.py @@ -91,8 +91,7 @@ def _delete_user_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ]: + ) -> typing.Union[api_client.ApiResponse,]: ... @typing.overload @@ -179,8 +178,7 @@ def delete_user( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ]: + ) -> typing.Union[api_client.ApiResponse,]: ... @typing.overload @@ -230,8 +228,7 @@ def delete( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ]: + ) -> typing.Union[api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/delete.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/delete.pyi index b0aca52fddf..e83b3866c70 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/delete.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/delete.pyi @@ -37,8 +37,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ]: + ) -> typing.Union[api_client.ApiResponse,]: ... @typing.overload @@ -125,8 +124,7 @@ class DeleteUser(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ]: + ) -> typing.Union[api_client.ApiResponse,]: ... @typing.overload @@ -176,8 +174,7 @@ class ApiFordelete(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ]: + ) -> typing.Union[api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/get.py b/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/get.py index 09a40137ad7..b2b617c5fe4 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/get.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/get.py @@ -123,9 +123,7 @@ def _get_user_by_name_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -223,9 +221,7 @@ def get_user_by_name( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -281,9 +277,7 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/get.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/get.pyi index a0ac6e402f6..de08b4be3d3 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/get.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/get.pyi @@ -47,9 +47,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -147,9 +145,7 @@ class GetUserByName(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload @@ -205,9 +201,7 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ApiResponseFor200, - ]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/put.py b/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/put.py index bc7131d9096..f6d600ca178 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/put.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/put.py @@ -107,8 +107,7 @@ def _update_user_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ]: + ) -> typing.Union[api_client.ApiResponse,]: ... @typing.overload @@ -219,8 +218,7 @@ def update_user( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ]: + ) -> typing.Union[api_client.ApiResponse,]: ... @typing.overload @@ -280,8 +278,7 @@ def put( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ]: + ) -> typing.Union[api_client.ApiResponse,]: ... @typing.overload diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/put.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/put.pyi index 0fed65259f9..7b83100b965 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/put.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/put.pyi @@ -44,8 +44,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ]: + ) -> typing.Union[api_client.ApiResponse,]: ... @typing.overload @@ -156,8 +155,7 @@ class UpdateUser(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ]: + ) -> typing.Union[api_client.ApiResponse,]: ... @typing.overload @@ -217,8 +215,7 @@ class ApiForput(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ - ]: + ) -> typing.Union[api_client.ApiResponse,]: ... @typing.overload From b1a22c5f6bb8c8831761b6fdff4b28a18fea5867 Mon Sep 17 00:00:00 2001 From: Elton Chou Date: Tue, 4 Oct 2022 06:40:38 +0800 Subject: [PATCH 10/11] Add back implementation type hint --- .../resources/python/endpoint_args.handlebars | 46 +++++++++++-------- 1 file changed, 27 insertions(+), 19 deletions(-) diff --git a/modules/openapi-json-schema-generator/src/main/resources/python/endpoint_args.handlebars b/modules/openapi-json-schema-generator/src/main/resources/python/endpoint_args.handlebars index 4eef79959d2..6c2ca1c83de 100644 --- a/modules/openapi-json-schema-generator/src/main/resources/python/endpoint_args.handlebars +++ b/modules/openapi-json-schema-generator/src/main/resources/python/endpoint_args.handlebars @@ -1,40 +1,36 @@ self, {{#if bodyParam}} {{#with bodyParam}} - {{#if isOverload}} body: typing.Union[{{#each content}}{{#with this.schema}}{{baseName}},{{> model_templates/schema_python_types }}{{/with}}{{/each}}{{#unless required}}schemas.Unset] = schemas.unset{{else}}]{{/unless}}, - {{else}} - body{{#unless required}} = schemas.unset{{/unless}}, - {{/if}} {{/with}} {{/if}} {{#if queryParams}} - query_params{{#if isOverload}}: RequestQueryParams{{/if}} = frozendict.frozendict(), + query_params: RequestQueryParams = frozendict.frozendict(), {{/if}} {{#if headerParams}} - header_params{{#if isOverload}}: RequestHeaderParams{{/if}} = frozendict.frozendict(), + header_params: RequestHeaderParams = frozendict.frozendict(), {{/if}} {{#if pathParams}} - path_params{{#if isOverload}}: RequestPathParams{{/if}} = frozendict.frozendict(), + path_params: RequestPathParams = frozendict.frozendict(), {{/if}} {{#if cookieParams}} - cookie_params{{#if isOverload}}: RequestCookieParams{{/if}} = frozendict.frozendict(), + cookie_params: RequestCookieParams = frozendict.frozendict(), {{/if}} {{#with bodyParam}} {{#each content}} {{#if @first}} - content_type{{#if isOverload}}: str{{/if}} = '{{{@key}}}', + content_type: str = '{{{@key}}}', {{/if}} {{/each}} {{/with}} {{#if produces}} - accept_content_types{{#if isOverload}}: typing.Tuple[str]{{/if}} = _all_accept_content_types, + accept_content_types: typing.Tuple[str] = _all_accept_content_types, {{/if}} {{#if servers}} - host_index{{#if isOverload}}: typing.Optional[int]{{/if}} = None, + host_index: typing.Optional[int] = None, {{/if}} - stream{{#if isOverload}}: bool{{/if}} = False, - timeout{{#if isOverload}}: typing.Optional[typing.Union[int, typing.Tuple]]{{/if}} = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, {{#if isOverload}} {{#eq skipDeserialization "True"}} skip_deserialization: typing_extensions.Literal[True] = True, @@ -46,16 +42,16 @@ skip_deserialization: bool = False, {{/eq}} {{else}} - skip_deserialization = False, + skip_deserialization: bool = False, {{/if}} {{#eq skipDeserialization "True"}} ) -> api_client.ApiResponseWithoutDeserialization: {{/eq}} {{#eq skipDeserialization "False"}} -) -> typing.Union[{{#each responses}}{{#if isDefault}}ApiResponseForDefault,{{else}}{{#if is2xx}}ApiResponseFor{{code}},{{/if}}{{/if}}{{/each}}api_client.ApiResponse,]: +) -> typing.Union[{{#each responses}}{{#if isDefault}}ApiResponseForDefault,{{else}}{{#if is2xx}}ApiResponseFor{{code}},{{/if}}{{/if}}{{/each}}api_client.ApiResponse]: {{/eq}} {{#eq skipDeserialization "null"}} - {{#if isOverload}} +{{#if isOverload}} ) -> typing.Union[ {{#each responses}} {{#if isDefault}} @@ -68,9 +64,21 @@ {{/each}} api_client.ApiResponseWithoutDeserialization, ]: - {{else}} -): - {{/if}} +{{else}} +) -> typing.Union[ + {{#each responses}} + {{#if isDefault}} + ApiResponseForDefault, + {{else}} + {{#if is2xx}} + ApiResponseFor{{code}}, + {{/if}} + {{/if}} + {{/each}} + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, +]: +{{/if}} {{/eq}} {{#if isOverload}} ... From f94e86aab841eb960b1f40db809853fddaf86d40 Mon Sep 17 00:00:00 2001 From: Elton Chou Date: Tue, 4 Oct 2022 06:48:11 +0800 Subject: [PATCH 11/11] Update samples --- .../post.py | 54 +++++++----- .../post.pyi | 54 +++++++----- .../post.py | 54 +++++++----- .../post.pyi | 54 +++++++----- .../post.py | 54 +++++++----- .../post.pyi | 54 +++++++----- .../post.py | 54 +++++++----- .../post.pyi | 54 +++++++----- .../post.py | 54 +++++++----- .../post.pyi | 54 +++++++----- .../post.py | 54 +++++++----- .../post.pyi | 54 +++++++----- .../post.py | 54 +++++++----- .../post.pyi | 54 +++++++----- .../post.py | 54 +++++++----- .../post.pyi | 54 +++++++----- .../post.py | 54 +++++++----- .../post.pyi | 54 +++++++----- .../post.py | 54 +++++++----- .../post.pyi | 54 +++++++----- .../post.py | 54 +++++++----- .../post.pyi | 54 +++++++----- .../post.py | 54 +++++++----- .../post.pyi | 54 +++++++----- .../post.py | 54 +++++++----- .../post.pyi | 54 +++++++----- .../post.py | 54 +++++++----- .../post.pyi | 54 +++++++----- .../post.py | 54 +++++++----- .../post.pyi | 54 +++++++----- .../post.py | 54 +++++++----- .../post.pyi | 54 +++++++----- .../post.py | 54 +++++++----- .../post.pyi | 54 +++++++----- .../post.py | 54 +++++++----- .../post.pyi | 54 +++++++----- .../post.py | 54 +++++++----- .../post.pyi | 54 +++++++----- .../post.py | 54 +++++++----- .../post.pyi | 54 +++++++----- .../post.py | 54 +++++++----- .../post.pyi | 54 +++++++----- .../post.py | 54 +++++++----- .../post.pyi | 54 +++++++----- .../post.py | 54 +++++++----- .../post.pyi | 54 +++++++----- .../post.py | 54 +++++++----- .../post.pyi | 54 +++++++----- .../post.py | 54 +++++++----- .../post.pyi | 54 +++++++----- .../post.py | 54 +++++++----- .../post.pyi | 54 +++++++----- .../post.py | 54 +++++++----- .../post.pyi | 54 +++++++----- .../post.py | 54 +++++++----- .../post.pyi | 54 +++++++----- .../post.py | 54 +++++++----- .../post.pyi | 54 +++++++----- .../post.py | 54 +++++++----- .../post.pyi | 54 +++++++----- .../post.py | 54 +++++++----- .../post.pyi | 54 +++++++----- .../post.py | 54 +++++++----- .../post.pyi | 54 +++++++----- .../post.py | 54 +++++++----- .../post.pyi | 54 +++++++----- .../post.py | 54 +++++++----- .../post.pyi | 54 +++++++----- .../post.py | 54 +++++++----- .../post.pyi | 54 +++++++----- .../post.py | 54 +++++++----- .../post.pyi | 54 +++++++----- .../post.py | 54 +++++++----- .../post.pyi | 54 +++++++----- .../post.py | 54 +++++++----- .../post.pyi | 54 +++++++----- .../post.py | 54 +++++++----- .../post.pyi | 54 +++++++----- .../post.py | 54 +++++++----- .../post.pyi | 54 +++++++----- .../post.py | 54 +++++++----- .../post.pyi | 54 +++++++----- .../post.py | 54 +++++++----- .../post.pyi | 54 +++++++----- .../post.py | 54 +++++++----- .../post.pyi | 54 +++++++----- .../post.py | 54 +++++++----- .../post.pyi | 54 +++++++----- .../post.py | 54 +++++++----- .../post.pyi | 54 +++++++----- .../post.py | 54 +++++++----- .../post.pyi | 54 +++++++----- .../post.py | 54 +++++++----- .../post.pyi | 54 +++++++----- .../post.py | 54 +++++++----- .../post.pyi | 54 +++++++----- .../post.py | 54 +++++++----- .../post.pyi | 54 +++++++----- .../post.py | 54 +++++++----- .../post.pyi | 54 +++++++----- .../post.py | 54 +++++++----- .../post.pyi | 54 +++++++----- .../post.py | 54 +++++++----- .../post.pyi | 54 +++++++----- .../post.py | 54 +++++++----- .../post.pyi | 54 +++++++----- .../post.py | 54 +++++++----- .../post.pyi | 54 +++++++----- .../post.py | 54 +++++++----- .../post.pyi | 54 +++++++----- .../post.py | 54 +++++++----- .../post.pyi | 54 +++++++----- .../post.py | 54 +++++++----- .../post.pyi | 54 +++++++----- .../post.py | 54 +++++++----- .../post.pyi | 54 +++++++----- .../post.py | 54 +++++++----- .../post.pyi | 54 +++++++----- .../post.py | 54 +++++++----- .../post.pyi | 54 +++++++----- .../post.py | 54 +++++++----- .../post.pyi | 54 +++++++----- .../post.py | 54 +++++++----- .../post.pyi | 54 +++++++----- .../post.py | 54 +++++++----- .../post.pyi | 54 +++++++----- .../post.py | 54 +++++++----- .../post.pyi | 54 +++++++----- .../post.py | 54 +++++++----- .../post.pyi | 54 +++++++----- .../post.py | 54 +++++++----- .../post.pyi | 54 +++++++----- .../post.py | 54 +++++++----- .../post.pyi | 54 +++++++----- .../post.py | 54 +++++++----- .../post.pyi | 54 +++++++----- .../post.py | 54 +++++++----- .../post.pyi | 54 +++++++----- .../post.py | 54 +++++++----- .../post.pyi | 54 +++++++----- .../post.py | 54 +++++++----- .../post.pyi | 54 +++++++----- .../post.py | 54 +++++++----- .../post.pyi | 54 +++++++----- .../post.py | 54 +++++++----- .../post.pyi | 54 +++++++----- .../post.py | 54 +++++++----- .../post.pyi | 54 +++++++----- .../post.py | 54 +++++++----- .../post.pyi | 54 +++++++----- .../post.py | 54 +++++++----- .../post.pyi | 54 +++++++----- .../post.py | 54 +++++++----- .../post.pyi | 54 +++++++----- .../post.py | 54 +++++++----- .../post.pyi | 54 +++++++----- .../post.py | 54 +++++++----- .../post.pyi | 54 +++++++----- .../post.py | 54 +++++++----- .../post.pyi | 54 +++++++----- .../post.py | 54 +++++++----- .../post.pyi | 54 +++++++----- .../post.py | 54 +++++++----- .../post.pyi | 54 +++++++----- .../post.py | 54 +++++++----- .../post.pyi | 54 +++++++----- .../post.py | 54 +++++++----- .../post.pyi | 54 +++++++----- .../post.py | 54 +++++++----- .../post.pyi | 54 +++++++----- .../post.py | 54 +++++++----- .../post.pyi | 54 +++++++----- .../post.py | 54 +++++++----- .../post.pyi | 54 +++++++----- .../post.py | 48 +++++++---- .../post.pyi | 48 +++++++---- .../post.py | 48 +++++++---- .../post.pyi | 48 +++++++---- .../post.py | 48 +++++++---- .../post.pyi | 48 +++++++---- .../post.py | 48 +++++++---- .../post.pyi | 48 +++++++---- .../post.py | 48 +++++++---- .../post.pyi | 48 +++++++---- .../post.py | 48 +++++++---- .../post.pyi | 48 +++++++---- .../post.py | 48 +++++++---- .../post.pyi | 48 +++++++---- .../post.py | 48 +++++++---- .../post.pyi | 48 +++++++---- .../post.py | 48 +++++++---- .../post.pyi | 48 +++++++---- .../post.py | 48 +++++++---- .../post.pyi | 48 +++++++---- .../post.py | 48 +++++++---- .../post.pyi | 48 +++++++---- .../post.py | 48 +++++++---- .../post.pyi | 48 +++++++---- .../post.py | 48 +++++++---- .../post.pyi | 48 +++++++---- .../post.py | 48 +++++++---- .../post.pyi | 48 +++++++---- .../post.py | 48 +++++++---- .../post.pyi | 48 +++++++---- .../post.py | 48 +++++++---- .../post.pyi | 48 +++++++---- .../post.py | 48 +++++++---- .../post.pyi | 48 +++++++---- .../post.py | 48 +++++++---- .../post.pyi | 48 +++++++---- .../post.py | 48 +++++++---- .../post.pyi | 48 +++++++---- .../post.py | 48 +++++++---- .../post.pyi | 48 +++++++---- .../post.py | 48 +++++++---- .../post.pyi | 48 +++++++---- .../post.py | 48 +++++++---- .../post.pyi | 48 +++++++---- .../post.py | 48 +++++++---- .../post.pyi | 48 +++++++---- .../post.py | 48 +++++++---- .../post.pyi | 48 +++++++---- .../post.py | 48 +++++++---- .../post.pyi | 48 +++++++---- .../post.py | 48 +++++++---- .../post.pyi | 48 +++++++---- .../post.py | 48 +++++++---- .../post.pyi | 48 +++++++---- .../post.py | 48 +++++++---- .../post.pyi | 48 +++++++---- .../post.py | 48 +++++++---- .../post.pyi | 48 +++++++---- .../post.py | 48 +++++++---- .../post.pyi | 48 +++++++---- .../post.py | 48 +++++++---- .../post.pyi | 48 +++++++---- .../post.py | 48 +++++++---- .../post.pyi | 48 +++++++---- .../post.py | 48 +++++++---- .../post.pyi | 48 +++++++---- .../post.py | 48 +++++++---- .../post.pyi | 48 +++++++---- .../post.py | 48 +++++++---- .../post.pyi | 48 +++++++---- .../post.py | 48 +++++++---- .../post.pyi | 48 +++++++---- .../post.py | 48 +++++++---- .../post.pyi | 48 +++++++---- .../post.py | 48 +++++++---- .../post.pyi | 48 +++++++---- .../post.py | 48 +++++++---- .../post.pyi | 48 +++++++---- .../post.py | 48 +++++++---- .../post.pyi | 48 +++++++---- .../post.py | 48 +++++++---- .../post.pyi | 48 +++++++---- .../post.py | 48 +++++++---- .../post.pyi | 48 +++++++---- .../post.py | 48 +++++++---- .../post.pyi | 48 +++++++---- .../post.py | 48 +++++++---- .../post.pyi | 48 +++++++---- .../post.py | 48 +++++++---- .../post.pyi | 48 +++++++---- .../post.py | 48 +++++++---- .../post.pyi | 48 +++++++---- .../post.py | 48 +++++++---- .../post.pyi | 48 +++++++---- .../post.py | 48 +++++++---- .../post.pyi | 48 +++++++---- .../post.py | 48 +++++++---- .../post.pyi | 48 +++++++---- .../post.py | 48 +++++++---- .../post.pyi | 48 +++++++---- .../post.py | 48 +++++++---- .../post.pyi | 48 +++++++---- .../post.py | 48 +++++++---- .../post.pyi | 48 +++++++---- .../post.py | 48 +++++++---- .../post.pyi | 48 +++++++---- .../post.py | 48 +++++++---- .../post.pyi | 48 +++++++---- .../post.py | 48 +++++++---- .../post.pyi | 48 +++++++---- .../post.py | 48 +++++++---- .../post.pyi | 48 +++++++---- .../post.py | 48 +++++++---- .../post.pyi | 48 +++++++---- .../post.py | 48 +++++++---- .../post.pyi | 48 +++++++---- .../post.py | 48 +++++++---- .../post.pyi | 48 +++++++---- .../post.py | 48 +++++++---- .../post.pyi | 48 +++++++---- .../post.py | 48 +++++++---- .../post.pyi | 48 +++++++---- .../post.py | 48 +++++++---- .../post.pyi | 48 +++++++---- .../post.py | 48 +++++++---- .../post.pyi | 48 +++++++---- .../post.py | 48 +++++++---- .../post.pyi | 48 +++++++---- .../post.py | 48 +++++++---- .../post.pyi | 48 +++++++---- .../post.py | 48 +++++++---- .../post.pyi | 48 +++++++---- .../post.py | 48 +++++++---- .../post.pyi | 48 +++++++---- .../post.py | 48 +++++++---- .../post.pyi | 48 +++++++---- .../post.py | 48 +++++++---- .../post.pyi | 48 +++++++---- .../post.py | 48 +++++++---- .../post.pyi | 48 +++++++---- .../post.py | 48 +++++++---- .../post.pyi | 48 +++++++---- .../post.py | 48 +++++++---- .../post.pyi | 48 +++++++---- .../post.py | 48 +++++++---- .../post.pyi | 48 +++++++---- .../post.py | 48 +++++++---- .../post.pyi | 48 +++++++---- .../post.py | 48 +++++++---- .../post.pyi | 48 +++++++---- .../post.py | 48 +++++++---- .../post.pyi | 48 +++++++---- .../post.py | 48 +++++++---- .../post.pyi | 48 +++++++---- .../post.py | 48 +++++++---- .../post.pyi | 48 +++++++---- .../post.py | 48 +++++++---- .../post.pyi | 48 +++++++---- .../post.py | 48 +++++++---- .../post.pyi | 48 +++++++---- .../post.py | 48 +++++++---- .../post.pyi | 48 +++++++---- .../post.py | 48 +++++++---- .../post.pyi | 48 +++++++---- .../post.py | 48 +++++++---- .../post.pyi | 48 +++++++---- .../post.py | 48 +++++++---- .../post.pyi | 48 +++++++---- .../post.py | 48 +++++++---- .../post.pyi | 48 +++++++---- .../post.py | 48 +++++++---- .../post.pyi | 48 +++++++---- .../post.py | 48 +++++++---- .../post.pyi | 48 +++++++---- .../paths/another_fake_dummy/patch.py | 60 +++++++------ .../paths/another_fake_dummy/patch.pyi | 60 +++++++------ .../python/petstore_api/paths/fake/delete.py | 51 ++++++----- .../python/petstore_api/paths/fake/delete.pyi | 51 ++++++----- .../python/petstore_api/paths/fake/get.py | 63 ++++++++------ .../python/petstore_api/paths/fake/get.pyi | 63 ++++++++------ .../python/petstore_api/paths/fake/patch.py | 60 +++++++------ .../python/petstore_api/paths/fake/patch.pyi | 60 +++++++------ .../python/petstore_api/paths/fake/post.py | 51 ++++++----- .../python/petstore_api/paths/fake/post.pyi | 51 ++++++----- .../get.py | 60 +++++++------ .../get.pyi | 60 +++++++------ .../paths/fake_body_with_file_schema/put.py | 54 +++++++----- .../paths/fake_body_with_file_schema/put.pyi | 54 +++++++----- .../paths/fake_body_with_query_params/put.py | 60 +++++++------ .../paths/fake_body_with_query_params/put.pyi | 60 +++++++------ .../paths/fake_case_sensitive_params/put.py | 48 +++++++---- .../paths/fake_case_sensitive_params/put.pyi | 48 +++++++---- .../paths/fake_classname_test/patch.py | 60 +++++++------ .../paths/fake_classname_test/patch.pyi | 60 +++++++------ .../paths/fake_delete_coffee_id/delete.py | 51 +++++++---- .../paths/fake_delete_coffee_id/delete.pyi | 51 +++++++---- .../petstore_api/paths/fake_health/get.py | 48 +++++++---- .../petstore_api/paths/fake_health/get.pyi | 48 +++++++---- .../fake_inline_additional_properties/post.py | 54 +++++++----- .../post.pyi | 54 +++++++----- .../paths/fake_inline_composition_/post.py | 66 +++++++++------ .../paths/fake_inline_composition_/post.pyi | 66 +++++++++------ .../paths/fake_json_form_data/get.py | 54 +++++++----- .../paths/fake_json_form_data/get.pyi | 54 +++++++----- .../paths/fake_json_patch/patch.py | 54 +++++++----- .../paths/fake_json_patch/patch.pyi | 54 +++++++----- .../paths/fake_json_with_charset/post.py | 60 +++++++------ .../paths/fake_json_with_charset/post.pyi | 60 +++++++------ .../paths/fake_obj_in_query/get.py | 48 +++++++---- .../paths/fake_obj_in_query/get.pyi | 48 +++++++---- .../post.py | 84 +++++++++++-------- .../post.pyi | 84 +++++++++++-------- .../post.py | 66 +++++++++------ .../post.pyi | 66 +++++++++------ .../paths/fake_ref_obj_in_query/get.py | 48 +++++++---- .../paths/fake_ref_obj_in_query/get.pyi | 48 +++++++---- .../paths/fake_refs_array_of_enums/post.py | 60 +++++++------ .../paths/fake_refs_array_of_enums/post.pyi | 60 +++++++------ .../paths/fake_refs_arraymodel/post.py | 60 +++++++------ .../paths/fake_refs_arraymodel/post.pyi | 60 +++++++------ .../paths/fake_refs_boolean/post.py | 60 +++++++------ .../paths/fake_refs_boolean/post.pyi | 60 +++++++------ .../post.py | 60 +++++++------ .../post.pyi | 60 +++++++------ .../petstore_api/paths/fake_refs_enum/post.py | 60 +++++++------ .../paths/fake_refs_enum/post.pyi | 60 +++++++------ .../paths/fake_refs_mammal/post.py | 60 +++++++------ .../paths/fake_refs_mammal/post.pyi | 60 +++++++------ .../paths/fake_refs_number/post.py | 60 +++++++------ .../paths/fake_refs_number/post.pyi | 60 +++++++------ .../post.py | 60 +++++++------ .../post.pyi | 60 +++++++------ .../paths/fake_refs_string/post.py | 60 +++++++------ .../paths/fake_refs_string/post.pyi | 60 +++++++------ .../paths/fake_response_without_schema/get.py | 48 +++++++---- .../fake_response_without_schema/get.pyi | 48 +++++++---- .../paths/fake_test_query_paramters/put.py | 48 +++++++---- .../paths/fake_test_query_paramters/put.pyi | 48 +++++++---- .../paths/fake_upload_download_file/post.py | 60 +++++++------ .../paths/fake_upload_download_file/post.pyi | 60 +++++++------ .../paths/fake_upload_file/post.py | 60 +++++++------ .../paths/fake_upload_file/post.pyi | 60 +++++++------ .../paths/fake_upload_files/post.py | 60 +++++++------ .../paths/fake_upload_files/post.pyi | 60 +++++++------ .../python/petstore_api/paths/foo/get.py | 48 +++++++---- .../python/petstore_api/paths/foo/get.pyi | 48 +++++++---- .../python/petstore_api/paths/pet/post.py | 60 +++++++------ .../python/petstore_api/paths/pet/post.pyi | 60 +++++++------ .../python/petstore_api/paths/pet/put.py | 57 +++++++------ .../python/petstore_api/paths/pet/put.pyi | 57 +++++++------ .../paths/pet_find_by_status/get.py | 54 +++++++----- .../paths/pet_find_by_status/get.pyi | 54 +++++++----- .../paths/pet_find_by_tags/get.py | 54 +++++++----- .../paths/pet_find_by_tags/get.pyi | 54 +++++++----- .../petstore_api/paths/pet_pet_id/delete.py | 51 ++++++----- .../petstore_api/paths/pet_pet_id/delete.pyi | 51 ++++++----- .../petstore_api/paths/pet_pet_id/get.py | 54 +++++++----- .../petstore_api/paths/pet_pet_id/get.pyi | 54 +++++++----- .../petstore_api/paths/pet_pet_id/post.py | 57 +++++++------ .../petstore_api/paths/pet_pet_id/post.pyi | 57 +++++++------ .../paths/pet_pet_id_upload_image/post.py | 66 +++++++++------ .../paths/pet_pet_id_upload_image/post.pyi | 66 +++++++++------ .../petstore_api/paths/store_inventory/get.py | 48 +++++++---- .../paths/store_inventory/get.pyi | 48 +++++++---- .../petstore_api/paths/store_order/post.py | 60 +++++++------ .../petstore_api/paths/store_order/post.pyi | 60 +++++++------ .../paths/store_order_order_id/delete.py | 45 ++++++---- .../paths/store_order_order_id/delete.pyi | 45 ++++++---- .../paths/store_order_order_id/get.py | 54 +++++++----- .../paths/store_order_order_id/get.pyi | 54 +++++++----- .../python/petstore_api/paths/user/post.py | 54 +++++++----- .../python/petstore_api/paths/user/post.pyi | 54 +++++++----- .../paths/user_create_with_array/post.py | 54 +++++++----- .../paths/user_create_with_array/post.pyi | 54 +++++++----- .../paths/user_create_with_list/post.py | 54 +++++++----- .../paths/user_create_with_list/post.pyi | 54 +++++++----- .../petstore_api/paths/user_login/get.py | 54 +++++++----- .../petstore_api/paths/user_login/get.pyi | 54 +++++++----- .../petstore_api/paths/user_logout/get.py | 42 ++++++---- .../petstore_api/paths/user_logout/get.pyi | 42 ++++++---- .../paths/user_username/delete.py | 45 ++++++---- .../paths/user_username/delete.pyi | 45 ++++++---- .../petstore_api/paths/user_username/get.py | 54 +++++++----- .../petstore_api/paths/user_username/get.pyi | 54 +++++++----- .../petstore_api/paths/user_username/put.py | 57 +++++++------ .../petstore_api/paths/user_username/put.pyi | 57 +++++++------ 460 files changed, 14748 insertions(+), 9276 deletions(-) diff --git a/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 b/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 index c348da0ba3f..3505c539fe3 100644 --- a/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 +++ b/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 @@ -67,7 +67,7 @@ def _post_additionalproperties_allows_a_schema_which_should_validate_request_bod stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -97,12 +97,16 @@ def _post_additionalproperties_allows_a_schema_which_should_validate_request_bod def _post_additionalproperties_allows_a_schema_which_should_validate_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but 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 stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -190,12 +194,16 @@ def post_additionalproperties_allows_a_schema_which_should_validate_request_body def post_additionalproperties_allows_a_schema_which_should_validate_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_additionalproperties_allows_a_schema_which_should_validate_request_body_oapg( body=body, content_type=content_type, @@ -216,7 +224,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -246,12 +254,16 @@ def post( def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_additionalproperties_allows_a_schema_which_should_validate_request_body_oapg( body=body, content_type=content_type, diff --git a/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 b/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 index f50a377f7bb..23de07a7b9b 100644 --- a/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 +++ b/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 @@ -41,7 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -71,12 +71,16 @@ class BaseApi(api_client.Api): def _post_additionalproperties_allows_a_schema_which_should_validate_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -134,7 +138,7 @@ class PostAdditionalpropertiesAllowsASchemaWhichShouldValidateRequestBody(BaseAp stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -164,12 +168,16 @@ class PostAdditionalpropertiesAllowsASchemaWhichShouldValidateRequestBody(BaseAp def post_additionalproperties_allows_a_schema_which_should_validate_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_additionalproperties_allows_a_schema_which_should_validate_request_body_oapg( body=body, content_type=content_type, @@ -190,7 +198,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -220,12 +228,16 @@ class ApiForpost(BaseApi): def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_additionalproperties_allows_a_schema_which_should_validate_request_body_oapg( body=body, content_type=content_type, diff --git a/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 b/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 index 005911a8a01..c7d13d563d5 100644 --- a/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 +++ b/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 @@ -67,7 +67,7 @@ def _post_additionalproperties_are_allowed_by_default_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -97,12 +97,16 @@ def _post_additionalproperties_are_allowed_by_default_request_body_oapg( def _post_additionalproperties_are_allowed_by_default_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but 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( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -190,12 +194,16 @@ def post_additionalproperties_are_allowed_by_default_request_body( def post_additionalproperties_are_allowed_by_default_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_additionalproperties_are_allowed_by_default_request_body_oapg( body=body, content_type=content_type, @@ -216,7 +224,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -246,12 +254,16 @@ def post( def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_additionalproperties_are_allowed_by_default_request_body_oapg( body=body, content_type=content_type, diff --git a/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 b/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 index 938f10acf31..c66180f1fce 100644 --- a/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 +++ b/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 @@ -41,7 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -71,12 +71,16 @@ class BaseApi(api_client.Api): def _post_additionalproperties_are_allowed_by_default_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -134,7 +138,7 @@ class PostAdditionalpropertiesAreAllowedByDefaultRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -164,12 +168,16 @@ class PostAdditionalpropertiesAreAllowedByDefaultRequestBody(BaseApi): def post_additionalproperties_are_allowed_by_default_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_additionalproperties_are_allowed_by_default_request_body_oapg( body=body, content_type=content_type, @@ -190,7 +198,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -220,12 +228,16 @@ class ApiForpost(BaseApi): def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_additionalproperties_are_allowed_by_default_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post.py index 9c77f5ffa4f..37dff232f54 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post.py @@ -67,7 +67,7 @@ def _post_additionalproperties_can_exist_by_itself_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -97,12 +97,16 @@ def _post_additionalproperties_can_exist_by_itself_request_body_oapg( def _post_additionalproperties_can_exist_by_itself_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -160,7 +164,7 @@ def post_additionalproperties_can_exist_by_itself_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -190,12 +194,16 @@ def post_additionalproperties_can_exist_by_itself_request_body( def post_additionalproperties_can_exist_by_itself_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_additionalproperties_can_exist_by_itself_request_body_oapg( body=body, content_type=content_type, @@ -216,7 +224,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -246,12 +254,16 @@ def post( def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_additionalproperties_can_exist_by_itself_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post.pyi index e56de7534cf..ef3efd5d961 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_can_exist_by_itself_request_body/post.pyi @@ -41,7 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -71,12 +71,16 @@ class BaseApi(api_client.Api): def _post_additionalproperties_can_exist_by_itself_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -134,7 +138,7 @@ class PostAdditionalpropertiesCanExistByItselfRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -164,12 +168,16 @@ class PostAdditionalpropertiesCanExistByItselfRequestBody(BaseApi): def post_additionalproperties_can_exist_by_itself_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_additionalproperties_can_exist_by_itself_request_body_oapg( body=body, content_type=content_type, @@ -190,7 +198,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -220,12 +228,16 @@ class ApiForpost(BaseApi): def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_additionalproperties_can_exist_by_itself_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_should_not_look_in_applicators_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_should_not_look_in_applicators_request_body/post.py index 6d5c73b7965..c3c5547b3b1 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_should_not_look_in_applicators_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_should_not_look_in_applicators_request_body/post.py @@ -67,7 +67,7 @@ def _post_additionalproperties_should_not_look_in_applicators_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -97,12 +97,16 @@ def _post_additionalproperties_should_not_look_in_applicators_request_body_oapg( def _post_additionalproperties_should_not_look_in_applicators_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -160,7 +164,7 @@ def post_additionalproperties_should_not_look_in_applicators_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -190,12 +194,16 @@ def post_additionalproperties_should_not_look_in_applicators_request_body( def post_additionalproperties_should_not_look_in_applicators_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_additionalproperties_should_not_look_in_applicators_request_body_oapg( body=body, content_type=content_type, @@ -216,7 +224,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -246,12 +254,16 @@ def post( def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_additionalproperties_should_not_look_in_applicators_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_should_not_look_in_applicators_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_should_not_look_in_applicators_request_body/post.pyi index 4b81a18b08d..68c027ab385 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_should_not_look_in_applicators_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_additionalproperties_should_not_look_in_applicators_request_body/post.pyi @@ -41,7 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -71,12 +71,16 @@ class BaseApi(api_client.Api): def _post_additionalproperties_should_not_look_in_applicators_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -134,7 +138,7 @@ class PostAdditionalpropertiesShouldNotLookInApplicatorsRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -164,12 +168,16 @@ class PostAdditionalpropertiesShouldNotLookInApplicatorsRequestBody(BaseApi): def post_additionalproperties_should_not_look_in_applicators_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_additionalproperties_should_not_look_in_applicators_request_body_oapg( body=body, content_type=content_type, @@ -190,7 +198,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -220,12 +228,16 @@ class ApiForpost(BaseApi): def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_additionalproperties_should_not_look_in_applicators_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post.py index 94c5f3b177e..1a740769684 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post.py @@ -67,7 +67,7 @@ def _post_allof_combined_with_anyof_oneof_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -97,12 +97,16 @@ def _post_allof_combined_with_anyof_oneof_request_body_oapg( def _post_allof_combined_with_anyof_oneof_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -160,7 +164,7 @@ def post_allof_combined_with_anyof_oneof_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -190,12 +194,16 @@ def post_allof_combined_with_anyof_oneof_request_body( def post_allof_combined_with_anyof_oneof_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_allof_combined_with_anyof_oneof_request_body_oapg( body=body, content_type=content_type, @@ -216,7 +224,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -246,12 +254,16 @@ def post( def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_allof_combined_with_anyof_oneof_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post.pyi index 7981fe53777..24dd2d5b629 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_combined_with_anyof_oneof_request_body/post.pyi @@ -41,7 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -71,12 +71,16 @@ class BaseApi(api_client.Api): def _post_allof_combined_with_anyof_oneof_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -134,7 +138,7 @@ class PostAllofCombinedWithAnyofOneofRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -164,12 +168,16 @@ class PostAllofCombinedWithAnyofOneofRequestBody(BaseApi): def post_allof_combined_with_anyof_oneof_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_allof_combined_with_anyof_oneof_request_body_oapg( body=body, content_type=content_type, @@ -190,7 +198,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -220,12 +228,16 @@ class ApiForpost(BaseApi): def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_allof_combined_with_anyof_oneof_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_request_body/post.py index 0da6065de21..8457b7a52c6 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_request_body/post.py @@ -67,7 +67,7 @@ def _post_allof_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -97,12 +97,16 @@ def _post_allof_request_body_oapg( def _post_allof_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -160,7 +164,7 @@ def post_allof_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -190,12 +194,16 @@ def post_allof_request_body( def post_allof_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_allof_request_body_oapg( body=body, content_type=content_type, @@ -216,7 +224,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -246,12 +254,16 @@ def post( def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_allof_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_request_body/post.pyi index 99805d15728..fbe048868d0 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_request_body/post.pyi @@ -41,7 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -71,12 +71,16 @@ class BaseApi(api_client.Api): def _post_allof_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -134,7 +138,7 @@ class PostAllofRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -164,12 +168,16 @@ class PostAllofRequestBody(BaseApi): def post_allof_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_allof_request_body_oapg( body=body, content_type=content_type, @@ -190,7 +198,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -220,12 +228,16 @@ class ApiForpost(BaseApi): def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_allof_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_simple_types_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_simple_types_request_body/post.py index fd3c204c6b6..6b008f6922d 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_simple_types_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_simple_types_request_body/post.py @@ -67,7 +67,7 @@ def _post_allof_simple_types_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -97,12 +97,16 @@ def _post_allof_simple_types_request_body_oapg( def _post_allof_simple_types_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -160,7 +164,7 @@ def post_allof_simple_types_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -190,12 +194,16 @@ def post_allof_simple_types_request_body( def post_allof_simple_types_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_allof_simple_types_request_body_oapg( body=body, content_type=content_type, @@ -216,7 +224,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -246,12 +254,16 @@ def post( def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_allof_simple_types_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_simple_types_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_simple_types_request_body/post.pyi index 8aba53ff790..94a3d47274b 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_simple_types_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_simple_types_request_body/post.pyi @@ -41,7 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -71,12 +71,16 @@ class BaseApi(api_client.Api): def _post_allof_simple_types_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -134,7 +138,7 @@ class PostAllofSimpleTypesRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -164,12 +168,16 @@ class PostAllofSimpleTypesRequestBody(BaseApi): def post_allof_simple_types_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_allof_simple_types_request_body_oapg( body=body, content_type=content_type, @@ -190,7 +198,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -220,12 +228,16 @@ class ApiForpost(BaseApi): def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_allof_simple_types_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_base_schema_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_base_schema_request_body/post.py index f35f3c5cbfe..1be62584867 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_base_schema_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_base_schema_request_body/post.py @@ -67,7 +67,7 @@ def _post_allof_with_base_schema_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -97,12 +97,16 @@ def _post_allof_with_base_schema_request_body_oapg( def _post_allof_with_base_schema_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -160,7 +164,7 @@ def post_allof_with_base_schema_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -190,12 +194,16 @@ def post_allof_with_base_schema_request_body( def post_allof_with_base_schema_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_allof_with_base_schema_request_body_oapg( body=body, content_type=content_type, @@ -216,7 +224,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -246,12 +254,16 @@ def post( def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_allof_with_base_schema_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_base_schema_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_base_schema_request_body/post.pyi index b1f9d61e2bc..5c7b632cee5 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_base_schema_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_base_schema_request_body/post.pyi @@ -41,7 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -71,12 +71,16 @@ class BaseApi(api_client.Api): def _post_allof_with_base_schema_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -134,7 +138,7 @@ class PostAllofWithBaseSchemaRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -164,12 +168,16 @@ class PostAllofWithBaseSchemaRequestBody(BaseApi): def post_allof_with_base_schema_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_allof_with_base_schema_request_body_oapg( body=body, content_type=content_type, @@ -190,7 +198,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -220,12 +228,16 @@ class ApiForpost(BaseApi): def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_allof_with_base_schema_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_one_empty_schema_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_one_empty_schema_request_body/post.py index 54069ece634..95ef49efc67 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_one_empty_schema_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_one_empty_schema_request_body/post.py @@ -67,7 +67,7 @@ def _post_allof_with_one_empty_schema_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -97,12 +97,16 @@ def _post_allof_with_one_empty_schema_request_body_oapg( def _post_allof_with_one_empty_schema_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -160,7 +164,7 @@ def post_allof_with_one_empty_schema_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -190,12 +194,16 @@ def post_allof_with_one_empty_schema_request_body( def post_allof_with_one_empty_schema_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_allof_with_one_empty_schema_request_body_oapg( body=body, content_type=content_type, @@ -216,7 +224,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -246,12 +254,16 @@ def post( def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_allof_with_one_empty_schema_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_one_empty_schema_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_one_empty_schema_request_body/post.pyi index 3a1a49e7895..e80326e234e 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_one_empty_schema_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_one_empty_schema_request_body/post.pyi @@ -41,7 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -71,12 +71,16 @@ class BaseApi(api_client.Api): def _post_allof_with_one_empty_schema_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -134,7 +138,7 @@ class PostAllofWithOneEmptySchemaRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -164,12 +168,16 @@ class PostAllofWithOneEmptySchemaRequestBody(BaseApi): def post_allof_with_one_empty_schema_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_allof_with_one_empty_schema_request_body_oapg( body=body, content_type=content_type, @@ -190,7 +198,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -220,12 +228,16 @@ class ApiForpost(BaseApi): def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_allof_with_one_empty_schema_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post.py index 18101c1a94b..f6d05c50666 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post.py @@ -67,7 +67,7 @@ def _post_allof_with_the_first_empty_schema_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -97,12 +97,16 @@ def _post_allof_with_the_first_empty_schema_request_body_oapg( def _post_allof_with_the_first_empty_schema_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -160,7 +164,7 @@ def post_allof_with_the_first_empty_schema_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -190,12 +194,16 @@ def post_allof_with_the_first_empty_schema_request_body( def post_allof_with_the_first_empty_schema_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_allof_with_the_first_empty_schema_request_body_oapg( body=body, content_type=content_type, @@ -216,7 +224,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -246,12 +254,16 @@ def post( def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_allof_with_the_first_empty_schema_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post.pyi index 0ad654fc8d8..ff7e0dc8eb3 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_the_first_empty_schema_request_body/post.pyi @@ -41,7 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -71,12 +71,16 @@ class BaseApi(api_client.Api): def _post_allof_with_the_first_empty_schema_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -134,7 +138,7 @@ class PostAllofWithTheFirstEmptySchemaRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -164,12 +168,16 @@ class PostAllofWithTheFirstEmptySchemaRequestBody(BaseApi): def post_allof_with_the_first_empty_schema_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_allof_with_the_first_empty_schema_request_body_oapg( body=body, content_type=content_type, @@ -190,7 +198,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -220,12 +228,16 @@ class ApiForpost(BaseApi): def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_allof_with_the_first_empty_schema_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post.py index d0eabb7deee..00094f0b382 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post.py @@ -67,7 +67,7 @@ def _post_allof_with_the_last_empty_schema_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -97,12 +97,16 @@ def _post_allof_with_the_last_empty_schema_request_body_oapg( def _post_allof_with_the_last_empty_schema_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -160,7 +164,7 @@ def post_allof_with_the_last_empty_schema_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -190,12 +194,16 @@ def post_allof_with_the_last_empty_schema_request_body( def post_allof_with_the_last_empty_schema_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_allof_with_the_last_empty_schema_request_body_oapg( body=body, content_type=content_type, @@ -216,7 +224,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -246,12 +254,16 @@ def post( def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_allof_with_the_last_empty_schema_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post.pyi index a208630fcd5..1c37d5c70c4 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_the_last_empty_schema_request_body/post.pyi @@ -41,7 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -71,12 +71,16 @@ class BaseApi(api_client.Api): def _post_allof_with_the_last_empty_schema_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -134,7 +138,7 @@ class PostAllofWithTheLastEmptySchemaRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -164,12 +168,16 @@ class PostAllofWithTheLastEmptySchemaRequestBody(BaseApi): def post_allof_with_the_last_empty_schema_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_allof_with_the_last_empty_schema_request_body_oapg( body=body, content_type=content_type, @@ -190,7 +198,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -220,12 +228,16 @@ class ApiForpost(BaseApi): def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_allof_with_the_last_empty_schema_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post.py index c7620de902c..a9af7413b7f 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post.py @@ -67,7 +67,7 @@ def _post_allof_with_two_empty_schemas_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -97,12 +97,16 @@ def _post_allof_with_two_empty_schemas_request_body_oapg( def _post_allof_with_two_empty_schemas_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -160,7 +164,7 @@ def post_allof_with_two_empty_schemas_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -190,12 +194,16 @@ def post_allof_with_two_empty_schemas_request_body( def post_allof_with_two_empty_schemas_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_allof_with_two_empty_schemas_request_body_oapg( body=body, content_type=content_type, @@ -216,7 +224,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -246,12 +254,16 @@ def post( def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_allof_with_two_empty_schemas_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post.pyi index bb0910ebf6b..a24853266b3 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_allof_with_two_empty_schemas_request_body/post.pyi @@ -41,7 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -71,12 +71,16 @@ class BaseApi(api_client.Api): def _post_allof_with_two_empty_schemas_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -134,7 +138,7 @@ class PostAllofWithTwoEmptySchemasRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -164,12 +168,16 @@ class PostAllofWithTwoEmptySchemasRequestBody(BaseApi): def post_allof_with_two_empty_schemas_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_allof_with_two_empty_schemas_request_body_oapg( body=body, content_type=content_type, @@ -190,7 +198,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -220,12 +228,16 @@ class ApiForpost(BaseApi): def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_allof_with_two_empty_schemas_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_complex_types_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_complex_types_request_body/post.py index 9fe58900487..955a1a5d25f 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_complex_types_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_complex_types_request_body/post.py @@ -67,7 +67,7 @@ def _post_anyof_complex_types_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -97,12 +97,16 @@ def _post_anyof_complex_types_request_body_oapg( def _post_anyof_complex_types_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -160,7 +164,7 @@ def post_anyof_complex_types_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -190,12 +194,16 @@ def post_anyof_complex_types_request_body( def post_anyof_complex_types_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_anyof_complex_types_request_body_oapg( body=body, content_type=content_type, @@ -216,7 +224,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -246,12 +254,16 @@ def post( def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_anyof_complex_types_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_complex_types_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_complex_types_request_body/post.pyi index 1a60254d0e1..94f1b629a9b 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_complex_types_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_complex_types_request_body/post.pyi @@ -41,7 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -71,12 +71,16 @@ class BaseApi(api_client.Api): def _post_anyof_complex_types_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -134,7 +138,7 @@ class PostAnyofComplexTypesRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -164,12 +168,16 @@ class PostAnyofComplexTypesRequestBody(BaseApi): def post_anyof_complex_types_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_anyof_complex_types_request_body_oapg( body=body, content_type=content_type, @@ -190,7 +198,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -220,12 +228,16 @@ class ApiForpost(BaseApi): def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_anyof_complex_types_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_request_body/post.py index 715898f59a9..5d0e8827dd6 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_request_body/post.py @@ -67,7 +67,7 @@ def _post_anyof_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -97,12 +97,16 @@ def _post_anyof_request_body_oapg( def _post_anyof_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -160,7 +164,7 @@ def post_anyof_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -190,12 +194,16 @@ def post_anyof_request_body( def post_anyof_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_anyof_request_body_oapg( body=body, content_type=content_type, @@ -216,7 +224,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -246,12 +254,16 @@ def post( def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_anyof_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_request_body/post.pyi index aba3af925da..503fca04c40 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_request_body/post.pyi @@ -41,7 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -71,12 +71,16 @@ class BaseApi(api_client.Api): def _post_anyof_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -134,7 +138,7 @@ class PostAnyofRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -164,12 +168,16 @@ class PostAnyofRequestBody(BaseApi): def post_anyof_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_anyof_request_body_oapg( body=body, content_type=content_type, @@ -190,7 +198,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -220,12 +228,16 @@ class ApiForpost(BaseApi): def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_anyof_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_with_base_schema_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_with_base_schema_request_body/post.py index 40ca1c2feb3..0ddf31ae08d 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_with_base_schema_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_with_base_schema_request_body/post.py @@ -67,7 +67,7 @@ def _post_anyof_with_base_schema_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -97,12 +97,16 @@ def _post_anyof_with_base_schema_request_body_oapg( def _post_anyof_with_base_schema_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -160,7 +164,7 @@ def post_anyof_with_base_schema_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -190,12 +194,16 @@ def post_anyof_with_base_schema_request_body( def post_anyof_with_base_schema_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_anyof_with_base_schema_request_body_oapg( body=body, content_type=content_type, @@ -216,7 +224,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -246,12 +254,16 @@ def post( def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_anyof_with_base_schema_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_with_base_schema_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_with_base_schema_request_body/post.pyi index 2e624a182be..78513e02119 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_with_base_schema_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_with_base_schema_request_body/post.pyi @@ -41,7 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -71,12 +71,16 @@ class BaseApi(api_client.Api): def _post_anyof_with_base_schema_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -134,7 +138,7 @@ class PostAnyofWithBaseSchemaRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -164,12 +168,16 @@ class PostAnyofWithBaseSchemaRequestBody(BaseApi): def post_anyof_with_base_schema_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_anyof_with_base_schema_request_body_oapg( body=body, content_type=content_type, @@ -190,7 +198,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -220,12 +228,16 @@ class ApiForpost(BaseApi): def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_anyof_with_base_schema_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_with_one_empty_schema_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_with_one_empty_schema_request_body/post.py index ce966dc6e7b..d0ed4086cd7 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_with_one_empty_schema_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_with_one_empty_schema_request_body/post.py @@ -67,7 +67,7 @@ def _post_anyof_with_one_empty_schema_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -97,12 +97,16 @@ def _post_anyof_with_one_empty_schema_request_body_oapg( def _post_anyof_with_one_empty_schema_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -160,7 +164,7 @@ def post_anyof_with_one_empty_schema_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -190,12 +194,16 @@ def post_anyof_with_one_empty_schema_request_body( def post_anyof_with_one_empty_schema_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_anyof_with_one_empty_schema_request_body_oapg( body=body, content_type=content_type, @@ -216,7 +224,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -246,12 +254,16 @@ def post( def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_anyof_with_one_empty_schema_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_with_one_empty_schema_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_with_one_empty_schema_request_body/post.pyi index 2456db204a5..19c50fa6df9 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_with_one_empty_schema_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_anyof_with_one_empty_schema_request_body/post.pyi @@ -41,7 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -71,12 +71,16 @@ class BaseApi(api_client.Api): def _post_anyof_with_one_empty_schema_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -134,7 +138,7 @@ class PostAnyofWithOneEmptySchemaRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -164,12 +168,16 @@ class PostAnyofWithOneEmptySchemaRequestBody(BaseApi): def post_anyof_with_one_empty_schema_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_anyof_with_one_empty_schema_request_body_oapg( body=body, content_type=content_type, @@ -190,7 +198,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -220,12 +228,16 @@ class ApiForpost(BaseApi): def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_anyof_with_one_empty_schema_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post.py index 938b55a043e..a115131ca83 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post.py @@ -67,7 +67,7 @@ def _post_array_type_matches_arrays_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -97,12 +97,16 @@ def _post_array_type_matches_arrays_request_body_oapg( def _post_array_type_matches_arrays_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -160,7 +164,7 @@ def post_array_type_matches_arrays_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -190,12 +194,16 @@ def post_array_type_matches_arrays_request_body( def post_array_type_matches_arrays_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_array_type_matches_arrays_request_body_oapg( body=body, content_type=content_type, @@ -216,7 +224,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -246,12 +254,16 @@ def post( def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_array_type_matches_arrays_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post.pyi index 88cd27685fa..e8c39729a53 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post.pyi @@ -41,7 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -71,12 +71,16 @@ class BaseApi(api_client.Api): def _post_array_type_matches_arrays_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -134,7 +138,7 @@ class PostArrayTypeMatchesArraysRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -164,12 +168,16 @@ class PostArrayTypeMatchesArraysRequestBody(BaseApi): def post_array_type_matches_arrays_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_array_type_matches_arrays_request_body_oapg( body=body, content_type=content_type, @@ -190,7 +198,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -220,12 +228,16 @@ class ApiForpost(BaseApi): def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_array_type_matches_arrays_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_boolean_type_matches_booleans_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_boolean_type_matches_booleans_request_body/post.py index 260ee24a228..e8982b5dd09 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_boolean_type_matches_booleans_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_boolean_type_matches_booleans_request_body/post.py @@ -65,7 +65,7 @@ def _post_boolean_type_matches_booleans_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -95,12 +95,16 @@ def _post_boolean_type_matches_booleans_request_body_oapg( def _post_boolean_type_matches_booleans_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,bool, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -158,7 +162,7 @@ def post_boolean_type_matches_booleans_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -188,12 +192,16 @@ def post_boolean_type_matches_booleans_request_body( def post_boolean_type_matches_booleans_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,bool, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_boolean_type_matches_booleans_request_body_oapg( body=body, content_type=content_type, @@ -214,7 +222,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -244,12 +252,16 @@ def post( def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,bool, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_boolean_type_matches_booleans_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_boolean_type_matches_booleans_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_boolean_type_matches_booleans_request_body/post.pyi index f54fd998415..deec28fb4ba 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_boolean_type_matches_booleans_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_boolean_type_matches_booleans_request_body/post.pyi @@ -39,7 +39,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -69,12 +69,16 @@ class BaseApi(api_client.Api): def _post_boolean_type_matches_booleans_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,bool, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -132,7 +136,7 @@ class PostBooleanTypeMatchesBooleansRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -162,12 +166,16 @@ class PostBooleanTypeMatchesBooleansRequestBody(BaseApi): def post_boolean_type_matches_booleans_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,bool, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_boolean_type_matches_booleans_request_body_oapg( body=body, content_type=content_type, @@ -188,7 +196,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -218,12 +226,16 @@ class ApiForpost(BaseApi): def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,bool, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_boolean_type_matches_booleans_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_int_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_int_request_body/post.py index 6900d48f0f3..4d041d2d9bf 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_int_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_int_request_body/post.py @@ -67,7 +67,7 @@ def _post_by_int_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -97,12 +97,16 @@ def _post_by_int_request_body_oapg( def _post_by_int_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -160,7 +164,7 @@ def post_by_int_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -190,12 +194,16 @@ def post_by_int_request_body( def post_by_int_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_by_int_request_body_oapg( body=body, content_type=content_type, @@ -216,7 +224,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -246,12 +254,16 @@ def post( def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_by_int_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_int_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_int_request_body/post.pyi index 06dfe9a0303..586c4333e09 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_int_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_int_request_body/post.pyi @@ -41,7 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -71,12 +71,16 @@ class BaseApi(api_client.Api): def _post_by_int_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -134,7 +138,7 @@ class PostByIntRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -164,12 +168,16 @@ class PostByIntRequestBody(BaseApi): def post_by_int_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_by_int_request_body_oapg( body=body, content_type=content_type, @@ -190,7 +198,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -220,12 +228,16 @@ class ApiForpost(BaseApi): def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_by_int_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_number_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_number_request_body/post.py index d3df02981db..d17d606974b 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_number_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_number_request_body/post.py @@ -67,7 +67,7 @@ def _post_by_number_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -97,12 +97,16 @@ def _post_by_number_request_body_oapg( def _post_by_number_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -160,7 +164,7 @@ def post_by_number_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -190,12 +194,16 @@ def post_by_number_request_body( def post_by_number_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_by_number_request_body_oapg( body=body, content_type=content_type, @@ -216,7 +224,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -246,12 +254,16 @@ def post( def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_by_number_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_number_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_number_request_body/post.pyi index 80f1c26be45..a5fc1b67906 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_number_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_number_request_body/post.pyi @@ -41,7 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -71,12 +71,16 @@ class BaseApi(api_client.Api): def _post_by_number_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -134,7 +138,7 @@ class PostByNumberRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -164,12 +168,16 @@ class PostByNumberRequestBody(BaseApi): def post_by_number_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_by_number_request_body_oapg( body=body, content_type=content_type, @@ -190,7 +198,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -220,12 +228,16 @@ class ApiForpost(BaseApi): def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_by_number_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_small_number_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_small_number_request_body/post.py index 3b2ca99437a..ff52c77fb67 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_small_number_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_small_number_request_body/post.py @@ -67,7 +67,7 @@ def _post_by_small_number_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -97,12 +97,16 @@ def _post_by_small_number_request_body_oapg( def _post_by_small_number_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -160,7 +164,7 @@ def post_by_small_number_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -190,12 +194,16 @@ def post_by_small_number_request_body( def post_by_small_number_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_by_small_number_request_body_oapg( body=body, content_type=content_type, @@ -216,7 +224,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -246,12 +254,16 @@ def post( def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_by_small_number_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_small_number_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_small_number_request_body/post.pyi index b6e48094ad2..e1963d34fae 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_small_number_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_by_small_number_request_body/post.pyi @@ -41,7 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -71,12 +71,16 @@ class BaseApi(api_client.Api): def _post_by_small_number_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -134,7 +138,7 @@ class PostBySmallNumberRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -164,12 +168,16 @@ class PostBySmallNumberRequestBody(BaseApi): def post_by_small_number_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_by_small_number_request_body_oapg( body=body, content_type=content_type, @@ -190,7 +198,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -220,12 +228,16 @@ class ApiForpost(BaseApi): def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_by_small_number_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_date_time_format_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_date_time_format_request_body/post.py index ad9bdde90c5..59e11250fb4 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_date_time_format_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_date_time_format_request_body/post.py @@ -88,7 +88,7 @@ def _post_date_time_format_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -118,12 +118,16 @@ def _post_date_time_format_request_body_oapg( def _post_date_time_format_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -181,7 +185,7 @@ def post_date_time_format_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -211,12 +215,16 @@ def post_date_time_format_request_body( def post_date_time_format_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_date_time_format_request_body_oapg( body=body, content_type=content_type, @@ -237,7 +245,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -267,12 +275,16 @@ def post( def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_date_time_format_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_date_time_format_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_date_time_format_request_body/post.pyi index eeee884e731..f80237f1977 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_date_time_format_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_date_time_format_request_body/post.pyi @@ -62,7 +62,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -92,12 +92,16 @@ class BaseApi(api_client.Api): def _post_date_time_format_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -155,7 +159,7 @@ class PostDateTimeFormatRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -185,12 +189,16 @@ class PostDateTimeFormatRequestBody(BaseApi): def post_date_time_format_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_date_time_format_request_body_oapg( body=body, content_type=content_type, @@ -211,7 +219,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -241,12 +249,16 @@ class ApiForpost(BaseApi): def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_date_time_format_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_email_format_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_email_format_request_body/post.py index 84ac297dadc..53ac9ff030e 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_email_format_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_email_format_request_body/post.py @@ -87,7 +87,7 @@ def _post_email_format_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -117,12 +117,16 @@ def _post_email_format_request_body_oapg( def _post_email_format_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -180,7 +184,7 @@ def post_email_format_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -210,12 +214,16 @@ def post_email_format_request_body( def post_email_format_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_email_format_request_body_oapg( body=body, content_type=content_type, @@ -236,7 +244,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -266,12 +274,16 @@ def post( def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_email_format_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_email_format_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_email_format_request_body/post.pyi index 7d50a6aa647..455cffb20dc 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_email_format_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_email_format_request_body/post.pyi @@ -61,7 +61,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -91,12 +91,16 @@ class BaseApi(api_client.Api): def _post_email_format_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -154,7 +158,7 @@ class PostEmailFormatRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -184,12 +188,16 @@ class PostEmailFormatRequestBody(BaseApi): def post_email_format_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_email_format_request_body_oapg( body=body, content_type=content_type, @@ -210,7 +218,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -240,12 +248,16 @@ class ApiForpost(BaseApi): def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_email_format_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post.py index c87124f13b0..03fbc92b7dc 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post.py @@ -67,7 +67,7 @@ def _post_enum_with0_does_not_match_false_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -97,12 +97,16 @@ def _post_enum_with0_does_not_match_false_request_body_oapg( def _post_enum_with0_does_not_match_false_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -160,7 +164,7 @@ def post_enum_with0_does_not_match_false_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -190,12 +194,16 @@ def post_enum_with0_does_not_match_false_request_body( def post_enum_with0_does_not_match_false_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_enum_with0_does_not_match_false_request_body_oapg( body=body, content_type=content_type, @@ -216,7 +224,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -246,12 +254,16 @@ def post( def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_enum_with0_does_not_match_false_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post.pyi index deae2e6297c..fff6eaf96af 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with0_does_not_match_false_request_body/post.pyi @@ -41,7 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -71,12 +71,16 @@ class BaseApi(api_client.Api): def _post_enum_with0_does_not_match_false_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -134,7 +138,7 @@ class PostEnumWith0DoesNotMatchFalseRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -164,12 +168,16 @@ class PostEnumWith0DoesNotMatchFalseRequestBody(BaseApi): def post_enum_with0_does_not_match_false_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_enum_with0_does_not_match_false_request_body_oapg( body=body, content_type=content_type, @@ -190,7 +198,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -220,12 +228,16 @@ class ApiForpost(BaseApi): def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_enum_with0_does_not_match_false_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with1_does_not_match_true_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with1_does_not_match_true_request_body/post.py index f1fee679bfa..e761731a65f 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with1_does_not_match_true_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with1_does_not_match_true_request_body/post.py @@ -67,7 +67,7 @@ def _post_enum_with1_does_not_match_true_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -97,12 +97,16 @@ def _post_enum_with1_does_not_match_true_request_body_oapg( def _post_enum_with1_does_not_match_true_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -160,7 +164,7 @@ def post_enum_with1_does_not_match_true_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -190,12 +194,16 @@ def post_enum_with1_does_not_match_true_request_body( def post_enum_with1_does_not_match_true_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_enum_with1_does_not_match_true_request_body_oapg( body=body, content_type=content_type, @@ -216,7 +224,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -246,12 +254,16 @@ def post( def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_enum_with1_does_not_match_true_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with1_does_not_match_true_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with1_does_not_match_true_request_body/post.pyi index 610a01ade03..27054be37ba 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with1_does_not_match_true_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with1_does_not_match_true_request_body/post.pyi @@ -41,7 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -71,12 +71,16 @@ class BaseApi(api_client.Api): def _post_enum_with1_does_not_match_true_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -134,7 +138,7 @@ class PostEnumWith1DoesNotMatchTrueRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -164,12 +168,16 @@ class PostEnumWith1DoesNotMatchTrueRequestBody(BaseApi): def post_enum_with1_does_not_match_true_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_enum_with1_does_not_match_true_request_body_oapg( body=body, content_type=content_type, @@ -190,7 +198,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -220,12 +228,16 @@ class ApiForpost(BaseApi): def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_enum_with1_does_not_match_true_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_escaped_characters_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_escaped_characters_request_body/post.py index 48e1daccbfb..d6b934958b6 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_escaped_characters_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_escaped_characters_request_body/post.py @@ -67,7 +67,7 @@ def _post_enum_with_escaped_characters_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -97,12 +97,16 @@ def _post_enum_with_escaped_characters_request_body_oapg( def _post_enum_with_escaped_characters_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -160,7 +164,7 @@ def post_enum_with_escaped_characters_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -190,12 +194,16 @@ def post_enum_with_escaped_characters_request_body( def post_enum_with_escaped_characters_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_enum_with_escaped_characters_request_body_oapg( body=body, content_type=content_type, @@ -216,7 +224,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -246,12 +254,16 @@ def post( def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_enum_with_escaped_characters_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_escaped_characters_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_escaped_characters_request_body/post.pyi index c7c7f363f8a..afb57961b26 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_escaped_characters_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_escaped_characters_request_body/post.pyi @@ -41,7 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -71,12 +71,16 @@ class BaseApi(api_client.Api): def _post_enum_with_escaped_characters_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -134,7 +138,7 @@ class PostEnumWithEscapedCharactersRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -164,12 +168,16 @@ class PostEnumWithEscapedCharactersRequestBody(BaseApi): def post_enum_with_escaped_characters_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_enum_with_escaped_characters_request_body_oapg( body=body, content_type=content_type, @@ -190,7 +198,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -220,12 +228,16 @@ class ApiForpost(BaseApi): def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_enum_with_escaped_characters_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_false_does_not_match0_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_false_does_not_match0_request_body/post.py index 9b935209674..ffd223fd72d 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_false_does_not_match0_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_false_does_not_match0_request_body/post.py @@ -67,7 +67,7 @@ def _post_enum_with_false_does_not_match0_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -97,12 +97,16 @@ def _post_enum_with_false_does_not_match0_request_body_oapg( def _post_enum_with_false_does_not_match0_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -160,7 +164,7 @@ def post_enum_with_false_does_not_match0_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -190,12 +194,16 @@ def post_enum_with_false_does_not_match0_request_body( def post_enum_with_false_does_not_match0_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_enum_with_false_does_not_match0_request_body_oapg( body=body, content_type=content_type, @@ -216,7 +224,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -246,12 +254,16 @@ def post( def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_enum_with_false_does_not_match0_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_false_does_not_match0_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_false_does_not_match0_request_body/post.pyi index 55522daa60f..79adf584a28 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_false_does_not_match0_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_false_does_not_match0_request_body/post.pyi @@ -41,7 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -71,12 +71,16 @@ class BaseApi(api_client.Api): def _post_enum_with_false_does_not_match0_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -134,7 +138,7 @@ class PostEnumWithFalseDoesNotMatch0RequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -164,12 +168,16 @@ class PostEnumWithFalseDoesNotMatch0RequestBody(BaseApi): def post_enum_with_false_does_not_match0_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_enum_with_false_does_not_match0_request_body_oapg( body=body, content_type=content_type, @@ -190,7 +198,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -220,12 +228,16 @@ class ApiForpost(BaseApi): def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_enum_with_false_does_not_match0_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_true_does_not_match1_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_true_does_not_match1_request_body/post.py index 6a3e9b819ee..2a6e88ab186 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_true_does_not_match1_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_true_does_not_match1_request_body/post.py @@ -67,7 +67,7 @@ def _post_enum_with_true_does_not_match1_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -97,12 +97,16 @@ def _post_enum_with_true_does_not_match1_request_body_oapg( def _post_enum_with_true_does_not_match1_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -160,7 +164,7 @@ def post_enum_with_true_does_not_match1_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -190,12 +194,16 @@ def post_enum_with_true_does_not_match1_request_body( def post_enum_with_true_does_not_match1_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_enum_with_true_does_not_match1_request_body_oapg( body=body, content_type=content_type, @@ -216,7 +224,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -246,12 +254,16 @@ def post( def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_enum_with_true_does_not_match1_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_true_does_not_match1_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_true_does_not_match1_request_body/post.pyi index 41ffc6c8724..c9eb4469475 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_true_does_not_match1_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enum_with_true_does_not_match1_request_body/post.pyi @@ -41,7 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -71,12 +71,16 @@ class BaseApi(api_client.Api): def _post_enum_with_true_does_not_match1_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -134,7 +138,7 @@ class PostEnumWithTrueDoesNotMatch1RequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -164,12 +168,16 @@ class PostEnumWithTrueDoesNotMatch1RequestBody(BaseApi): def post_enum_with_true_does_not_match1_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_enum_with_true_does_not_match1_request_body_oapg( body=body, content_type=content_type, @@ -190,7 +198,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -220,12 +228,16 @@ class ApiForpost(BaseApi): def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_enum_with_true_does_not_match1_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post.py index cb1184250a4..7a23840a643 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post.py @@ -67,7 +67,7 @@ def _post_enums_in_properties_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -97,12 +97,16 @@ def _post_enums_in_properties_request_body_oapg( def _post_enums_in_properties_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -160,7 +164,7 @@ def post_enums_in_properties_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -190,12 +194,16 @@ def post_enums_in_properties_request_body( def post_enums_in_properties_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_enums_in_properties_request_body_oapg( body=body, content_type=content_type, @@ -216,7 +224,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -246,12 +254,16 @@ def post( def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_enums_in_properties_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post.pyi index 55623946bf4..f34638dfdd8 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_enums_in_properties_request_body/post.pyi @@ -41,7 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -71,12 +71,16 @@ class BaseApi(api_client.Api): def _post_enums_in_properties_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -134,7 +138,7 @@ class PostEnumsInPropertiesRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -164,12 +168,16 @@ class PostEnumsInPropertiesRequestBody(BaseApi): def post_enums_in_properties_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_enums_in_properties_request_body_oapg( body=body, content_type=content_type, @@ -190,7 +198,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -220,12 +228,16 @@ class ApiForpost(BaseApi): def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_enums_in_properties_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_forbidden_property_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_forbidden_property_request_body/post.py index a916c6062d5..adb09d15d2d 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_forbidden_property_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_forbidden_property_request_body/post.py @@ -67,7 +67,7 @@ def _post_forbidden_property_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -97,12 +97,16 @@ def _post_forbidden_property_request_body_oapg( def _post_forbidden_property_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -160,7 +164,7 @@ def post_forbidden_property_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -190,12 +194,16 @@ def post_forbidden_property_request_body( def post_forbidden_property_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_forbidden_property_request_body_oapg( body=body, content_type=content_type, @@ -216,7 +224,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -246,12 +254,16 @@ def post( def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_forbidden_property_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_forbidden_property_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_forbidden_property_request_body/post.pyi index 868f27cc400..223c9e981ab 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_forbidden_property_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_forbidden_property_request_body/post.pyi @@ -41,7 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -71,12 +71,16 @@ class BaseApi(api_client.Api): def _post_forbidden_property_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -134,7 +138,7 @@ class PostForbiddenPropertyRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -164,12 +168,16 @@ class PostForbiddenPropertyRequestBody(BaseApi): def post_forbidden_property_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_forbidden_property_request_body_oapg( body=body, content_type=content_type, @@ -190,7 +198,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -220,12 +228,16 @@ class ApiForpost(BaseApi): def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_forbidden_property_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_hostname_format_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_hostname_format_request_body/post.py index 1d4798aaf48..758846ab519 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_hostname_format_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_hostname_format_request_body/post.py @@ -87,7 +87,7 @@ def _post_hostname_format_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -117,12 +117,16 @@ def _post_hostname_format_request_body_oapg( def _post_hostname_format_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -180,7 +184,7 @@ def post_hostname_format_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -210,12 +214,16 @@ def post_hostname_format_request_body( def post_hostname_format_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_hostname_format_request_body_oapg( body=body, content_type=content_type, @@ -236,7 +244,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -266,12 +274,16 @@ def post( def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_hostname_format_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_hostname_format_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_hostname_format_request_body/post.pyi index bb1f2ddc892..fbc79cf2f7f 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_hostname_format_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_hostname_format_request_body/post.pyi @@ -61,7 +61,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -91,12 +91,16 @@ class BaseApi(api_client.Api): def _post_hostname_format_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -154,7 +158,7 @@ class PostHostnameFormatRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -184,12 +188,16 @@ class PostHostnameFormatRequestBody(BaseApi): def post_hostname_format_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_hostname_format_request_body_oapg( body=body, content_type=content_type, @@ -210,7 +218,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -240,12 +248,16 @@ class ApiForpost(BaseApi): def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_hostname_format_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post.py index 0857a066ea2..3973a5b88d2 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post.py @@ -65,7 +65,7 @@ def _post_integer_type_matches_integers_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -95,12 +95,16 @@ def _post_integer_type_matches_integers_request_body_oapg( def _post_integer_type_matches_integers_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,decimal.Decimal, int, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -158,7 +162,7 @@ def post_integer_type_matches_integers_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -188,12 +192,16 @@ def post_integer_type_matches_integers_request_body( def post_integer_type_matches_integers_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,decimal.Decimal, int, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_integer_type_matches_integers_request_body_oapg( body=body, content_type=content_type, @@ -214,7 +222,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -244,12 +252,16 @@ def post( def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,decimal.Decimal, int, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_integer_type_matches_integers_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post.pyi index bea770e9217..4e24e673e39 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_integer_type_matches_integers_request_body/post.pyi @@ -39,7 +39,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -69,12 +69,16 @@ class BaseApi(api_client.Api): def _post_integer_type_matches_integers_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,decimal.Decimal, int, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -132,7 +136,7 @@ class PostIntegerTypeMatchesIntegersRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -162,12 +166,16 @@ class PostIntegerTypeMatchesIntegersRequestBody(BaseApi): def post_integer_type_matches_integers_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,decimal.Decimal, int, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_integer_type_matches_integers_request_body_oapg( body=body, content_type=content_type, @@ -188,7 +196,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -218,12 +226,16 @@ class ApiForpost(BaseApi): def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,decimal.Decimal, int, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_integer_type_matches_integers_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body/post.py index c78bc536ec5..18d69e888b2 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body/post.py @@ -67,7 +67,7 @@ def _post_invalid_instance_should_not_raise_error_when_float_division_inf_reques stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -97,12 +97,16 @@ def _post_invalid_instance_should_not_raise_error_when_float_division_inf_reques def _post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -160,7 +164,7 @@ def post_invalid_instance_should_not_raise_error_when_float_division_inf_request stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -190,12 +194,16 @@ def post_invalid_instance_should_not_raise_error_when_float_division_inf_request def post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body_oapg( body=body, content_type=content_type, @@ -216,7 +224,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -246,12 +254,16 @@ def post( def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body/post.pyi index 91779c1e634..30e634db619 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body/post.pyi @@ -41,7 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -71,12 +71,16 @@ class BaseApi(api_client.Api): def _post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -134,7 +138,7 @@ class PostInvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInfRequestBody(Base stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -164,12 +168,16 @@ class PostInvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInfRequestBody(Base def post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body_oapg( body=body, content_type=content_type, @@ -190,7 +198,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -220,12 +228,16 @@ class ApiForpost(BaseApi): def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_invalid_string_value_for_default_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_invalid_string_value_for_default_request_body/post.py index 9f328184856..b69c0234373 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_invalid_string_value_for_default_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_invalid_string_value_for_default_request_body/post.py @@ -67,7 +67,7 @@ def _post_invalid_string_value_for_default_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -97,12 +97,16 @@ def _post_invalid_string_value_for_default_request_body_oapg( def _post_invalid_string_value_for_default_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -160,7 +164,7 @@ def post_invalid_string_value_for_default_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -190,12 +194,16 @@ def post_invalid_string_value_for_default_request_body( def post_invalid_string_value_for_default_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_invalid_string_value_for_default_request_body_oapg( body=body, content_type=content_type, @@ -216,7 +224,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -246,12 +254,16 @@ def post( def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_invalid_string_value_for_default_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_invalid_string_value_for_default_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_invalid_string_value_for_default_request_body/post.pyi index 189cd56c49e..85816fe2ad5 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_invalid_string_value_for_default_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_invalid_string_value_for_default_request_body/post.pyi @@ -41,7 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -71,12 +71,16 @@ class BaseApi(api_client.Api): def _post_invalid_string_value_for_default_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -134,7 +138,7 @@ class PostInvalidStringValueForDefaultRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -164,12 +168,16 @@ class PostInvalidStringValueForDefaultRequestBody(BaseApi): def post_invalid_string_value_for_default_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_invalid_string_value_for_default_request_body_oapg( body=body, content_type=content_type, @@ -190,7 +198,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -220,12 +228,16 @@ class ApiForpost(BaseApi): def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_invalid_string_value_for_default_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ipv4_format_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ipv4_format_request_body/post.py index dc9f221d8bf..c64a710746f 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ipv4_format_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ipv4_format_request_body/post.py @@ -87,7 +87,7 @@ def _post_ipv4_format_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -117,12 +117,16 @@ def _post_ipv4_format_request_body_oapg( def _post_ipv4_format_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -180,7 +184,7 @@ def post_ipv4_format_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -210,12 +214,16 @@ def post_ipv4_format_request_body( def post_ipv4_format_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_ipv4_format_request_body_oapg( body=body, content_type=content_type, @@ -236,7 +244,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -266,12 +274,16 @@ def post( def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_ipv4_format_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ipv4_format_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ipv4_format_request_body/post.pyi index ef1591a3303..4cd356890e4 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ipv4_format_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ipv4_format_request_body/post.pyi @@ -61,7 +61,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -91,12 +91,16 @@ class BaseApi(api_client.Api): def _post_ipv4_format_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -154,7 +158,7 @@ class PostIpv4FormatRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -184,12 +188,16 @@ class PostIpv4FormatRequestBody(BaseApi): def post_ipv4_format_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_ipv4_format_request_body_oapg( body=body, content_type=content_type, @@ -210,7 +218,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -240,12 +248,16 @@ class ApiForpost(BaseApi): def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_ipv4_format_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ipv6_format_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ipv6_format_request_body/post.py index ceaf040655a..757b8d10760 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ipv6_format_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ipv6_format_request_body/post.py @@ -87,7 +87,7 @@ def _post_ipv6_format_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -117,12 +117,16 @@ def _post_ipv6_format_request_body_oapg( def _post_ipv6_format_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -180,7 +184,7 @@ def post_ipv6_format_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -210,12 +214,16 @@ def post_ipv6_format_request_body( def post_ipv6_format_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_ipv6_format_request_body_oapg( body=body, content_type=content_type, @@ -236,7 +244,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -266,12 +274,16 @@ def post( def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_ipv6_format_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ipv6_format_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ipv6_format_request_body/post.pyi index 8a66ff2da25..cbee9f20cd4 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ipv6_format_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ipv6_format_request_body/post.pyi @@ -61,7 +61,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -91,12 +91,16 @@ class BaseApi(api_client.Api): def _post_ipv6_format_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -154,7 +158,7 @@ class PostIpv6FormatRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -184,12 +188,16 @@ class PostIpv6FormatRequestBody(BaseApi): def post_ipv6_format_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_ipv6_format_request_body_oapg( body=body, content_type=content_type, @@ -210,7 +218,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -240,12 +248,16 @@ class ApiForpost(BaseApi): def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_ipv6_format_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post.py index a420b6f5f22..009e5cecaf6 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post.py @@ -87,7 +87,7 @@ def _post_json_pointer_format_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -117,12 +117,16 @@ def _post_json_pointer_format_request_body_oapg( def _post_json_pointer_format_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -180,7 +184,7 @@ def post_json_pointer_format_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -210,12 +214,16 @@ def post_json_pointer_format_request_body( def post_json_pointer_format_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_json_pointer_format_request_body_oapg( body=body, content_type=content_type, @@ -236,7 +244,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -266,12 +274,16 @@ def post( def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_json_pointer_format_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post.pyi index 8399b1d77dd..25b9d86e8c8 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_json_pointer_format_request_body/post.pyi @@ -61,7 +61,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -91,12 +91,16 @@ class BaseApi(api_client.Api): def _post_json_pointer_format_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -154,7 +158,7 @@ class PostJsonPointerFormatRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -184,12 +188,16 @@ class PostJsonPointerFormatRequestBody(BaseApi): def post_json_pointer_format_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_json_pointer_format_request_body_oapg( body=body, content_type=content_type, @@ -210,7 +218,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -240,12 +248,16 @@ class ApiForpost(BaseApi): def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_json_pointer_format_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maximum_validation_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maximum_validation_request_body/post.py index 0f865ddbd8a..0343e645761 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maximum_validation_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maximum_validation_request_body/post.py @@ -67,7 +67,7 @@ def _post_maximum_validation_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -97,12 +97,16 @@ def _post_maximum_validation_request_body_oapg( def _post_maximum_validation_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -160,7 +164,7 @@ def post_maximum_validation_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -190,12 +194,16 @@ def post_maximum_validation_request_body( def post_maximum_validation_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_maximum_validation_request_body_oapg( body=body, content_type=content_type, @@ -216,7 +224,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -246,12 +254,16 @@ def post( def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_maximum_validation_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maximum_validation_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maximum_validation_request_body/post.pyi index 96ebfdfba23..a3902d12888 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maximum_validation_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maximum_validation_request_body/post.pyi @@ -41,7 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -71,12 +71,16 @@ class BaseApi(api_client.Api): def _post_maximum_validation_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -134,7 +138,7 @@ class PostMaximumValidationRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -164,12 +168,16 @@ class PostMaximumValidationRequestBody(BaseApi): def post_maximum_validation_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_maximum_validation_request_body_oapg( body=body, content_type=content_type, @@ -190,7 +198,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -220,12 +228,16 @@ class ApiForpost(BaseApi): def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_maximum_validation_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post.py index 3b3718b6dec..fb64b9058ed 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post.py @@ -67,7 +67,7 @@ def _post_maximum_validation_with_unsigned_integer_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -97,12 +97,16 @@ def _post_maximum_validation_with_unsigned_integer_request_body_oapg( def _post_maximum_validation_with_unsigned_integer_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -160,7 +164,7 @@ def post_maximum_validation_with_unsigned_integer_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -190,12 +194,16 @@ def post_maximum_validation_with_unsigned_integer_request_body( def post_maximum_validation_with_unsigned_integer_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_maximum_validation_with_unsigned_integer_request_body_oapg( body=body, content_type=content_type, @@ -216,7 +224,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -246,12 +254,16 @@ def post( def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_maximum_validation_with_unsigned_integer_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post.pyi index c6b97185566..31dbe8d04a4 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maximum_validation_with_unsigned_integer_request_body/post.pyi @@ -41,7 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -71,12 +71,16 @@ class BaseApi(api_client.Api): def _post_maximum_validation_with_unsigned_integer_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -134,7 +138,7 @@ class PostMaximumValidationWithUnsignedIntegerRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -164,12 +168,16 @@ class PostMaximumValidationWithUnsignedIntegerRequestBody(BaseApi): def post_maximum_validation_with_unsigned_integer_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_maximum_validation_with_unsigned_integer_request_body_oapg( body=body, content_type=content_type, @@ -190,7 +198,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -220,12 +228,16 @@ class ApiForpost(BaseApi): def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_maximum_validation_with_unsigned_integer_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post.py index bb93660e117..d1169690a3d 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post.py @@ -67,7 +67,7 @@ def _post_maxitems_validation_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -97,12 +97,16 @@ def _post_maxitems_validation_request_body_oapg( def _post_maxitems_validation_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -160,7 +164,7 @@ def post_maxitems_validation_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -190,12 +194,16 @@ def post_maxitems_validation_request_body( def post_maxitems_validation_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_maxitems_validation_request_body_oapg( body=body, content_type=content_type, @@ -216,7 +224,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -246,12 +254,16 @@ def post( def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_maxitems_validation_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post.pyi index 72757402d59..d491008a602 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxitems_validation_request_body/post.pyi @@ -41,7 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -71,12 +71,16 @@ class BaseApi(api_client.Api): def _post_maxitems_validation_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -134,7 +138,7 @@ class PostMaxitemsValidationRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -164,12 +168,16 @@ class PostMaxitemsValidationRequestBody(BaseApi): def post_maxitems_validation_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_maxitems_validation_request_body_oapg( body=body, content_type=content_type, @@ -190,7 +198,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -220,12 +228,16 @@ class ApiForpost(BaseApi): def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_maxitems_validation_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post.py index e84bd5ffcf7..440529ffb14 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post.py @@ -67,7 +67,7 @@ def _post_maxlength_validation_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -97,12 +97,16 @@ def _post_maxlength_validation_request_body_oapg( def _post_maxlength_validation_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -160,7 +164,7 @@ def post_maxlength_validation_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -190,12 +194,16 @@ def post_maxlength_validation_request_body( def post_maxlength_validation_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_maxlength_validation_request_body_oapg( body=body, content_type=content_type, @@ -216,7 +224,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -246,12 +254,16 @@ def post( def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_maxlength_validation_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post.pyi index d23d3cf3cc5..f76f395f2ae 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxlength_validation_request_body/post.pyi @@ -41,7 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -71,12 +71,16 @@ class BaseApi(api_client.Api): def _post_maxlength_validation_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -134,7 +138,7 @@ class PostMaxlengthValidationRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -164,12 +168,16 @@ class PostMaxlengthValidationRequestBody(BaseApi): def post_maxlength_validation_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_maxlength_validation_request_body_oapg( body=body, content_type=content_type, @@ -190,7 +198,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -220,12 +228,16 @@ class ApiForpost(BaseApi): def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_maxlength_validation_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post.py index f85e375c49a..33170a13586 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post.py @@ -67,7 +67,7 @@ def _post_maxproperties0_means_the_object_is_empty_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -97,12 +97,16 @@ def _post_maxproperties0_means_the_object_is_empty_request_body_oapg( def _post_maxproperties0_means_the_object_is_empty_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -160,7 +164,7 @@ def post_maxproperties0_means_the_object_is_empty_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -190,12 +194,16 @@ def post_maxproperties0_means_the_object_is_empty_request_body( def post_maxproperties0_means_the_object_is_empty_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_maxproperties0_means_the_object_is_empty_request_body_oapg( body=body, content_type=content_type, @@ -216,7 +224,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -246,12 +254,16 @@ def post( def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_maxproperties0_means_the_object_is_empty_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post.pyi index 2cfc155fd7a..553d54a2a27 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxproperties0_means_the_object_is_empty_request_body/post.pyi @@ -41,7 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -71,12 +71,16 @@ class BaseApi(api_client.Api): def _post_maxproperties0_means_the_object_is_empty_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -134,7 +138,7 @@ class PostMaxproperties0MeansTheObjectIsEmptyRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -164,12 +168,16 @@ class PostMaxproperties0MeansTheObjectIsEmptyRequestBody(BaseApi): def post_maxproperties0_means_the_object_is_empty_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_maxproperties0_means_the_object_is_empty_request_body_oapg( body=body, content_type=content_type, @@ -190,7 +198,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -220,12 +228,16 @@ class ApiForpost(BaseApi): def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_maxproperties0_means_the_object_is_empty_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post.py index 9a9116ab054..f1b40ce7bd5 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post.py @@ -67,7 +67,7 @@ def _post_maxproperties_validation_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -97,12 +97,16 @@ def _post_maxproperties_validation_request_body_oapg( def _post_maxproperties_validation_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -160,7 +164,7 @@ def post_maxproperties_validation_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -190,12 +194,16 @@ def post_maxproperties_validation_request_body( def post_maxproperties_validation_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_maxproperties_validation_request_body_oapg( body=body, content_type=content_type, @@ -216,7 +224,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -246,12 +254,16 @@ def post( def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_maxproperties_validation_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post.pyi index 71410cf18e1..f9918311841 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_maxproperties_validation_request_body/post.pyi @@ -41,7 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -71,12 +71,16 @@ class BaseApi(api_client.Api): def _post_maxproperties_validation_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -134,7 +138,7 @@ class PostMaxpropertiesValidationRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -164,12 +168,16 @@ class PostMaxpropertiesValidationRequestBody(BaseApi): def post_maxproperties_validation_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_maxproperties_validation_request_body_oapg( body=body, content_type=content_type, @@ -190,7 +198,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -220,12 +228,16 @@ class ApiForpost(BaseApi): def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_maxproperties_validation_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minimum_validation_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minimum_validation_request_body/post.py index 69884748c19..e8dcaca6c7d 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minimum_validation_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minimum_validation_request_body/post.py @@ -67,7 +67,7 @@ def _post_minimum_validation_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -97,12 +97,16 @@ def _post_minimum_validation_request_body_oapg( def _post_minimum_validation_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -160,7 +164,7 @@ def post_minimum_validation_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -190,12 +194,16 @@ def post_minimum_validation_request_body( def post_minimum_validation_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_minimum_validation_request_body_oapg( body=body, content_type=content_type, @@ -216,7 +224,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -246,12 +254,16 @@ def post( def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_minimum_validation_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minimum_validation_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minimum_validation_request_body/post.pyi index ca213a045bd..a0fb805269e 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minimum_validation_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minimum_validation_request_body/post.pyi @@ -41,7 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -71,12 +71,16 @@ class BaseApi(api_client.Api): def _post_minimum_validation_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -134,7 +138,7 @@ class PostMinimumValidationRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -164,12 +168,16 @@ class PostMinimumValidationRequestBody(BaseApi): def post_minimum_validation_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_minimum_validation_request_body_oapg( body=body, content_type=content_type, @@ -190,7 +198,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -220,12 +228,16 @@ class ApiForpost(BaseApi): def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_minimum_validation_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post.py index 0af6a48c5dc..f2e8684ea6d 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post.py @@ -67,7 +67,7 @@ def _post_minimum_validation_with_signed_integer_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -97,12 +97,16 @@ def _post_minimum_validation_with_signed_integer_request_body_oapg( def _post_minimum_validation_with_signed_integer_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -160,7 +164,7 @@ def post_minimum_validation_with_signed_integer_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -190,12 +194,16 @@ def post_minimum_validation_with_signed_integer_request_body( def post_minimum_validation_with_signed_integer_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_minimum_validation_with_signed_integer_request_body_oapg( body=body, content_type=content_type, @@ -216,7 +224,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -246,12 +254,16 @@ def post( def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_minimum_validation_with_signed_integer_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post.pyi index 34b2d38c474..dbaa16a8d67 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minimum_validation_with_signed_integer_request_body/post.pyi @@ -41,7 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -71,12 +71,16 @@ class BaseApi(api_client.Api): def _post_minimum_validation_with_signed_integer_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -134,7 +138,7 @@ class PostMinimumValidationWithSignedIntegerRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -164,12 +168,16 @@ class PostMinimumValidationWithSignedIntegerRequestBody(BaseApi): def post_minimum_validation_with_signed_integer_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_minimum_validation_with_signed_integer_request_body_oapg( body=body, content_type=content_type, @@ -190,7 +198,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -220,12 +228,16 @@ class ApiForpost(BaseApi): def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_minimum_validation_with_signed_integer_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minitems_validation_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minitems_validation_request_body/post.py index e5b5d8ba49b..eb49150fb6a 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minitems_validation_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minitems_validation_request_body/post.py @@ -67,7 +67,7 @@ def _post_minitems_validation_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -97,12 +97,16 @@ def _post_minitems_validation_request_body_oapg( def _post_minitems_validation_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -160,7 +164,7 @@ def post_minitems_validation_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -190,12 +194,16 @@ def post_minitems_validation_request_body( def post_minitems_validation_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_minitems_validation_request_body_oapg( body=body, content_type=content_type, @@ -216,7 +224,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -246,12 +254,16 @@ def post( def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_minitems_validation_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minitems_validation_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minitems_validation_request_body/post.pyi index a913692f945..901e1a24f37 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minitems_validation_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minitems_validation_request_body/post.pyi @@ -41,7 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -71,12 +71,16 @@ class BaseApi(api_client.Api): def _post_minitems_validation_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -134,7 +138,7 @@ class PostMinitemsValidationRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -164,12 +168,16 @@ class PostMinitemsValidationRequestBody(BaseApi): def post_minitems_validation_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_minitems_validation_request_body_oapg( body=body, content_type=content_type, @@ -190,7 +198,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -220,12 +228,16 @@ class ApiForpost(BaseApi): def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_minitems_validation_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minlength_validation_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minlength_validation_request_body/post.py index 6c880e7916b..685ad640edf 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minlength_validation_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minlength_validation_request_body/post.py @@ -67,7 +67,7 @@ def _post_minlength_validation_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -97,12 +97,16 @@ def _post_minlength_validation_request_body_oapg( def _post_minlength_validation_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -160,7 +164,7 @@ def post_minlength_validation_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -190,12 +194,16 @@ def post_minlength_validation_request_body( def post_minlength_validation_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_minlength_validation_request_body_oapg( body=body, content_type=content_type, @@ -216,7 +224,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -246,12 +254,16 @@ def post( def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_minlength_validation_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minlength_validation_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minlength_validation_request_body/post.pyi index 063fe799c47..7509a0e6e75 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minlength_validation_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minlength_validation_request_body/post.pyi @@ -41,7 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -71,12 +71,16 @@ class BaseApi(api_client.Api): def _post_minlength_validation_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -134,7 +138,7 @@ class PostMinlengthValidationRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -164,12 +168,16 @@ class PostMinlengthValidationRequestBody(BaseApi): def post_minlength_validation_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_minlength_validation_request_body_oapg( body=body, content_type=content_type, @@ -190,7 +198,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -220,12 +228,16 @@ class ApiForpost(BaseApi): def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_minlength_validation_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post.py index 7221097c8df..b4c542fe76c 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post.py @@ -67,7 +67,7 @@ def _post_minproperties_validation_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -97,12 +97,16 @@ def _post_minproperties_validation_request_body_oapg( def _post_minproperties_validation_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -160,7 +164,7 @@ def post_minproperties_validation_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -190,12 +194,16 @@ def post_minproperties_validation_request_body( def post_minproperties_validation_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_minproperties_validation_request_body_oapg( body=body, content_type=content_type, @@ -216,7 +224,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -246,12 +254,16 @@ def post( def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_minproperties_validation_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post.pyi index 917f4d82084..0b54f54c197 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_minproperties_validation_request_body/post.pyi @@ -41,7 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -71,12 +71,16 @@ class BaseApi(api_client.Api): def _post_minproperties_validation_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -134,7 +138,7 @@ class PostMinpropertiesValidationRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -164,12 +168,16 @@ class PostMinpropertiesValidationRequestBody(BaseApi): def post_minproperties_validation_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_minproperties_validation_request_body_oapg( body=body, content_type=content_type, @@ -190,7 +198,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -220,12 +228,16 @@ class ApiForpost(BaseApi): def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_minproperties_validation_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post.py index cc3c7b10d78..b77c18643ea 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post.py @@ -67,7 +67,7 @@ def _post_nested_allof_to_check_validation_semantics_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -97,12 +97,16 @@ def _post_nested_allof_to_check_validation_semantics_request_body_oapg( def _post_nested_allof_to_check_validation_semantics_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -160,7 +164,7 @@ def post_nested_allof_to_check_validation_semantics_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -190,12 +194,16 @@ def post_nested_allof_to_check_validation_semantics_request_body( def post_nested_allof_to_check_validation_semantics_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_nested_allof_to_check_validation_semantics_request_body_oapg( body=body, content_type=content_type, @@ -216,7 +224,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -246,12 +254,16 @@ def post( def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_nested_allof_to_check_validation_semantics_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post.pyi index 0ac82460a9c..64fb457d3b4 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_allof_to_check_validation_semantics_request_body/post.pyi @@ -41,7 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -71,12 +71,16 @@ class BaseApi(api_client.Api): def _post_nested_allof_to_check_validation_semantics_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -134,7 +138,7 @@ class PostNestedAllofToCheckValidationSemanticsRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -164,12 +168,16 @@ class PostNestedAllofToCheckValidationSemanticsRequestBody(BaseApi): def post_nested_allof_to_check_validation_semantics_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_nested_allof_to_check_validation_semantics_request_body_oapg( body=body, content_type=content_type, @@ -190,7 +198,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -220,12 +228,16 @@ class ApiForpost(BaseApi): def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_nested_allof_to_check_validation_semantics_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post.py index c50360cbfc9..0c856ac82a8 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post.py @@ -67,7 +67,7 @@ def _post_nested_anyof_to_check_validation_semantics_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -97,12 +97,16 @@ def _post_nested_anyof_to_check_validation_semantics_request_body_oapg( def _post_nested_anyof_to_check_validation_semantics_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -160,7 +164,7 @@ def post_nested_anyof_to_check_validation_semantics_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -190,12 +194,16 @@ def post_nested_anyof_to_check_validation_semantics_request_body( def post_nested_anyof_to_check_validation_semantics_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_nested_anyof_to_check_validation_semantics_request_body_oapg( body=body, content_type=content_type, @@ -216,7 +224,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -246,12 +254,16 @@ def post( def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_nested_anyof_to_check_validation_semantics_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post.pyi index b1fff82c515..b533b4a4b4c 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_anyof_to_check_validation_semantics_request_body/post.pyi @@ -41,7 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -71,12 +71,16 @@ class BaseApi(api_client.Api): def _post_nested_anyof_to_check_validation_semantics_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -134,7 +138,7 @@ class PostNestedAnyofToCheckValidationSemanticsRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -164,12 +168,16 @@ class PostNestedAnyofToCheckValidationSemanticsRequestBody(BaseApi): def post_nested_anyof_to_check_validation_semantics_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_nested_anyof_to_check_validation_semantics_request_body_oapg( body=body, content_type=content_type, @@ -190,7 +198,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -220,12 +228,16 @@ class ApiForpost(BaseApi): def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_nested_anyof_to_check_validation_semantics_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_items_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_items_request_body/post.py index d97f0e7fcce..f7be66be6b9 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_items_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_items_request_body/post.py @@ -67,7 +67,7 @@ def _post_nested_items_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -97,12 +97,16 @@ def _post_nested_items_request_body_oapg( def _post_nested_items_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -160,7 +164,7 @@ def post_nested_items_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -190,12 +194,16 @@ def post_nested_items_request_body( def post_nested_items_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_nested_items_request_body_oapg( body=body, content_type=content_type, @@ -216,7 +224,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -246,12 +254,16 @@ def post( def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_nested_items_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_items_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_items_request_body/post.pyi index 56cb80f2541..cd7471b57df 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_items_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_items_request_body/post.pyi @@ -41,7 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -71,12 +71,16 @@ class BaseApi(api_client.Api): def _post_nested_items_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -134,7 +138,7 @@ class PostNestedItemsRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -164,12 +168,16 @@ class PostNestedItemsRequestBody(BaseApi): def post_nested_items_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_nested_items_request_body_oapg( body=body, content_type=content_type, @@ -190,7 +198,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -220,12 +228,16 @@ class ApiForpost(BaseApi): def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_nested_items_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post.py index 39d6cd25656..982d9f5fbae 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post.py @@ -67,7 +67,7 @@ def _post_nested_oneof_to_check_validation_semantics_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -97,12 +97,16 @@ def _post_nested_oneof_to_check_validation_semantics_request_body_oapg( def _post_nested_oneof_to_check_validation_semantics_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -160,7 +164,7 @@ def post_nested_oneof_to_check_validation_semantics_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -190,12 +194,16 @@ def post_nested_oneof_to_check_validation_semantics_request_body( def post_nested_oneof_to_check_validation_semantics_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_nested_oneof_to_check_validation_semantics_request_body_oapg( body=body, content_type=content_type, @@ -216,7 +224,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -246,12 +254,16 @@ def post( def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_nested_oneof_to_check_validation_semantics_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post.pyi index 7e1420196bc..aa23a8b53b1 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nested_oneof_to_check_validation_semantics_request_body/post.pyi @@ -41,7 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -71,12 +71,16 @@ class BaseApi(api_client.Api): def _post_nested_oneof_to_check_validation_semantics_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -134,7 +138,7 @@ class PostNestedOneofToCheckValidationSemanticsRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -164,12 +168,16 @@ class PostNestedOneofToCheckValidationSemanticsRequestBody(BaseApi): def post_nested_oneof_to_check_validation_semantics_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_nested_oneof_to_check_validation_semantics_request_body_oapg( body=body, content_type=content_type, @@ -190,7 +198,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -220,12 +228,16 @@ class ApiForpost(BaseApi): def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_nested_oneof_to_check_validation_semantics_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post.py index b3719c71220..22e24ed005f 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post.py @@ -136,7 +136,7 @@ def _post_not_more_complex_schema_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -166,12 +166,16 @@ def _post_not_more_complex_schema_request_body_oapg( def _post_not_more_complex_schema_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -229,7 +233,7 @@ def post_not_more_complex_schema_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -259,12 +263,16 @@ def post_not_more_complex_schema_request_body( def post_not_more_complex_schema_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_not_more_complex_schema_request_body_oapg( body=body, content_type=content_type, @@ -285,7 +293,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -315,12 +323,16 @@ def post( def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_not_more_complex_schema_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post.pyi index 569c1363f0a..aca0c794d03 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_not_more_complex_schema_request_body/post.pyi @@ -110,7 +110,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -140,12 +140,16 @@ class BaseApi(api_client.Api): def _post_not_more_complex_schema_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -203,7 +207,7 @@ class PostNotMoreComplexSchemaRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -233,12 +237,16 @@ class PostNotMoreComplexSchemaRequestBody(BaseApi): def post_not_more_complex_schema_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_not_more_complex_schema_request_body_oapg( body=body, content_type=content_type, @@ -259,7 +267,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -289,12 +297,16 @@ class ApiForpost(BaseApi): def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_not_more_complex_schema_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_not_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_not_request_body/post.py index e79e5c89a1f..6a530cc4a1b 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_not_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_not_request_body/post.py @@ -87,7 +87,7 @@ def _post_not_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -117,12 +117,16 @@ def _post_not_request_body_oapg( def _post_not_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -180,7 +184,7 @@ def post_not_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -210,12 +214,16 @@ def post_not_request_body( def post_not_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_not_request_body_oapg( body=body, content_type=content_type, @@ -236,7 +244,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -266,12 +274,16 @@ def post( def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_not_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_not_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_not_request_body/post.pyi index 39eea18036f..bdc422fdd3a 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_not_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_not_request_body/post.pyi @@ -61,7 +61,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -91,12 +91,16 @@ class BaseApi(api_client.Api): def _post_not_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -154,7 +158,7 @@ class PostNotRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -184,12 +188,16 @@ class PostNotRequestBody(BaseApi): def post_not_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_not_request_body_oapg( body=body, content_type=content_type, @@ -210,7 +218,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -240,12 +248,16 @@ class ApiForpost(BaseApi): def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_not_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post.py index c633fa16e3f..238f3c136e1 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post.py @@ -67,7 +67,7 @@ def _post_nul_characters_in_strings_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -97,12 +97,16 @@ def _post_nul_characters_in_strings_request_body_oapg( def _post_nul_characters_in_strings_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -160,7 +164,7 @@ def post_nul_characters_in_strings_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -190,12 +194,16 @@ def post_nul_characters_in_strings_request_body( def post_nul_characters_in_strings_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_nul_characters_in_strings_request_body_oapg( body=body, content_type=content_type, @@ -216,7 +224,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -246,12 +254,16 @@ def post( def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_nul_characters_in_strings_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post.pyi index 064f26d7643..a2bdbf3ac40 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_nul_characters_in_strings_request_body/post.pyi @@ -41,7 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -71,12 +71,16 @@ class BaseApi(api_client.Api): def _post_nul_characters_in_strings_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -134,7 +138,7 @@ class PostNulCharactersInStringsRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -164,12 +168,16 @@ class PostNulCharactersInStringsRequestBody(BaseApi): def post_nul_characters_in_strings_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_nul_characters_in_strings_request_body_oapg( body=body, content_type=content_type, @@ -190,7 +198,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -220,12 +228,16 @@ class ApiForpost(BaseApi): def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_nul_characters_in_strings_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post.py index 569f8571150..1eb037191f1 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post.py @@ -65,7 +65,7 @@ def _post_null_type_matches_only_the_null_object_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -95,12 +95,16 @@ def _post_null_type_matches_only_the_null_object_request_body_oapg( def _post_null_type_matches_only_the_null_object_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,None, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -158,7 +162,7 @@ def post_null_type_matches_only_the_null_object_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -188,12 +192,16 @@ def post_null_type_matches_only_the_null_object_request_body( def post_null_type_matches_only_the_null_object_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,None, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_null_type_matches_only_the_null_object_request_body_oapg( body=body, content_type=content_type, @@ -214,7 +222,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -244,12 +252,16 @@ def post( def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,None, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_null_type_matches_only_the_null_object_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post.pyi index 716d8e8d033..2f48f3af11a 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_null_type_matches_only_the_null_object_request_body/post.pyi @@ -39,7 +39,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -69,12 +69,16 @@ class BaseApi(api_client.Api): def _post_null_type_matches_only_the_null_object_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,None, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -132,7 +136,7 @@ class PostNullTypeMatchesOnlyTheNullObjectRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -162,12 +166,16 @@ class PostNullTypeMatchesOnlyTheNullObjectRequestBody(BaseApi): def post_null_type_matches_only_the_null_object_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,None, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_null_type_matches_only_the_null_object_request_body_oapg( body=body, content_type=content_type, @@ -188,7 +196,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -218,12 +226,16 @@ class ApiForpost(BaseApi): def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,None, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_null_type_matches_only_the_null_object_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post.py index d6e5171dea1..78812d469d8 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post.py @@ -65,7 +65,7 @@ def _post_number_type_matches_numbers_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -95,12 +95,16 @@ def _post_number_type_matches_numbers_request_body_oapg( def _post_number_type_matches_numbers_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,decimal.Decimal, int, float, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -158,7 +162,7 @@ def post_number_type_matches_numbers_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -188,12 +192,16 @@ def post_number_type_matches_numbers_request_body( def post_number_type_matches_numbers_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,decimal.Decimal, int, float, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_number_type_matches_numbers_request_body_oapg( body=body, content_type=content_type, @@ -214,7 +222,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -244,12 +252,16 @@ def post( def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,decimal.Decimal, int, float, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_number_type_matches_numbers_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post.pyi index 8d9c38e17c5..68692d96f70 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_number_type_matches_numbers_request_body/post.pyi @@ -39,7 +39,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -69,12 +69,16 @@ class BaseApi(api_client.Api): def _post_number_type_matches_numbers_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,decimal.Decimal, int, float, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -132,7 +136,7 @@ class PostNumberTypeMatchesNumbersRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -162,12 +166,16 @@ class PostNumberTypeMatchesNumbersRequestBody(BaseApi): def post_number_type_matches_numbers_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,decimal.Decimal, int, float, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_number_type_matches_numbers_request_body_oapg( body=body, content_type=content_type, @@ -188,7 +196,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -218,12 +226,16 @@ class ApiForpost(BaseApi): def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,decimal.Decimal, int, float, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_number_type_matches_numbers_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post.py index d2228e8e5c6..f1ec67c066a 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post.py @@ -67,7 +67,7 @@ def _post_object_properties_validation_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -97,12 +97,16 @@ def _post_object_properties_validation_request_body_oapg( def _post_object_properties_validation_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -160,7 +164,7 @@ def post_object_properties_validation_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -190,12 +194,16 @@ def post_object_properties_validation_request_body( def post_object_properties_validation_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_object_properties_validation_request_body_oapg( body=body, content_type=content_type, @@ -216,7 +224,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -246,12 +254,16 @@ def post( def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_object_properties_validation_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post.pyi index e4fed4f9cce..49cf10de5af 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_object_properties_validation_request_body/post.pyi @@ -41,7 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -71,12 +71,16 @@ class BaseApi(api_client.Api): def _post_object_properties_validation_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -134,7 +138,7 @@ class PostObjectPropertiesValidationRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -164,12 +168,16 @@ class PostObjectPropertiesValidationRequestBody(BaseApi): def post_object_properties_validation_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_object_properties_validation_request_body_oapg( body=body, content_type=content_type, @@ -190,7 +198,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -220,12 +228,16 @@ class ApiForpost(BaseApi): def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_object_properties_validation_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post.py index f250ee53fe2..0f7e7d9bb4f 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post.py @@ -65,7 +65,7 @@ def _post_object_type_matches_objects_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -95,12 +95,16 @@ def _post_object_type_matches_objects_request_body_oapg( def _post_object_type_matches_objects_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -158,7 +162,7 @@ def post_object_type_matches_objects_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -188,12 +192,16 @@ def post_object_type_matches_objects_request_body( def post_object_type_matches_objects_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_object_type_matches_objects_request_body_oapg( body=body, content_type=content_type, @@ -214,7 +222,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -244,12 +252,16 @@ def post( def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_object_type_matches_objects_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post.pyi index 1c73e4e0cbf..e9e865dfa76 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_object_type_matches_objects_request_body/post.pyi @@ -39,7 +39,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -69,12 +69,16 @@ class BaseApi(api_client.Api): def _post_object_type_matches_objects_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -132,7 +136,7 @@ class PostObjectTypeMatchesObjectsRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -162,12 +166,16 @@ class PostObjectTypeMatchesObjectsRequestBody(BaseApi): def post_object_type_matches_objects_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_object_type_matches_objects_request_body_oapg( body=body, content_type=content_type, @@ -188,7 +196,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -218,12 +226,16 @@ class ApiForpost(BaseApi): def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_object_type_matches_objects_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post.py index f889e3caa23..3b9b80bedb3 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post.py @@ -67,7 +67,7 @@ def _post_oneof_complex_types_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -97,12 +97,16 @@ def _post_oneof_complex_types_request_body_oapg( def _post_oneof_complex_types_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -160,7 +164,7 @@ def post_oneof_complex_types_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -190,12 +194,16 @@ def post_oneof_complex_types_request_body( def post_oneof_complex_types_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_oneof_complex_types_request_body_oapg( body=body, content_type=content_type, @@ -216,7 +224,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -246,12 +254,16 @@ def post( def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_oneof_complex_types_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post.pyi index d98985775d3..3db544f5ba5 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_complex_types_request_body/post.pyi @@ -41,7 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -71,12 +71,16 @@ class BaseApi(api_client.Api): def _post_oneof_complex_types_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -134,7 +138,7 @@ class PostOneofComplexTypesRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -164,12 +168,16 @@ class PostOneofComplexTypesRequestBody(BaseApi): def post_oneof_complex_types_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_oneof_complex_types_request_body_oapg( body=body, content_type=content_type, @@ -190,7 +198,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -220,12 +228,16 @@ class ApiForpost(BaseApi): def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_oneof_complex_types_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_request_body/post.py index d04d02b7644..aedbff763db 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_request_body/post.py @@ -67,7 +67,7 @@ def _post_oneof_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -97,12 +97,16 @@ def _post_oneof_request_body_oapg( def _post_oneof_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -160,7 +164,7 @@ def post_oneof_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -190,12 +194,16 @@ def post_oneof_request_body( def post_oneof_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_oneof_request_body_oapg( body=body, content_type=content_type, @@ -216,7 +224,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -246,12 +254,16 @@ def post( def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_oneof_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_request_body/post.pyi index 60eb362ff5f..1391f19c4d5 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_request_body/post.pyi @@ -41,7 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -71,12 +71,16 @@ class BaseApi(api_client.Api): def _post_oneof_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -134,7 +138,7 @@ class PostOneofRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -164,12 +168,16 @@ class PostOneofRequestBody(BaseApi): def post_oneof_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_oneof_request_body_oapg( body=body, content_type=content_type, @@ -190,7 +198,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -220,12 +228,16 @@ class ApiForpost(BaseApi): def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_oneof_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post.py index b76c58fb661..e6786b96755 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post.py @@ -67,7 +67,7 @@ def _post_oneof_with_base_schema_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -97,12 +97,16 @@ def _post_oneof_with_base_schema_request_body_oapg( def _post_oneof_with_base_schema_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -160,7 +164,7 @@ def post_oneof_with_base_schema_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -190,12 +194,16 @@ def post_oneof_with_base_schema_request_body( def post_oneof_with_base_schema_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_oneof_with_base_schema_request_body_oapg( body=body, content_type=content_type, @@ -216,7 +224,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -246,12 +254,16 @@ def post( def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_oneof_with_base_schema_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post.pyi index 579e0395941..86fe64f1c31 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_base_schema_request_body/post.pyi @@ -41,7 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -71,12 +71,16 @@ class BaseApi(api_client.Api): def _post_oneof_with_base_schema_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -134,7 +138,7 @@ class PostOneofWithBaseSchemaRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -164,12 +168,16 @@ class PostOneofWithBaseSchemaRequestBody(BaseApi): def post_oneof_with_base_schema_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_oneof_with_base_schema_request_body_oapg( body=body, content_type=content_type, @@ -190,7 +198,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -220,12 +228,16 @@ class ApiForpost(BaseApi): def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_oneof_with_base_schema_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post.py index 7ef3eb59803..dad267c332e 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post.py @@ -67,7 +67,7 @@ def _post_oneof_with_empty_schema_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -97,12 +97,16 @@ def _post_oneof_with_empty_schema_request_body_oapg( def _post_oneof_with_empty_schema_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -160,7 +164,7 @@ def post_oneof_with_empty_schema_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -190,12 +194,16 @@ def post_oneof_with_empty_schema_request_body( def post_oneof_with_empty_schema_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_oneof_with_empty_schema_request_body_oapg( body=body, content_type=content_type, @@ -216,7 +224,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -246,12 +254,16 @@ def post( def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_oneof_with_empty_schema_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post.pyi index 466c19d8df9..ec4978a5db1 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_empty_schema_request_body/post.pyi @@ -41,7 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -71,12 +71,16 @@ class BaseApi(api_client.Api): def _post_oneof_with_empty_schema_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -134,7 +138,7 @@ class PostOneofWithEmptySchemaRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -164,12 +168,16 @@ class PostOneofWithEmptySchemaRequestBody(BaseApi): def post_oneof_with_empty_schema_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_oneof_with_empty_schema_request_body_oapg( body=body, content_type=content_type, @@ -190,7 +198,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -220,12 +228,16 @@ class ApiForpost(BaseApi): def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_oneof_with_empty_schema_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post.py index ae0842d0124..33de0488402 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post.py @@ -67,7 +67,7 @@ def _post_oneof_with_required_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -97,12 +97,16 @@ def _post_oneof_with_required_request_body_oapg( def _post_oneof_with_required_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -160,7 +164,7 @@ def post_oneof_with_required_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -190,12 +194,16 @@ def post_oneof_with_required_request_body( def post_oneof_with_required_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_oneof_with_required_request_body_oapg( body=body, content_type=content_type, @@ -216,7 +224,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -246,12 +254,16 @@ def post( def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_oneof_with_required_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post.pyi index 35eca42f3ca..68d9f245e6c 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_oneof_with_required_request_body/post.pyi @@ -41,7 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -71,12 +71,16 @@ class BaseApi(api_client.Api): def _post_oneof_with_required_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -134,7 +138,7 @@ class PostOneofWithRequiredRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -164,12 +168,16 @@ class PostOneofWithRequiredRequestBody(BaseApi): def post_oneof_with_required_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_oneof_with_required_request_body_oapg( body=body, content_type=content_type, @@ -190,7 +198,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -220,12 +228,16 @@ class ApiForpost(BaseApi): def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_oneof_with_required_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post.py index 33e87d26342..dd402511a0a 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post.py @@ -67,7 +67,7 @@ def _post_pattern_is_not_anchored_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -97,12 +97,16 @@ def _post_pattern_is_not_anchored_request_body_oapg( def _post_pattern_is_not_anchored_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -160,7 +164,7 @@ def post_pattern_is_not_anchored_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -190,12 +194,16 @@ def post_pattern_is_not_anchored_request_body( def post_pattern_is_not_anchored_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_pattern_is_not_anchored_request_body_oapg( body=body, content_type=content_type, @@ -216,7 +224,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -246,12 +254,16 @@ def post( def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_pattern_is_not_anchored_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post.pyi index 2551e4973d3..f281c66bda7 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_pattern_is_not_anchored_request_body/post.pyi @@ -41,7 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -71,12 +71,16 @@ class BaseApi(api_client.Api): def _post_pattern_is_not_anchored_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -134,7 +138,7 @@ class PostPatternIsNotAnchoredRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -164,12 +168,16 @@ class PostPatternIsNotAnchoredRequestBody(BaseApi): def post_pattern_is_not_anchored_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_pattern_is_not_anchored_request_body_oapg( body=body, content_type=content_type, @@ -190,7 +198,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -220,12 +228,16 @@ class ApiForpost(BaseApi): def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_pattern_is_not_anchored_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_pattern_validation_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_pattern_validation_request_body/post.py index 78805fa99a5..98896efcc7d 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_pattern_validation_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_pattern_validation_request_body/post.py @@ -67,7 +67,7 @@ def _post_pattern_validation_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -97,12 +97,16 @@ def _post_pattern_validation_request_body_oapg( def _post_pattern_validation_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -160,7 +164,7 @@ def post_pattern_validation_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -190,12 +194,16 @@ def post_pattern_validation_request_body( def post_pattern_validation_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_pattern_validation_request_body_oapg( body=body, content_type=content_type, @@ -216,7 +224,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -246,12 +254,16 @@ def post( def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_pattern_validation_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_pattern_validation_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_pattern_validation_request_body/post.pyi index d16e3d72bda..1a7a88bd715 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_pattern_validation_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_pattern_validation_request_body/post.pyi @@ -41,7 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -71,12 +71,16 @@ class BaseApi(api_client.Api): def _post_pattern_validation_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -134,7 +138,7 @@ class PostPatternValidationRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -164,12 +168,16 @@ class PostPatternValidationRequestBody(BaseApi): def post_pattern_validation_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_pattern_validation_request_body_oapg( body=body, content_type=content_type, @@ -190,7 +198,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -220,12 +228,16 @@ class ApiForpost(BaseApi): def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_pattern_validation_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post.py index 7bc781c527a..d14bfd6750f 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post.py @@ -67,7 +67,7 @@ def _post_properties_with_escaped_characters_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -97,12 +97,16 @@ def _post_properties_with_escaped_characters_request_body_oapg( def _post_properties_with_escaped_characters_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -160,7 +164,7 @@ def post_properties_with_escaped_characters_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -190,12 +194,16 @@ def post_properties_with_escaped_characters_request_body( def post_properties_with_escaped_characters_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_properties_with_escaped_characters_request_body_oapg( body=body, content_type=content_type, @@ -216,7 +224,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -246,12 +254,16 @@ def post( def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_properties_with_escaped_characters_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post.pyi index 11488d31da6..03041b86b17 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_properties_with_escaped_characters_request_body/post.pyi @@ -41,7 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -71,12 +71,16 @@ class BaseApi(api_client.Api): def _post_properties_with_escaped_characters_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -134,7 +138,7 @@ class PostPropertiesWithEscapedCharactersRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -164,12 +168,16 @@ class PostPropertiesWithEscapedCharactersRequestBody(BaseApi): def post_properties_with_escaped_characters_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_properties_with_escaped_characters_request_body_oapg( body=body, content_type=content_type, @@ -190,7 +198,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -220,12 +228,16 @@ class ApiForpost(BaseApi): def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_properties_with_escaped_characters_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post.py index aafeb27b7f5..dc1a72bf40d 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post.py @@ -67,7 +67,7 @@ def _post_property_named_ref_that_is_not_a_reference_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -97,12 +97,16 @@ def _post_property_named_ref_that_is_not_a_reference_request_body_oapg( def _post_property_named_ref_that_is_not_a_reference_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -160,7 +164,7 @@ def post_property_named_ref_that_is_not_a_reference_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -190,12 +194,16 @@ def post_property_named_ref_that_is_not_a_reference_request_body( def post_property_named_ref_that_is_not_a_reference_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_property_named_ref_that_is_not_a_reference_request_body_oapg( body=body, content_type=content_type, @@ -216,7 +224,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -246,12 +254,16 @@ def post( def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_property_named_ref_that_is_not_a_reference_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post.pyi index a348898e183..6635ff7ece4 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_property_named_ref_that_is_not_a_reference_request_body/post.pyi @@ -41,7 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -71,12 +71,16 @@ class BaseApi(api_client.Api): def _post_property_named_ref_that_is_not_a_reference_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -134,7 +138,7 @@ class PostPropertyNamedRefThatIsNotAReferenceRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -164,12 +168,16 @@ class PostPropertyNamedRefThatIsNotAReferenceRequestBody(BaseApi): def post_property_named_ref_that_is_not_a_reference_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_property_named_ref_that_is_not_a_reference_request_body_oapg( body=body, content_type=content_type, @@ -190,7 +198,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -220,12 +228,16 @@ class ApiForpost(BaseApi): def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_property_named_ref_that_is_not_a_reference_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_additionalproperties_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_additionalproperties_request_body/post.py index e756539bc65..0e935579162 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_additionalproperties_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_additionalproperties_request_body/post.py @@ -67,7 +67,7 @@ def _post_ref_in_additionalproperties_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -97,12 +97,16 @@ def _post_ref_in_additionalproperties_request_body_oapg( def _post_ref_in_additionalproperties_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -160,7 +164,7 @@ def post_ref_in_additionalproperties_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -190,12 +194,16 @@ def post_ref_in_additionalproperties_request_body( def post_ref_in_additionalproperties_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_ref_in_additionalproperties_request_body_oapg( body=body, content_type=content_type, @@ -216,7 +224,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -246,12 +254,16 @@ def post( def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_ref_in_additionalproperties_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_additionalproperties_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_additionalproperties_request_body/post.pyi index 0d4d9a402a3..042209a9bd2 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_additionalproperties_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_additionalproperties_request_body/post.pyi @@ -41,7 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -71,12 +71,16 @@ class BaseApi(api_client.Api): def _post_ref_in_additionalproperties_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -134,7 +138,7 @@ class PostRefInAdditionalpropertiesRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -164,12 +168,16 @@ class PostRefInAdditionalpropertiesRequestBody(BaseApi): def post_ref_in_additionalproperties_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_ref_in_additionalproperties_request_body_oapg( body=body, content_type=content_type, @@ -190,7 +198,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -220,12 +228,16 @@ class ApiForpost(BaseApi): def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_ref_in_additionalproperties_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_allof_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_allof_request_body/post.py index b433dc1c062..b265905c0c6 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_allof_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_allof_request_body/post.py @@ -67,7 +67,7 @@ def _post_ref_in_allof_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -97,12 +97,16 @@ def _post_ref_in_allof_request_body_oapg( def _post_ref_in_allof_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -160,7 +164,7 @@ def post_ref_in_allof_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -190,12 +194,16 @@ def post_ref_in_allof_request_body( def post_ref_in_allof_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_ref_in_allof_request_body_oapg( body=body, content_type=content_type, @@ -216,7 +224,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -246,12 +254,16 @@ def post( def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_ref_in_allof_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_allof_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_allof_request_body/post.pyi index e358c2f3b9d..36fbb78c12e 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_allof_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_allof_request_body/post.pyi @@ -41,7 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -71,12 +71,16 @@ class BaseApi(api_client.Api): def _post_ref_in_allof_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -134,7 +138,7 @@ class PostRefInAllofRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -164,12 +168,16 @@ class PostRefInAllofRequestBody(BaseApi): def post_ref_in_allof_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_ref_in_allof_request_body_oapg( body=body, content_type=content_type, @@ -190,7 +198,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -220,12 +228,16 @@ class ApiForpost(BaseApi): def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_ref_in_allof_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_anyof_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_anyof_request_body/post.py index 5504b608aa7..91aee22f078 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_anyof_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_anyof_request_body/post.py @@ -67,7 +67,7 @@ def _post_ref_in_anyof_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -97,12 +97,16 @@ def _post_ref_in_anyof_request_body_oapg( def _post_ref_in_anyof_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -160,7 +164,7 @@ def post_ref_in_anyof_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -190,12 +194,16 @@ def post_ref_in_anyof_request_body( def post_ref_in_anyof_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_ref_in_anyof_request_body_oapg( body=body, content_type=content_type, @@ -216,7 +224,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -246,12 +254,16 @@ def post( def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_ref_in_anyof_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_anyof_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_anyof_request_body/post.pyi index b296dacd58d..887d13e33e3 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_anyof_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_anyof_request_body/post.pyi @@ -41,7 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -71,12 +71,16 @@ class BaseApi(api_client.Api): def _post_ref_in_anyof_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -134,7 +138,7 @@ class PostRefInAnyofRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -164,12 +168,16 @@ class PostRefInAnyofRequestBody(BaseApi): def post_ref_in_anyof_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_ref_in_anyof_request_body_oapg( body=body, content_type=content_type, @@ -190,7 +198,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -220,12 +228,16 @@ class ApiForpost(BaseApi): def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_ref_in_anyof_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_items_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_items_request_body/post.py index a4f2dfa4e0a..140b29ffe48 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_items_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_items_request_body/post.py @@ -67,7 +67,7 @@ def _post_ref_in_items_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -97,12 +97,16 @@ def _post_ref_in_items_request_body_oapg( def _post_ref_in_items_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -160,7 +164,7 @@ def post_ref_in_items_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -190,12 +194,16 @@ def post_ref_in_items_request_body( def post_ref_in_items_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_ref_in_items_request_body_oapg( body=body, content_type=content_type, @@ -216,7 +224,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -246,12 +254,16 @@ def post( def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_ref_in_items_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_items_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_items_request_body/post.pyi index 4d6150947d4..b4908bda00f 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_items_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_items_request_body/post.pyi @@ -41,7 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -71,12 +71,16 @@ class BaseApi(api_client.Api): def _post_ref_in_items_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -134,7 +138,7 @@ class PostRefInItemsRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -164,12 +168,16 @@ class PostRefInItemsRequestBody(BaseApi): def post_ref_in_items_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_ref_in_items_request_body_oapg( body=body, content_type=content_type, @@ -190,7 +198,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -220,12 +228,16 @@ class ApiForpost(BaseApi): def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_ref_in_items_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_not_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_not_request_body/post.py index 5fba898a32f..cb7be121833 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_not_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_not_request_body/post.py @@ -92,7 +92,7 @@ def _post_ref_in_not_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -122,12 +122,16 @@ def _post_ref_in_not_request_body_oapg( def _post_ref_in_not_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -185,7 +189,7 @@ def post_ref_in_not_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -215,12 +219,16 @@ def post_ref_in_not_request_body( def post_ref_in_not_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_ref_in_not_request_body_oapg( body=body, content_type=content_type, @@ -241,7 +249,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -271,12 +279,16 @@ def post( def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_ref_in_not_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_not_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_not_request_body/post.pyi index 688e21fd49c..d1d60aa4649 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_not_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_not_request_body/post.pyi @@ -66,7 +66,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -96,12 +96,16 @@ class BaseApi(api_client.Api): def _post_ref_in_not_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -159,7 +163,7 @@ class PostRefInNotRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -189,12 +193,16 @@ class PostRefInNotRequestBody(BaseApi): def post_ref_in_not_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_ref_in_not_request_body_oapg( body=body, content_type=content_type, @@ -215,7 +223,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -245,12 +253,16 @@ class ApiForpost(BaseApi): def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_ref_in_not_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_oneof_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_oneof_request_body/post.py index 4aa3c1973af..088c8e08786 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_oneof_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_oneof_request_body/post.py @@ -67,7 +67,7 @@ def _post_ref_in_oneof_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -97,12 +97,16 @@ def _post_ref_in_oneof_request_body_oapg( def _post_ref_in_oneof_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -160,7 +164,7 @@ def post_ref_in_oneof_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -190,12 +194,16 @@ def post_ref_in_oneof_request_body( def post_ref_in_oneof_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_ref_in_oneof_request_body_oapg( body=body, content_type=content_type, @@ -216,7 +224,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -246,12 +254,16 @@ def post( def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_ref_in_oneof_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_oneof_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_oneof_request_body/post.pyi index 3381cc89133..4600f45f6ca 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_oneof_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_oneof_request_body/post.pyi @@ -41,7 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -71,12 +71,16 @@ class BaseApi(api_client.Api): def _post_ref_in_oneof_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -134,7 +138,7 @@ class PostRefInOneofRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -164,12 +168,16 @@ class PostRefInOneofRequestBody(BaseApi): def post_ref_in_oneof_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_ref_in_oneof_request_body_oapg( body=body, content_type=content_type, @@ -190,7 +198,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -220,12 +228,16 @@ class ApiForpost(BaseApi): def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_ref_in_oneof_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_property_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_property_request_body/post.py index 85ac4039ca7..b5fbae2442e 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_property_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_property_request_body/post.py @@ -67,7 +67,7 @@ def _post_ref_in_property_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -97,12 +97,16 @@ def _post_ref_in_property_request_body_oapg( def _post_ref_in_property_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -160,7 +164,7 @@ def post_ref_in_property_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -190,12 +194,16 @@ def post_ref_in_property_request_body( def post_ref_in_property_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_ref_in_property_request_body_oapg( body=body, content_type=content_type, @@ -216,7 +224,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -246,12 +254,16 @@ def post( def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_ref_in_property_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_property_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_property_request_body/post.pyi index f7d74c0a07d..45439f95098 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_property_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_ref_in_property_request_body/post.pyi @@ -41,7 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -71,12 +71,16 @@ class BaseApi(api_client.Api): def _post_ref_in_property_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -134,7 +138,7 @@ class PostRefInPropertyRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -164,12 +168,16 @@ class PostRefInPropertyRequestBody(BaseApi): def post_ref_in_property_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_ref_in_property_request_body_oapg( body=body, content_type=content_type, @@ -190,7 +198,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -220,12 +228,16 @@ class ApiForpost(BaseApi): def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_ref_in_property_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_default_validation_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_default_validation_request_body/post.py index 2e3b1b81037..19859f69b65 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_default_validation_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_default_validation_request_body/post.py @@ -67,7 +67,7 @@ def _post_required_default_validation_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -97,12 +97,16 @@ def _post_required_default_validation_request_body_oapg( def _post_required_default_validation_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -160,7 +164,7 @@ def post_required_default_validation_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -190,12 +194,16 @@ def post_required_default_validation_request_body( def post_required_default_validation_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_required_default_validation_request_body_oapg( body=body, content_type=content_type, @@ -216,7 +224,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -246,12 +254,16 @@ def post( def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_required_default_validation_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_default_validation_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_default_validation_request_body/post.pyi index b5a9f468a40..c6622fa327a 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_default_validation_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_default_validation_request_body/post.pyi @@ -41,7 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -71,12 +71,16 @@ class BaseApi(api_client.Api): def _post_required_default_validation_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -134,7 +138,7 @@ class PostRequiredDefaultValidationRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -164,12 +168,16 @@ class PostRequiredDefaultValidationRequestBody(BaseApi): def post_required_default_validation_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_required_default_validation_request_body_oapg( body=body, content_type=content_type, @@ -190,7 +198,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -220,12 +228,16 @@ class ApiForpost(BaseApi): def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_required_default_validation_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_validation_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_validation_request_body/post.py index a353cf5f4d4..e628ae761cb 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_validation_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_validation_request_body/post.py @@ -67,7 +67,7 @@ def _post_required_validation_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -97,12 +97,16 @@ def _post_required_validation_request_body_oapg( def _post_required_validation_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -160,7 +164,7 @@ def post_required_validation_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -190,12 +194,16 @@ def post_required_validation_request_body( def post_required_validation_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_required_validation_request_body_oapg( body=body, content_type=content_type, @@ -216,7 +224,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -246,12 +254,16 @@ def post( def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_required_validation_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_validation_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_validation_request_body/post.pyi index eba46f8d238..4586119f158 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_validation_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_validation_request_body/post.pyi @@ -41,7 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -71,12 +71,16 @@ class BaseApi(api_client.Api): def _post_required_validation_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -134,7 +138,7 @@ class PostRequiredValidationRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -164,12 +168,16 @@ class PostRequiredValidationRequestBody(BaseApi): def post_required_validation_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_required_validation_request_body_oapg( body=body, content_type=content_type, @@ -190,7 +198,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -220,12 +228,16 @@ class ApiForpost(BaseApi): def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_required_validation_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post.py index cfa779e40d0..de4454ff752 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post.py @@ -67,7 +67,7 @@ def _post_required_with_empty_array_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -97,12 +97,16 @@ def _post_required_with_empty_array_request_body_oapg( def _post_required_with_empty_array_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -160,7 +164,7 @@ def post_required_with_empty_array_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -190,12 +194,16 @@ def post_required_with_empty_array_request_body( def post_required_with_empty_array_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_required_with_empty_array_request_body_oapg( body=body, content_type=content_type, @@ -216,7 +224,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -246,12 +254,16 @@ def post( def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_required_with_empty_array_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post.pyi index 6f45d0206e9..0f5a8db12af 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_with_empty_array_request_body/post.pyi @@ -41,7 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -71,12 +71,16 @@ class BaseApi(api_client.Api): def _post_required_with_empty_array_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -134,7 +138,7 @@ class PostRequiredWithEmptyArrayRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -164,12 +168,16 @@ class PostRequiredWithEmptyArrayRequestBody(BaseApi): def post_required_with_empty_array_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_required_with_empty_array_request_body_oapg( body=body, content_type=content_type, @@ -190,7 +198,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -220,12 +228,16 @@ class ApiForpost(BaseApi): def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_required_with_empty_array_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post.py index d17bf43b44c..8a936d7633d 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post.py @@ -95,7 +95,7 @@ def _post_required_with_escaped_characters_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -125,12 +125,16 @@ def _post_required_with_escaped_characters_request_body_oapg( def _post_required_with_escaped_characters_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -188,7 +192,7 @@ def post_required_with_escaped_characters_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -218,12 +222,16 @@ def post_required_with_escaped_characters_request_body( def post_required_with_escaped_characters_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_required_with_escaped_characters_request_body_oapg( body=body, content_type=content_type, @@ -244,7 +252,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -274,12 +282,16 @@ def post( def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_required_with_escaped_characters_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post.pyi index 66e90e595eb..b2ecce3c1df 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_required_with_escaped_characters_request_body/post.pyi @@ -69,7 +69,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -99,12 +99,16 @@ class BaseApi(api_client.Api): def _post_required_with_escaped_characters_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -162,7 +166,7 @@ class PostRequiredWithEscapedCharactersRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -192,12 +196,16 @@ class PostRequiredWithEscapedCharactersRequestBody(BaseApi): def post_required_with_escaped_characters_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_required_with_escaped_characters_request_body_oapg( body=body, content_type=content_type, @@ -218,7 +226,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -248,12 +256,16 @@ class ApiForpost(BaseApi): def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_required_with_escaped_characters_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post.py index 9fb235a59c6..fa0fd6dcacf 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post.py @@ -67,7 +67,7 @@ def _post_simple_enum_validation_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -97,12 +97,16 @@ def _post_simple_enum_validation_request_body_oapg( def _post_simple_enum_validation_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -160,7 +164,7 @@ def post_simple_enum_validation_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -190,12 +194,16 @@ def post_simple_enum_validation_request_body( def post_simple_enum_validation_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_simple_enum_validation_request_body_oapg( body=body, content_type=content_type, @@ -216,7 +224,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -246,12 +254,16 @@ def post( def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_simple_enum_validation_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post.pyi index f0ad128ac77..696756f924d 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_simple_enum_validation_request_body/post.pyi @@ -41,7 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -71,12 +71,16 @@ class BaseApi(api_client.Api): def _post_simple_enum_validation_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -134,7 +138,7 @@ class PostSimpleEnumValidationRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -164,12 +168,16 @@ class PostSimpleEnumValidationRequestBody(BaseApi): def post_simple_enum_validation_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_simple_enum_validation_request_body_oapg( body=body, content_type=content_type, @@ -190,7 +198,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -220,12 +228,16 @@ class ApiForpost(BaseApi): def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_simple_enum_validation_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post.py index 1b33749afa6..568db3cb411 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post.py @@ -65,7 +65,7 @@ def _post_string_type_matches_strings_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -95,12 +95,16 @@ def _post_string_type_matches_strings_request_body_oapg( def _post_string_type_matches_strings_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,str, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -158,7 +162,7 @@ def post_string_type_matches_strings_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -188,12 +192,16 @@ def post_string_type_matches_strings_request_body( def post_string_type_matches_strings_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,str, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_string_type_matches_strings_request_body_oapg( body=body, content_type=content_type, @@ -214,7 +222,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -244,12 +252,16 @@ def post( def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,str, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_string_type_matches_strings_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post.pyi index deb7f7ab644..6cba2f61219 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_string_type_matches_strings_request_body/post.pyi @@ -39,7 +39,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -69,12 +69,16 @@ class BaseApi(api_client.Api): def _post_string_type_matches_strings_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,str, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -132,7 +136,7 @@ class PostStringTypeMatchesStringsRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -162,12 +166,16 @@ class PostStringTypeMatchesStringsRequestBody(BaseApi): def post_string_type_matches_strings_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,str, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_string_type_matches_strings_request_body_oapg( body=body, content_type=content_type, @@ -188,7 +196,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -218,12 +226,16 @@ class ApiForpost(BaseApi): def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,str, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_string_type_matches_strings_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body/post.py index 6bbf3322cfa..de79a587e65 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body/post.py @@ -67,7 +67,7 @@ def _post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_re stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -97,12 +97,16 @@ def _post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_re def _post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -160,7 +164,7 @@ def post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_req stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -190,12 +194,16 @@ def post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_req def post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body_oapg( body=body, content_type=content_type, @@ -216,7 +224,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -246,12 +254,16 @@ def post( def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body/post.pyi index b67a3ce063f..421f2f5a8d2 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body/post.pyi @@ -41,7 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -71,12 +71,16 @@ class BaseApi(api_client.Api): def _post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -134,7 +138,7 @@ class PostTheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissingRequestBody(Ba stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -164,12 +168,16 @@ class PostTheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissingRequestBody(Ba def post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body_oapg( body=body, content_type=content_type, @@ -190,7 +198,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -220,12 +228,16 @@ class ApiForpost(BaseApi): def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post.py index 4b850c28c3a..ac33bebb41b 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post.py @@ -67,7 +67,7 @@ def _post_uniqueitems_false_validation_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -97,12 +97,16 @@ def _post_uniqueitems_false_validation_request_body_oapg( def _post_uniqueitems_false_validation_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -160,7 +164,7 @@ def post_uniqueitems_false_validation_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -190,12 +194,16 @@ def post_uniqueitems_false_validation_request_body( def post_uniqueitems_false_validation_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_uniqueitems_false_validation_request_body_oapg( body=body, content_type=content_type, @@ -216,7 +224,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -246,12 +254,16 @@ def post( def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_uniqueitems_false_validation_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post.pyi index 07de3ed68bf..024af22e133 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uniqueitems_false_validation_request_body/post.pyi @@ -41,7 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -71,12 +71,16 @@ class BaseApi(api_client.Api): def _post_uniqueitems_false_validation_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -134,7 +138,7 @@ class PostUniqueitemsFalseValidationRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -164,12 +168,16 @@ class PostUniqueitemsFalseValidationRequestBody(BaseApi): def post_uniqueitems_false_validation_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_uniqueitems_false_validation_request_body_oapg( body=body, content_type=content_type, @@ -190,7 +198,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -220,12 +228,16 @@ class ApiForpost(BaseApi): def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_uniqueitems_false_validation_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post.py index ed09a54837f..0b80c4c1ef0 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post.py @@ -67,7 +67,7 @@ def _post_uniqueitems_validation_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -97,12 +97,16 @@ def _post_uniqueitems_validation_request_body_oapg( def _post_uniqueitems_validation_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -160,7 +164,7 @@ def post_uniqueitems_validation_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -190,12 +194,16 @@ def post_uniqueitems_validation_request_body( def post_uniqueitems_validation_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_uniqueitems_validation_request_body_oapg( body=body, content_type=content_type, @@ -216,7 +224,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -246,12 +254,16 @@ def post( def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_uniqueitems_validation_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post.pyi index 3f8a5ce7d00..d751a313db6 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uniqueitems_validation_request_body/post.pyi @@ -41,7 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -71,12 +71,16 @@ class BaseApi(api_client.Api): def _post_uniqueitems_validation_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -134,7 +138,7 @@ class PostUniqueitemsValidationRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -164,12 +168,16 @@ class PostUniqueitemsValidationRequestBody(BaseApi): def post_uniqueitems_validation_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_uniqueitems_validation_request_body_oapg( body=body, content_type=content_type, @@ -190,7 +198,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -220,12 +228,16 @@ class ApiForpost(BaseApi): def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_uniqueitems_validation_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_format_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_format_request_body/post.py index b1dd829ef09..b033b285d9b 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_format_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_format_request_body/post.py @@ -87,7 +87,7 @@ def _post_uri_format_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -117,12 +117,16 @@ def _post_uri_format_request_body_oapg( def _post_uri_format_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -180,7 +184,7 @@ def post_uri_format_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -210,12 +214,16 @@ def post_uri_format_request_body( def post_uri_format_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_uri_format_request_body_oapg( body=body, content_type=content_type, @@ -236,7 +244,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -266,12 +274,16 @@ def post( def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_uri_format_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_format_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_format_request_body/post.pyi index e6dd1565d6f..9a3090e75ee 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_format_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_format_request_body/post.pyi @@ -61,7 +61,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -91,12 +91,16 @@ class BaseApi(api_client.Api): def _post_uri_format_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -154,7 +158,7 @@ class PostUriFormatRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -184,12 +188,16 @@ class PostUriFormatRequestBody(BaseApi): def post_uri_format_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_uri_format_request_body_oapg( body=body, content_type=content_type, @@ -210,7 +218,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -240,12 +248,16 @@ class ApiForpost(BaseApi): def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_uri_format_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post.py index 5481ee95312..b3d90fb1107 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post.py @@ -87,7 +87,7 @@ def _post_uri_reference_format_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -117,12 +117,16 @@ def _post_uri_reference_format_request_body_oapg( def _post_uri_reference_format_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -180,7 +184,7 @@ def post_uri_reference_format_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -210,12 +214,16 @@ def post_uri_reference_format_request_body( def post_uri_reference_format_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_uri_reference_format_request_body_oapg( body=body, content_type=content_type, @@ -236,7 +244,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -266,12 +274,16 @@ def post( def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_uri_reference_format_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post.pyi index a5a9dd81024..5db1cd88455 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_reference_format_request_body/post.pyi @@ -61,7 +61,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -91,12 +91,16 @@ class BaseApi(api_client.Api): def _post_uri_reference_format_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -154,7 +158,7 @@ class PostUriReferenceFormatRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -184,12 +188,16 @@ class PostUriReferenceFormatRequestBody(BaseApi): def post_uri_reference_format_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_uri_reference_format_request_body_oapg( body=body, content_type=content_type, @@ -210,7 +218,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -240,12 +248,16 @@ class ApiForpost(BaseApi): def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_uri_reference_format_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_template_format_request_body/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_template_format_request_body/post.py index a02cdd84570..ca22c4472e3 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_template_format_request_body/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_template_format_request_body/post.py @@ -87,7 +87,7 @@ def _post_uri_template_format_request_body_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -117,12 +117,16 @@ def _post_uri_template_format_request_body_oapg( def _post_uri_template_format_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -180,7 +184,7 @@ def post_uri_template_format_request_body( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -210,12 +214,16 @@ def post_uri_template_format_request_body( def post_uri_template_format_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_uri_template_format_request_body_oapg( body=body, content_type=content_type, @@ -236,7 +244,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -266,12 +274,16 @@ def post( def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_uri_template_format_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_template_format_request_body/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_template_format_request_body/post.pyi index 6d57a164c98..d9b42d9824e 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_template_format_request_body/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_uri_template_format_request_body/post.pyi @@ -61,7 +61,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -91,12 +91,16 @@ class BaseApi(api_client.Api): def _post_uri_template_format_request_body_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -154,7 +158,7 @@ class PostUriTemplateFormatRequestBody(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -184,12 +188,16 @@ class PostUriTemplateFormatRequestBody(BaseApi): def post_uri_template_format_request_body( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_uri_template_format_request_body_oapg( body=body, content_type=content_type, @@ -210,7 +218,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -240,12 +248,16 @@ class ApiForpost(BaseApi): def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_uri_template_format_request_body_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types/post.py index 88f97eea811..79cd96eaa47 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types/post.py @@ -65,7 +65,7 @@ def _post_additionalproperties_allows_a_schema_which_should_validate_response_bo stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -93,11 +93,15 @@ def _post_additionalproperties_allows_a_schema_which_should_validate_response_bo def _post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,7 +148,7 @@ def post_additionalproperties_allows_a_schema_which_should_validate_response_bod stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -172,11 +176,15 @@ def post_additionalproperties_allows_a_schema_which_should_validate_response_bod def post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -195,7 +203,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -223,11 +231,15 @@ def post( def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types/post.pyi index 14992012034..c10138897dd 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types/post.pyi @@ -42,7 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -70,11 +70,15 @@ class BaseApi(api_client.Api): def _post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,7 +125,7 @@ class PostAdditionalpropertiesAllowsASchemaWhichShouldValidateResponseBodyForCon stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -149,11 +153,15 @@ class PostAdditionalpropertiesAllowsASchemaWhichShouldValidateResponseBodyForCon def post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -172,7 +180,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -200,11 +208,15 @@ class ApiForpost(BaseApi): def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post.py index d9ee011fe75..170295a207c 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post.py @@ -65,7 +65,7 @@ def _post_additionalproperties_are_allowed_by_default_response_body_for_content_ stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -93,11 +93,15 @@ def _post_additionalproperties_are_allowed_by_default_response_body_for_content_ def _post_additionalproperties_are_allowed_by_default_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,7 +148,7 @@ def post_additionalproperties_are_allowed_by_default_response_body_for_content_t stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -172,11 +176,15 @@ def post_additionalproperties_are_allowed_by_default_response_body_for_content_t def post_additionalproperties_are_allowed_by_default_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_additionalproperties_are_allowed_by_default_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -195,7 +203,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -223,11 +231,15 @@ def post( def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_additionalproperties_are_allowed_by_default_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post.pyi index 915da3a0817..6fd11878f63 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post.pyi @@ -42,7 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -70,11 +70,15 @@ class BaseApi(api_client.Api): def _post_additionalproperties_are_allowed_by_default_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,7 +125,7 @@ class PostAdditionalpropertiesAreAllowedByDefaultResponseBodyForContentTypes(Bas stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -149,11 +153,15 @@ class PostAdditionalpropertiesAreAllowedByDefaultResponseBodyForContentTypes(Bas def post_additionalproperties_are_allowed_by_default_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_additionalproperties_are_allowed_by_default_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -172,7 +180,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -200,11 +208,15 @@ class ApiForpost(BaseApi): def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_additionalproperties_are_allowed_by_default_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post.py index eb85afba21f..5df4832acdc 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post.py @@ -65,7 +65,7 @@ def _post_additionalproperties_can_exist_by_itself_response_body_for_content_typ stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -93,11 +93,15 @@ def _post_additionalproperties_can_exist_by_itself_response_body_for_content_typ def _post_additionalproperties_can_exist_by_itself_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,7 +148,7 @@ def post_additionalproperties_can_exist_by_itself_response_body_for_content_type stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -172,11 +176,15 @@ def post_additionalproperties_can_exist_by_itself_response_body_for_content_type def post_additionalproperties_can_exist_by_itself_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_additionalproperties_can_exist_by_itself_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -195,7 +203,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -223,11 +231,15 @@ def post( def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_additionalproperties_can_exist_by_itself_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post.pyi index c855c03be7b..cacc30b4ec6 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post.pyi @@ -42,7 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -70,11 +70,15 @@ class BaseApi(api_client.Api): def _post_additionalproperties_can_exist_by_itself_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,7 +125,7 @@ class PostAdditionalpropertiesCanExistByItselfResponseBodyForContentTypes(BaseAp stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -149,11 +153,15 @@ class PostAdditionalpropertiesCanExistByItselfResponseBodyForContentTypes(BaseAp def post_additionalproperties_can_exist_by_itself_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_additionalproperties_can_exist_by_itself_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -172,7 +180,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -200,11 +208,15 @@ class ApiForpost(BaseApi): def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_additionalproperties_can_exist_by_itself_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types/post.py index dcdf4798bbb..4beea87ddd9 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types/post.py @@ -65,7 +65,7 @@ def _post_additionalproperties_should_not_look_in_applicators_response_body_for_ stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -93,11 +93,15 @@ def _post_additionalproperties_should_not_look_in_applicators_response_body_for_ def _post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,7 +148,7 @@ def post_additionalproperties_should_not_look_in_applicators_response_body_for_c stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -172,11 +176,15 @@ def post_additionalproperties_should_not_look_in_applicators_response_body_for_c def post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -195,7 +203,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -223,11 +231,15 @@ def post( def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types/post.pyi index 17a08b36a4c..001a212e902 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types/post.pyi @@ -42,7 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -70,11 +70,15 @@ class BaseApi(api_client.Api): def _post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,7 +125,7 @@ class PostAdditionalpropertiesShouldNotLookInApplicatorsResponseBodyForContentTy stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -149,11 +153,15 @@ class PostAdditionalpropertiesShouldNotLookInApplicatorsResponseBodyForContentTy def post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -172,7 +180,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -200,11 +208,15 @@ class ApiForpost(BaseApi): def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post.py index 65afa000971..7f352bb82ee 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post.py @@ -65,7 +65,7 @@ def _post_allof_combined_with_anyof_oneof_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -93,11 +93,15 @@ def _post_allof_combined_with_anyof_oneof_response_body_for_content_types_oapg( def _post_allof_combined_with_anyof_oneof_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,7 +148,7 @@ def post_allof_combined_with_anyof_oneof_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -172,11 +176,15 @@ def post_allof_combined_with_anyof_oneof_response_body_for_content_types( def post_allof_combined_with_anyof_oneof_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_allof_combined_with_anyof_oneof_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -195,7 +203,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -223,11 +231,15 @@ def post( def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_allof_combined_with_anyof_oneof_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post.pyi index 3021c37c6c6..6933a1eaa38 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post.pyi @@ -42,7 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -70,11 +70,15 @@ class BaseApi(api_client.Api): def _post_allof_combined_with_anyof_oneof_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,7 +125,7 @@ class PostAllofCombinedWithAnyofOneofResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -149,11 +153,15 @@ class PostAllofCombinedWithAnyofOneofResponseBodyForContentTypes(BaseApi): def post_allof_combined_with_anyof_oneof_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_allof_combined_with_anyof_oneof_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -172,7 +180,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -200,11 +208,15 @@ class ApiForpost(BaseApi): def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_allof_combined_with_anyof_oneof_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_response_body_for_content_types/post.py index b0500b3af8b..abdde0aefc2 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_response_body_for_content_types/post.py @@ -65,7 +65,7 @@ def _post_allof_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -93,11 +93,15 @@ def _post_allof_response_body_for_content_types_oapg( def _post_allof_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,7 +148,7 @@ def post_allof_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -172,11 +176,15 @@ def post_allof_response_body_for_content_types( def post_allof_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_allof_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -195,7 +203,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -223,11 +231,15 @@ def post( def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_allof_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_response_body_for_content_types/post.pyi index b8097ec6358..f2375120ddc 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_response_body_for_content_types/post.pyi @@ -42,7 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -70,11 +70,15 @@ class BaseApi(api_client.Api): def _post_allof_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,7 +125,7 @@ class PostAllofResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -149,11 +153,15 @@ class PostAllofResponseBodyForContentTypes(BaseApi): def post_allof_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_allof_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -172,7 +180,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -200,11 +208,15 @@ class ApiForpost(BaseApi): def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_allof_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_simple_types_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_simple_types_response_body_for_content_types/post.py index de8fffd0c8b..3dff816eac0 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_simple_types_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_simple_types_response_body_for_content_types/post.py @@ -65,7 +65,7 @@ def _post_allof_simple_types_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -93,11 +93,15 @@ def _post_allof_simple_types_response_body_for_content_types_oapg( def _post_allof_simple_types_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,7 +148,7 @@ def post_allof_simple_types_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -172,11 +176,15 @@ def post_allof_simple_types_response_body_for_content_types( def post_allof_simple_types_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_allof_simple_types_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -195,7 +203,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -223,11 +231,15 @@ def post( def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_allof_simple_types_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_simple_types_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_simple_types_response_body_for_content_types/post.pyi index 4693132d581..abf555b2165 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_simple_types_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_simple_types_response_body_for_content_types/post.pyi @@ -42,7 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -70,11 +70,15 @@ class BaseApi(api_client.Api): def _post_allof_simple_types_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,7 +125,7 @@ class PostAllofSimpleTypesResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -149,11 +153,15 @@ class PostAllofSimpleTypesResponseBodyForContentTypes(BaseApi): def post_allof_simple_types_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_allof_simple_types_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -172,7 +180,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -200,11 +208,15 @@ class ApiForpost(BaseApi): def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_allof_simple_types_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post.py index fa6a1ef1d0a..cfc4c415482 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post.py @@ -65,7 +65,7 @@ def _post_allof_with_base_schema_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -93,11 +93,15 @@ def _post_allof_with_base_schema_response_body_for_content_types_oapg( def _post_allof_with_base_schema_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,7 +148,7 @@ def post_allof_with_base_schema_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -172,11 +176,15 @@ def post_allof_with_base_schema_response_body_for_content_types( def post_allof_with_base_schema_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_allof_with_base_schema_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -195,7 +203,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -223,11 +231,15 @@ def post( def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_allof_with_base_schema_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post.pyi index f394bc7cbba..00646e0cb5a 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_base_schema_response_body_for_content_types/post.pyi @@ -42,7 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -70,11 +70,15 @@ class BaseApi(api_client.Api): def _post_allof_with_base_schema_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,7 +125,7 @@ class PostAllofWithBaseSchemaResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -149,11 +153,15 @@ class PostAllofWithBaseSchemaResponseBodyForContentTypes(BaseApi): def post_allof_with_base_schema_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_allof_with_base_schema_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -172,7 +180,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -200,11 +208,15 @@ class ApiForpost(BaseApi): def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_allof_with_base_schema_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post.py index 0f6bcbda90a..1146c3d8e40 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post.py @@ -65,7 +65,7 @@ def _post_allof_with_one_empty_schema_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -93,11 +93,15 @@ def _post_allof_with_one_empty_schema_response_body_for_content_types_oapg( def _post_allof_with_one_empty_schema_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,7 +148,7 @@ def post_allof_with_one_empty_schema_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -172,11 +176,15 @@ def post_allof_with_one_empty_schema_response_body_for_content_types( def post_allof_with_one_empty_schema_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_allof_with_one_empty_schema_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -195,7 +203,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -223,11 +231,15 @@ def post( def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_allof_with_one_empty_schema_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post.pyi index d6304a66c11..8144c6c2849 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post.pyi @@ -42,7 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -70,11 +70,15 @@ class BaseApi(api_client.Api): def _post_allof_with_one_empty_schema_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,7 +125,7 @@ class PostAllofWithOneEmptySchemaResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -149,11 +153,15 @@ class PostAllofWithOneEmptySchemaResponseBodyForContentTypes(BaseApi): def post_allof_with_one_empty_schema_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_allof_with_one_empty_schema_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -172,7 +180,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -200,11 +208,15 @@ class ApiForpost(BaseApi): def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_allof_with_one_empty_schema_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post.py index e8e3456a92d..730e679c333 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post.py @@ -65,7 +65,7 @@ def _post_allof_with_the_first_empty_schema_response_body_for_content_types_oapg stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -93,11 +93,15 @@ def _post_allof_with_the_first_empty_schema_response_body_for_content_types_oapg def _post_allof_with_the_first_empty_schema_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,7 +148,7 @@ def post_allof_with_the_first_empty_schema_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -172,11 +176,15 @@ def post_allof_with_the_first_empty_schema_response_body_for_content_types( def post_allof_with_the_first_empty_schema_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_allof_with_the_first_empty_schema_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -195,7 +203,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -223,11 +231,15 @@ def post( def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_allof_with_the_first_empty_schema_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post.pyi index 32adc167693..207af289107 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post.pyi @@ -42,7 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -70,11 +70,15 @@ class BaseApi(api_client.Api): def _post_allof_with_the_first_empty_schema_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,7 +125,7 @@ class PostAllofWithTheFirstEmptySchemaResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -149,11 +153,15 @@ class PostAllofWithTheFirstEmptySchemaResponseBodyForContentTypes(BaseApi): def post_allof_with_the_first_empty_schema_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_allof_with_the_first_empty_schema_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -172,7 +180,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -200,11 +208,15 @@ class ApiForpost(BaseApi): def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_allof_with_the_first_empty_schema_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post.py index 54e0bdbeec2..48ffa3f8eff 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post.py @@ -65,7 +65,7 @@ def _post_allof_with_the_last_empty_schema_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -93,11 +93,15 @@ def _post_allof_with_the_last_empty_schema_response_body_for_content_types_oapg( def _post_allof_with_the_last_empty_schema_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,7 +148,7 @@ def post_allof_with_the_last_empty_schema_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -172,11 +176,15 @@ def post_allof_with_the_last_empty_schema_response_body_for_content_types( def post_allof_with_the_last_empty_schema_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_allof_with_the_last_empty_schema_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -195,7 +203,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -223,11 +231,15 @@ def post( def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_allof_with_the_last_empty_schema_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post.pyi index 953946c6003..4f831c0e5fd 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post.pyi @@ -42,7 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -70,11 +70,15 @@ class BaseApi(api_client.Api): def _post_allof_with_the_last_empty_schema_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,7 +125,7 @@ class PostAllofWithTheLastEmptySchemaResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -149,11 +153,15 @@ class PostAllofWithTheLastEmptySchemaResponseBodyForContentTypes(BaseApi): def post_allof_with_the_last_empty_schema_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_allof_with_the_last_empty_schema_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -172,7 +180,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -200,11 +208,15 @@ class ApiForpost(BaseApi): def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_allof_with_the_last_empty_schema_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post.py index a55254f77ad..61d180aa30e 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post.py @@ -65,7 +65,7 @@ def _post_allof_with_two_empty_schemas_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -93,11 +93,15 @@ def _post_allof_with_two_empty_schemas_response_body_for_content_types_oapg( def _post_allof_with_two_empty_schemas_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,7 +148,7 @@ def post_allof_with_two_empty_schemas_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -172,11 +176,15 @@ def post_allof_with_two_empty_schemas_response_body_for_content_types( def post_allof_with_two_empty_schemas_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_allof_with_two_empty_schemas_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -195,7 +203,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -223,11 +231,15 @@ def post( def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_allof_with_two_empty_schemas_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post.pyi index abfb8348c77..d844cd429a9 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post.pyi @@ -42,7 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -70,11 +70,15 @@ class BaseApi(api_client.Api): def _post_allof_with_two_empty_schemas_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,7 +125,7 @@ class PostAllofWithTwoEmptySchemasResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -149,11 +153,15 @@ class PostAllofWithTwoEmptySchemasResponseBodyForContentTypes(BaseApi): def post_allof_with_two_empty_schemas_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_allof_with_two_empty_schemas_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -172,7 +180,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -200,11 +208,15 @@ class ApiForpost(BaseApi): def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_allof_with_two_empty_schemas_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post.py index 31a5816c883..8fed0a0fd91 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post.py @@ -65,7 +65,7 @@ def _post_anyof_complex_types_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -93,11 +93,15 @@ def _post_anyof_complex_types_response_body_for_content_types_oapg( def _post_anyof_complex_types_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,7 +148,7 @@ def post_anyof_complex_types_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -172,11 +176,15 @@ def post_anyof_complex_types_response_body_for_content_types( def post_anyof_complex_types_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_anyof_complex_types_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -195,7 +203,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -223,11 +231,15 @@ def post( def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_anyof_complex_types_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post.pyi index 2c9e620912c..74c9bc00f2b 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_complex_types_response_body_for_content_types/post.pyi @@ -42,7 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -70,11 +70,15 @@ class BaseApi(api_client.Api): def _post_anyof_complex_types_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,7 +125,7 @@ class PostAnyofComplexTypesResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -149,11 +153,15 @@ class PostAnyofComplexTypesResponseBodyForContentTypes(BaseApi): def post_anyof_complex_types_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_anyof_complex_types_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -172,7 +180,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -200,11 +208,15 @@ class ApiForpost(BaseApi): def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_anyof_complex_types_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_response_body_for_content_types/post.py index f9ee5bddd0e..4d3a69fd38d 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_response_body_for_content_types/post.py @@ -65,7 +65,7 @@ def _post_anyof_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -93,11 +93,15 @@ def _post_anyof_response_body_for_content_types_oapg( def _post_anyof_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,7 +148,7 @@ def post_anyof_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -172,11 +176,15 @@ def post_anyof_response_body_for_content_types( def post_anyof_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_anyof_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -195,7 +203,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -223,11 +231,15 @@ def post( def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_anyof_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_response_body_for_content_types/post.pyi index 23de0fed6fb..9575d6926b8 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_response_body_for_content_types/post.pyi @@ -42,7 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -70,11 +70,15 @@ class BaseApi(api_client.Api): def _post_anyof_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,7 +125,7 @@ class PostAnyofResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -149,11 +153,15 @@ class PostAnyofResponseBodyForContentTypes(BaseApi): def post_anyof_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_anyof_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -172,7 +180,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -200,11 +208,15 @@ class ApiForpost(BaseApi): def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_anyof_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post.py index a1fd2bf5616..b4436541178 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post.py @@ -65,7 +65,7 @@ def _post_anyof_with_base_schema_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -93,11 +93,15 @@ def _post_anyof_with_base_schema_response_body_for_content_types_oapg( def _post_anyof_with_base_schema_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,7 +148,7 @@ def post_anyof_with_base_schema_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -172,11 +176,15 @@ def post_anyof_with_base_schema_response_body_for_content_types( def post_anyof_with_base_schema_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_anyof_with_base_schema_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -195,7 +203,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -223,11 +231,15 @@ def post( def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_anyof_with_base_schema_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post.pyi index 928c029715f..1ee9d5d6a20 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_with_base_schema_response_body_for_content_types/post.pyi @@ -42,7 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -70,11 +70,15 @@ class BaseApi(api_client.Api): def _post_anyof_with_base_schema_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,7 +125,7 @@ class PostAnyofWithBaseSchemaResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -149,11 +153,15 @@ class PostAnyofWithBaseSchemaResponseBodyForContentTypes(BaseApi): def post_anyof_with_base_schema_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_anyof_with_base_schema_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -172,7 +180,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -200,11 +208,15 @@ class ApiForpost(BaseApi): def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_anyof_with_base_schema_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post.py index 71568303fc3..0c35eb17465 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post.py @@ -65,7 +65,7 @@ def _post_anyof_with_one_empty_schema_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -93,11 +93,15 @@ def _post_anyof_with_one_empty_schema_response_body_for_content_types_oapg( def _post_anyof_with_one_empty_schema_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,7 +148,7 @@ def post_anyof_with_one_empty_schema_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -172,11 +176,15 @@ def post_anyof_with_one_empty_schema_response_body_for_content_types( def post_anyof_with_one_empty_schema_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_anyof_with_one_empty_schema_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -195,7 +203,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -223,11 +231,15 @@ def post( def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_anyof_with_one_empty_schema_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post.pyi index c5a8b886f64..13693713510 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post.pyi @@ -42,7 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -70,11 +70,15 @@ class BaseApi(api_client.Api): def _post_anyof_with_one_empty_schema_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,7 +125,7 @@ class PostAnyofWithOneEmptySchemaResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -149,11 +153,15 @@ class PostAnyofWithOneEmptySchemaResponseBodyForContentTypes(BaseApi): def post_anyof_with_one_empty_schema_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_anyof_with_one_empty_schema_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -172,7 +180,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -200,11 +208,15 @@ class ApiForpost(BaseApi): def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_anyof_with_one_empty_schema_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post.py index fdc5f4bda09..fec3e5cbd79 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post.py @@ -65,7 +65,7 @@ def _post_array_type_matches_arrays_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -93,11 +93,15 @@ def _post_array_type_matches_arrays_response_body_for_content_types_oapg( def _post_array_type_matches_arrays_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,7 +148,7 @@ def post_array_type_matches_arrays_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -172,11 +176,15 @@ def post_array_type_matches_arrays_response_body_for_content_types( def post_array_type_matches_arrays_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_array_type_matches_arrays_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -195,7 +203,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -223,11 +231,15 @@ def post( def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_array_type_matches_arrays_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post.pyi index 868bb4ae5df..32607edc079 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_array_type_matches_arrays_response_body_for_content_types/post.pyi @@ -42,7 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -70,11 +70,15 @@ class BaseApi(api_client.Api): def _post_array_type_matches_arrays_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,7 +125,7 @@ class PostArrayTypeMatchesArraysResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -149,11 +153,15 @@ class PostArrayTypeMatchesArraysResponseBodyForContentTypes(BaseApi): def post_array_type_matches_arrays_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_array_type_matches_arrays_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -172,7 +180,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -200,11 +208,15 @@ class ApiForpost(BaseApi): def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_array_type_matches_arrays_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post.py index fb5425946e1..2675e1fcaf7 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post.py @@ -63,7 +63,7 @@ def _post_boolean_type_matches_booleans_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -91,11 +91,15 @@ def _post_boolean_type_matches_booleans_response_body_for_content_types_oapg( def _post_boolean_type_matches_booleans_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -142,7 +146,7 @@ def post_boolean_type_matches_booleans_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -170,11 +174,15 @@ def post_boolean_type_matches_booleans_response_body_for_content_types( def post_boolean_type_matches_booleans_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_boolean_type_matches_booleans_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -193,7 +201,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -221,11 +229,15 @@ def post( def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_boolean_type_matches_booleans_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post.pyi index dbcb3f1b6e5..d5a99c51eac 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post.pyi @@ -40,7 +40,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -68,11 +68,15 @@ class BaseApi(api_client.Api): def _post_boolean_type_matches_booleans_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -119,7 +123,7 @@ class PostBooleanTypeMatchesBooleansResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -147,11 +151,15 @@ class PostBooleanTypeMatchesBooleansResponseBodyForContentTypes(BaseApi): def post_boolean_type_matches_booleans_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_boolean_type_matches_booleans_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -170,7 +178,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -198,11 +206,15 @@ class ApiForpost(BaseApi): def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_boolean_type_matches_booleans_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_by_int_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_by_int_response_body_for_content_types/post.py index 685dbb2f8c7..5077d52ce35 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_by_int_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_by_int_response_body_for_content_types/post.py @@ -65,7 +65,7 @@ def _post_by_int_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -93,11 +93,15 @@ def _post_by_int_response_body_for_content_types_oapg( def _post_by_int_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,7 +148,7 @@ def post_by_int_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -172,11 +176,15 @@ def post_by_int_response_body_for_content_types( def post_by_int_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_by_int_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -195,7 +203,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -223,11 +231,15 @@ def post( def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_by_int_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_by_int_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_by_int_response_body_for_content_types/post.pyi index 43dbb53ca10..ace35a806e8 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_by_int_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_by_int_response_body_for_content_types/post.pyi @@ -42,7 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -70,11 +70,15 @@ class BaseApi(api_client.Api): def _post_by_int_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,7 +125,7 @@ class PostByIntResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -149,11 +153,15 @@ class PostByIntResponseBodyForContentTypes(BaseApi): def post_by_int_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_by_int_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -172,7 +180,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -200,11 +208,15 @@ class ApiForpost(BaseApi): def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_by_int_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_by_number_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_by_number_response_body_for_content_types/post.py index c448aadb429..4c44544d360 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_by_number_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_by_number_response_body_for_content_types/post.py @@ -65,7 +65,7 @@ def _post_by_number_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -93,11 +93,15 @@ def _post_by_number_response_body_for_content_types_oapg( def _post_by_number_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,7 +148,7 @@ def post_by_number_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -172,11 +176,15 @@ def post_by_number_response_body_for_content_types( def post_by_number_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_by_number_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -195,7 +203,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -223,11 +231,15 @@ def post( def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_by_number_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_by_number_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_by_number_response_body_for_content_types/post.pyi index 011d3675b48..b16b61443cc 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_by_number_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_by_number_response_body_for_content_types/post.pyi @@ -42,7 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -70,11 +70,15 @@ class BaseApi(api_client.Api): def _post_by_number_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,7 +125,7 @@ class PostByNumberResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -149,11 +153,15 @@ class PostByNumberResponseBodyForContentTypes(BaseApi): def post_by_number_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_by_number_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -172,7 +180,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -200,11 +208,15 @@ class ApiForpost(BaseApi): def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_by_number_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_by_small_number_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_by_small_number_response_body_for_content_types/post.py index acfe48777f7..26b0ebbd898 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_by_small_number_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_by_small_number_response_body_for_content_types/post.py @@ -65,7 +65,7 @@ def _post_by_small_number_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -93,11 +93,15 @@ def _post_by_small_number_response_body_for_content_types_oapg( def _post_by_small_number_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,7 +148,7 @@ def post_by_small_number_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -172,11 +176,15 @@ def post_by_small_number_response_body_for_content_types( def post_by_small_number_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_by_small_number_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -195,7 +203,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -223,11 +231,15 @@ def post( def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_by_small_number_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_by_small_number_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_by_small_number_response_body_for_content_types/post.pyi index 9708b9b6d15..0a2d45e11c0 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_by_small_number_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_by_small_number_response_body_for_content_types/post.pyi @@ -42,7 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -70,11 +70,15 @@ class BaseApi(api_client.Api): def _post_by_small_number_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,7 +125,7 @@ class PostBySmallNumberResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -149,11 +153,15 @@ class PostBySmallNumberResponseBodyForContentTypes(BaseApi): def post_by_small_number_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_by_small_number_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -172,7 +180,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -200,11 +208,15 @@ class ApiForpost(BaseApi): def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_by_small_number_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_date_time_format_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_date_time_format_response_body_for_content_types/post.py index 5f53e85fdc4..28b52a589eb 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_date_time_format_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_date_time_format_response_body_for_content_types/post.py @@ -86,7 +86,7 @@ def _post_date_time_format_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -114,11 +114,15 @@ def _post_date_time_format_response_body_for_content_types_oapg( def _post_date_time_format_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -165,7 +169,7 @@ def post_date_time_format_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -193,11 +197,15 @@ def post_date_time_format_response_body_for_content_types( def post_date_time_format_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_date_time_format_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -216,7 +224,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -244,11 +252,15 @@ def post( def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_date_time_format_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_date_time_format_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_date_time_format_response_body_for_content_types/post.pyi index d7121ca5e77..7086273896f 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_date_time_format_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_date_time_format_response_body_for_content_types/post.pyi @@ -63,7 +63,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -91,11 +91,15 @@ class BaseApi(api_client.Api): def _post_date_time_format_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -142,7 +146,7 @@ class PostDateTimeFormatResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -170,11 +174,15 @@ class PostDateTimeFormatResponseBodyForContentTypes(BaseApi): def post_date_time_format_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_date_time_format_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -193,7 +201,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -221,11 +229,15 @@ class ApiForpost(BaseApi): def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_date_time_format_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_email_format_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_email_format_response_body_for_content_types/post.py index cffaf1058d7..ef42998135c 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_email_format_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_email_format_response_body_for_content_types/post.py @@ -85,7 +85,7 @@ def _post_email_format_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -113,11 +113,15 @@ def _post_email_format_response_body_for_content_types_oapg( def _post_email_format_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -164,7 +168,7 @@ def post_email_format_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -192,11 +196,15 @@ def post_email_format_response_body_for_content_types( def post_email_format_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_email_format_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -215,7 +223,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -243,11 +251,15 @@ def post( def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_email_format_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_email_format_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_email_format_response_body_for_content_types/post.pyi index 473e1249469..a8a5bd26ce4 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_email_format_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_email_format_response_body_for_content_types/post.pyi @@ -62,7 +62,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -90,11 +90,15 @@ class BaseApi(api_client.Api): def _post_email_format_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -141,7 +145,7 @@ class PostEmailFormatResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -169,11 +173,15 @@ class PostEmailFormatResponseBodyForContentTypes(BaseApi): def post_email_format_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_email_format_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -192,7 +200,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -220,11 +228,15 @@ class ApiForpost(BaseApi): def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_email_format_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post.py index 8d29541c2c1..b50435634c1 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post.py @@ -65,7 +65,7 @@ def _post_enum_with0_does_not_match_false_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -93,11 +93,15 @@ def _post_enum_with0_does_not_match_false_response_body_for_content_types_oapg( def _post_enum_with0_does_not_match_false_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,7 +148,7 @@ def post_enum_with0_does_not_match_false_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -172,11 +176,15 @@ def post_enum_with0_does_not_match_false_response_body_for_content_types( def post_enum_with0_does_not_match_false_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_enum_with0_does_not_match_false_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -195,7 +203,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -223,11 +231,15 @@ def post( def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_enum_with0_does_not_match_false_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post.pyi index dbbcb406676..69f3c201cac 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post.pyi @@ -42,7 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -70,11 +70,15 @@ class BaseApi(api_client.Api): def _post_enum_with0_does_not_match_false_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,7 +125,7 @@ class PostEnumWith0DoesNotMatchFalseResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -149,11 +153,15 @@ class PostEnumWith0DoesNotMatchFalseResponseBodyForContentTypes(BaseApi): def post_enum_with0_does_not_match_false_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_enum_with0_does_not_match_false_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -172,7 +180,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -200,11 +208,15 @@ class ApiForpost(BaseApi): def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_enum_with0_does_not_match_false_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post.py index 9fe2f6c5ea4..a3e1d39e4e8 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post.py @@ -65,7 +65,7 @@ def _post_enum_with1_does_not_match_true_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -93,11 +93,15 @@ def _post_enum_with1_does_not_match_true_response_body_for_content_types_oapg( def _post_enum_with1_does_not_match_true_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,7 +148,7 @@ def post_enum_with1_does_not_match_true_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -172,11 +176,15 @@ def post_enum_with1_does_not_match_true_response_body_for_content_types( def post_enum_with1_does_not_match_true_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_enum_with1_does_not_match_true_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -195,7 +203,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -223,11 +231,15 @@ def post( def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_enum_with1_does_not_match_true_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post.pyi index 4ab8c860173..6f4a6a9e51f 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post.pyi @@ -42,7 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -70,11 +70,15 @@ class BaseApi(api_client.Api): def _post_enum_with1_does_not_match_true_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,7 +125,7 @@ class PostEnumWith1DoesNotMatchTrueResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -149,11 +153,15 @@ class PostEnumWith1DoesNotMatchTrueResponseBodyForContentTypes(BaseApi): def post_enum_with1_does_not_match_true_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_enum_with1_does_not_match_true_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -172,7 +180,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -200,11 +208,15 @@ class ApiForpost(BaseApi): def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_enum_with1_does_not_match_true_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post.py index 05afb0d41c7..5591f72ddd4 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post.py @@ -65,7 +65,7 @@ def _post_enum_with_escaped_characters_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -93,11 +93,15 @@ def _post_enum_with_escaped_characters_response_body_for_content_types_oapg( def _post_enum_with_escaped_characters_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,7 +148,7 @@ def post_enum_with_escaped_characters_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -172,11 +176,15 @@ def post_enum_with_escaped_characters_response_body_for_content_types( def post_enum_with_escaped_characters_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_enum_with_escaped_characters_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -195,7 +203,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -223,11 +231,15 @@ def post( def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_enum_with_escaped_characters_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post.pyi index 2e8e11421b9..7f793671745 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with_escaped_characters_response_body_for_content_types/post.pyi @@ -42,7 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -70,11 +70,15 @@ class BaseApi(api_client.Api): def _post_enum_with_escaped_characters_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,7 +125,7 @@ class PostEnumWithEscapedCharactersResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -149,11 +153,15 @@ class PostEnumWithEscapedCharactersResponseBodyForContentTypes(BaseApi): def post_enum_with_escaped_characters_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_enum_with_escaped_characters_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -172,7 +180,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -200,11 +208,15 @@ class ApiForpost(BaseApi): def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_enum_with_escaped_characters_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post.py index 9a9aca3f6ae..404dc976a8c 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post.py @@ -65,7 +65,7 @@ def _post_enum_with_false_does_not_match0_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -93,11 +93,15 @@ def _post_enum_with_false_does_not_match0_response_body_for_content_types_oapg( def _post_enum_with_false_does_not_match0_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,7 +148,7 @@ def post_enum_with_false_does_not_match0_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -172,11 +176,15 @@ def post_enum_with_false_does_not_match0_response_body_for_content_types( def post_enum_with_false_does_not_match0_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_enum_with_false_does_not_match0_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -195,7 +203,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -223,11 +231,15 @@ def post( def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_enum_with_false_does_not_match0_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post.pyi index ec615db1020..221f35e425f 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post.pyi @@ -42,7 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -70,11 +70,15 @@ class BaseApi(api_client.Api): def _post_enum_with_false_does_not_match0_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,7 +125,7 @@ class PostEnumWithFalseDoesNotMatch0ResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -149,11 +153,15 @@ class PostEnumWithFalseDoesNotMatch0ResponseBodyForContentTypes(BaseApi): def post_enum_with_false_does_not_match0_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_enum_with_false_does_not_match0_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -172,7 +180,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -200,11 +208,15 @@ class ApiForpost(BaseApi): def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_enum_with_false_does_not_match0_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post.py index ec0f4335a5b..383ffc861f4 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post.py @@ -65,7 +65,7 @@ def _post_enum_with_true_does_not_match1_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -93,11 +93,15 @@ def _post_enum_with_true_does_not_match1_response_body_for_content_types_oapg( def _post_enum_with_true_does_not_match1_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,7 +148,7 @@ def post_enum_with_true_does_not_match1_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -172,11 +176,15 @@ def post_enum_with_true_does_not_match1_response_body_for_content_types( def post_enum_with_true_does_not_match1_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_enum_with_true_does_not_match1_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -195,7 +203,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -223,11 +231,15 @@ def post( def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_enum_with_true_does_not_match1_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post.pyi index 52b3becb76e..87a37e4b716 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post.pyi @@ -42,7 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -70,11 +70,15 @@ class BaseApi(api_client.Api): def _post_enum_with_true_does_not_match1_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,7 +125,7 @@ class PostEnumWithTrueDoesNotMatch1ResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -149,11 +153,15 @@ class PostEnumWithTrueDoesNotMatch1ResponseBodyForContentTypes(BaseApi): def post_enum_with_true_does_not_match1_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_enum_with_true_does_not_match1_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -172,7 +180,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -200,11 +208,15 @@ class ApiForpost(BaseApi): def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_enum_with_true_does_not_match1_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enums_in_properties_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enums_in_properties_response_body_for_content_types/post.py index 41a60df48af..66e3879c976 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enums_in_properties_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enums_in_properties_response_body_for_content_types/post.py @@ -65,7 +65,7 @@ def _post_enums_in_properties_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -93,11 +93,15 @@ def _post_enums_in_properties_response_body_for_content_types_oapg( def _post_enums_in_properties_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,7 +148,7 @@ def post_enums_in_properties_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -172,11 +176,15 @@ def post_enums_in_properties_response_body_for_content_types( def post_enums_in_properties_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_enums_in_properties_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -195,7 +203,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -223,11 +231,15 @@ def post( def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_enums_in_properties_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enums_in_properties_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enums_in_properties_response_body_for_content_types/post.pyi index 8657c1bc26c..76d53a7c5dd 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enums_in_properties_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_enums_in_properties_response_body_for_content_types/post.pyi @@ -42,7 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -70,11 +70,15 @@ class BaseApi(api_client.Api): def _post_enums_in_properties_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,7 +125,7 @@ class PostEnumsInPropertiesResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -149,11 +153,15 @@ class PostEnumsInPropertiesResponseBodyForContentTypes(BaseApi): def post_enums_in_properties_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_enums_in_properties_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -172,7 +180,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -200,11 +208,15 @@ class ApiForpost(BaseApi): def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_enums_in_properties_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_forbidden_property_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_forbidden_property_response_body_for_content_types/post.py index ca7029d85bb..c508c5d1917 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_forbidden_property_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_forbidden_property_response_body_for_content_types/post.py @@ -65,7 +65,7 @@ def _post_forbidden_property_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -93,11 +93,15 @@ def _post_forbidden_property_response_body_for_content_types_oapg( def _post_forbidden_property_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,7 +148,7 @@ def post_forbidden_property_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -172,11 +176,15 @@ def post_forbidden_property_response_body_for_content_types( def post_forbidden_property_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_forbidden_property_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -195,7 +203,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -223,11 +231,15 @@ def post( def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_forbidden_property_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_forbidden_property_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_forbidden_property_response_body_for_content_types/post.pyi index 7d5b23ccc10..43d98ca93e1 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_forbidden_property_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_forbidden_property_response_body_for_content_types/post.pyi @@ -42,7 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -70,11 +70,15 @@ class BaseApi(api_client.Api): def _post_forbidden_property_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,7 +125,7 @@ class PostForbiddenPropertyResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -149,11 +153,15 @@ class PostForbiddenPropertyResponseBodyForContentTypes(BaseApi): def post_forbidden_property_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_forbidden_property_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -172,7 +180,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -200,11 +208,15 @@ class ApiForpost(BaseApi): def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_forbidden_property_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_hostname_format_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_hostname_format_response_body_for_content_types/post.py index 8de2de2ba8e..1dc4447b107 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_hostname_format_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_hostname_format_response_body_for_content_types/post.py @@ -85,7 +85,7 @@ def _post_hostname_format_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -113,11 +113,15 @@ def _post_hostname_format_response_body_for_content_types_oapg( def _post_hostname_format_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -164,7 +168,7 @@ def post_hostname_format_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -192,11 +196,15 @@ def post_hostname_format_response_body_for_content_types( def post_hostname_format_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_hostname_format_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -215,7 +223,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -243,11 +251,15 @@ def post( def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_hostname_format_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_hostname_format_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_hostname_format_response_body_for_content_types/post.pyi index 23d97712eab..fcb2ee8f84d 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_hostname_format_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_hostname_format_response_body_for_content_types/post.pyi @@ -62,7 +62,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -90,11 +90,15 @@ class BaseApi(api_client.Api): def _post_hostname_format_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -141,7 +145,7 @@ class PostHostnameFormatResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -169,11 +173,15 @@ class PostHostnameFormatResponseBodyForContentTypes(BaseApi): def post_hostname_format_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_hostname_format_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -192,7 +200,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -220,11 +228,15 @@ class ApiForpost(BaseApi): def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_hostname_format_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post.py index 0f48a370a3e..64c7e0d1026 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post.py @@ -63,7 +63,7 @@ def _post_integer_type_matches_integers_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -91,11 +91,15 @@ def _post_integer_type_matches_integers_response_body_for_content_types_oapg( def _post_integer_type_matches_integers_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -142,7 +146,7 @@ def post_integer_type_matches_integers_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -170,11 +174,15 @@ def post_integer_type_matches_integers_response_body_for_content_types( def post_integer_type_matches_integers_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_integer_type_matches_integers_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -193,7 +201,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -221,11 +229,15 @@ def post( def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_integer_type_matches_integers_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post.pyi index 43cfa45410a..7b099fa47db 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_integer_type_matches_integers_response_body_for_content_types/post.pyi @@ -40,7 +40,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -68,11 +68,15 @@ class BaseApi(api_client.Api): def _post_integer_type_matches_integers_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -119,7 +123,7 @@ class PostIntegerTypeMatchesIntegersResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -147,11 +151,15 @@ class PostIntegerTypeMatchesIntegersResponseBodyForContentTypes(BaseApi): def post_integer_type_matches_integers_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_integer_type_matches_integers_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -170,7 +178,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -198,11 +206,15 @@ class ApiForpost(BaseApi): def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_integer_type_matches_integers_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types/post.py index 19e1a7b5b6c..ad1bcad7e9f 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types/post.py @@ -65,7 +65,7 @@ def _post_invalid_instance_should_not_raise_error_when_float_division_inf_respon stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -93,11 +93,15 @@ def _post_invalid_instance_should_not_raise_error_when_float_division_inf_respon def _post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,7 +148,7 @@ def post_invalid_instance_should_not_raise_error_when_float_division_inf_respons stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -172,11 +176,15 @@ def post_invalid_instance_should_not_raise_error_when_float_division_inf_respons def post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -195,7 +203,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -223,11 +231,15 @@ def post( def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types/post.pyi index 73a9271f8fd..bd2685dfda3 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types/post.pyi @@ -42,7 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -70,11 +70,15 @@ class BaseApi(api_client.Api): def _post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,7 +125,7 @@ class PostInvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInfResponseBodyForC stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -149,11 +153,15 @@ class PostInvalidInstanceShouldNotRaiseErrorWhenFloatDivisionInfResponseBodyForC def post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -172,7 +180,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -200,11 +208,15 @@ class ApiForpost(BaseApi): def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_invalid_string_value_for_default_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_invalid_string_value_for_default_response_body_for_content_types/post.py index 9192cb87527..603ebb1e4ad 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_invalid_string_value_for_default_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_invalid_string_value_for_default_response_body_for_content_types/post.py @@ -65,7 +65,7 @@ def _post_invalid_string_value_for_default_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -93,11 +93,15 @@ def _post_invalid_string_value_for_default_response_body_for_content_types_oapg( def _post_invalid_string_value_for_default_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,7 +148,7 @@ def post_invalid_string_value_for_default_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -172,11 +176,15 @@ def post_invalid_string_value_for_default_response_body_for_content_types( def post_invalid_string_value_for_default_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_invalid_string_value_for_default_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -195,7 +203,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -223,11 +231,15 @@ def post( def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_invalid_string_value_for_default_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_invalid_string_value_for_default_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_invalid_string_value_for_default_response_body_for_content_types/post.pyi index bc895db4859..f8a87064030 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_invalid_string_value_for_default_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_invalid_string_value_for_default_response_body_for_content_types/post.pyi @@ -42,7 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -70,11 +70,15 @@ class BaseApi(api_client.Api): def _post_invalid_string_value_for_default_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,7 +125,7 @@ class PostInvalidStringValueForDefaultResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -149,11 +153,15 @@ class PostInvalidStringValueForDefaultResponseBodyForContentTypes(BaseApi): def post_invalid_string_value_for_default_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_invalid_string_value_for_default_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -172,7 +180,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -200,11 +208,15 @@ class ApiForpost(BaseApi): def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_invalid_string_value_for_default_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ipv4_format_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ipv4_format_response_body_for_content_types/post.py index 2c78693fde4..a86b59bd751 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ipv4_format_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ipv4_format_response_body_for_content_types/post.py @@ -85,7 +85,7 @@ def _post_ipv4_format_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -113,11 +113,15 @@ def _post_ipv4_format_response_body_for_content_types_oapg( def _post_ipv4_format_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -164,7 +168,7 @@ def post_ipv4_format_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -192,11 +196,15 @@ def post_ipv4_format_response_body_for_content_types( def post_ipv4_format_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_ipv4_format_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -215,7 +223,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -243,11 +251,15 @@ def post( def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_ipv4_format_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ipv4_format_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ipv4_format_response_body_for_content_types/post.pyi index 39e947d8db5..4c1113dc431 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ipv4_format_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ipv4_format_response_body_for_content_types/post.pyi @@ -62,7 +62,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -90,11 +90,15 @@ class BaseApi(api_client.Api): def _post_ipv4_format_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -141,7 +145,7 @@ class PostIpv4FormatResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -169,11 +173,15 @@ class PostIpv4FormatResponseBodyForContentTypes(BaseApi): def post_ipv4_format_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_ipv4_format_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -192,7 +200,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -220,11 +228,15 @@ class ApiForpost(BaseApi): def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_ipv4_format_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ipv6_format_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ipv6_format_response_body_for_content_types/post.py index 71b4d4767fd..e9deabfdf77 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ipv6_format_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ipv6_format_response_body_for_content_types/post.py @@ -85,7 +85,7 @@ def _post_ipv6_format_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -113,11 +113,15 @@ def _post_ipv6_format_response_body_for_content_types_oapg( def _post_ipv6_format_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -164,7 +168,7 @@ def post_ipv6_format_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -192,11 +196,15 @@ def post_ipv6_format_response_body_for_content_types( def post_ipv6_format_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_ipv6_format_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -215,7 +223,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -243,11 +251,15 @@ def post( def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_ipv6_format_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ipv6_format_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ipv6_format_response_body_for_content_types/post.pyi index ae33c6e0baf..92e9df85a55 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ipv6_format_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ipv6_format_response_body_for_content_types/post.pyi @@ -62,7 +62,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -90,11 +90,15 @@ class BaseApi(api_client.Api): def _post_ipv6_format_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -141,7 +145,7 @@ class PostIpv6FormatResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -169,11 +173,15 @@ class PostIpv6FormatResponseBodyForContentTypes(BaseApi): def post_ipv6_format_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_ipv6_format_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -192,7 +200,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -220,11 +228,15 @@ class ApiForpost(BaseApi): def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_ipv6_format_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_json_pointer_format_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_json_pointer_format_response_body_for_content_types/post.py index 11820d96885..20f737da2f7 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_json_pointer_format_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_json_pointer_format_response_body_for_content_types/post.py @@ -85,7 +85,7 @@ def _post_json_pointer_format_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -113,11 +113,15 @@ def _post_json_pointer_format_response_body_for_content_types_oapg( def _post_json_pointer_format_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -164,7 +168,7 @@ def post_json_pointer_format_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -192,11 +196,15 @@ def post_json_pointer_format_response_body_for_content_types( def post_json_pointer_format_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_json_pointer_format_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -215,7 +223,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -243,11 +251,15 @@ def post( def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_json_pointer_format_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_json_pointer_format_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_json_pointer_format_response_body_for_content_types/post.pyi index 769a6b205f4..456df5b6b7d 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_json_pointer_format_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_json_pointer_format_response_body_for_content_types/post.pyi @@ -62,7 +62,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -90,11 +90,15 @@ class BaseApi(api_client.Api): def _post_json_pointer_format_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -141,7 +145,7 @@ class PostJsonPointerFormatResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -169,11 +173,15 @@ class PostJsonPointerFormatResponseBodyForContentTypes(BaseApi): def post_json_pointer_format_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_json_pointer_format_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -192,7 +200,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -220,11 +228,15 @@ class ApiForpost(BaseApi): def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_json_pointer_format_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maximum_validation_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maximum_validation_response_body_for_content_types/post.py index a97b1d2e379..7a2b41e9a06 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maximum_validation_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maximum_validation_response_body_for_content_types/post.py @@ -65,7 +65,7 @@ def _post_maximum_validation_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -93,11 +93,15 @@ def _post_maximum_validation_response_body_for_content_types_oapg( def _post_maximum_validation_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,7 +148,7 @@ def post_maximum_validation_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -172,11 +176,15 @@ def post_maximum_validation_response_body_for_content_types( def post_maximum_validation_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_maximum_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -195,7 +203,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -223,11 +231,15 @@ def post( def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_maximum_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maximum_validation_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maximum_validation_response_body_for_content_types/post.pyi index 791d907ba24..ae35d17df62 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maximum_validation_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maximum_validation_response_body_for_content_types/post.pyi @@ -42,7 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -70,11 +70,15 @@ class BaseApi(api_client.Api): def _post_maximum_validation_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,7 +125,7 @@ class PostMaximumValidationResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -149,11 +153,15 @@ class PostMaximumValidationResponseBodyForContentTypes(BaseApi): def post_maximum_validation_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_maximum_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -172,7 +180,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -200,11 +208,15 @@ class ApiForpost(BaseApi): def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_maximum_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post.py index cb8aa3746bb..1a622cea148 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post.py @@ -65,7 +65,7 @@ def _post_maximum_validation_with_unsigned_integer_response_body_for_content_typ stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -93,11 +93,15 @@ def _post_maximum_validation_with_unsigned_integer_response_body_for_content_typ def _post_maximum_validation_with_unsigned_integer_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,7 +148,7 @@ def post_maximum_validation_with_unsigned_integer_response_body_for_content_type stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -172,11 +176,15 @@ def post_maximum_validation_with_unsigned_integer_response_body_for_content_type def post_maximum_validation_with_unsigned_integer_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_maximum_validation_with_unsigned_integer_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -195,7 +203,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -223,11 +231,15 @@ def post( def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_maximum_validation_with_unsigned_integer_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post.pyi index 01450c9b044..4a1b43696a0 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post.pyi @@ -42,7 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -70,11 +70,15 @@ class BaseApi(api_client.Api): def _post_maximum_validation_with_unsigned_integer_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,7 +125,7 @@ class PostMaximumValidationWithUnsignedIntegerResponseBodyForContentTypes(BaseAp stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -149,11 +153,15 @@ class PostMaximumValidationWithUnsignedIntegerResponseBodyForContentTypes(BaseAp def post_maximum_validation_with_unsigned_integer_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_maximum_validation_with_unsigned_integer_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -172,7 +180,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -200,11 +208,15 @@ class ApiForpost(BaseApi): def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_maximum_validation_with_unsigned_integer_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxitems_validation_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxitems_validation_response_body_for_content_types/post.py index b949d4c319c..d926294cac0 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxitems_validation_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxitems_validation_response_body_for_content_types/post.py @@ -65,7 +65,7 @@ def _post_maxitems_validation_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -93,11 +93,15 @@ def _post_maxitems_validation_response_body_for_content_types_oapg( def _post_maxitems_validation_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,7 +148,7 @@ def post_maxitems_validation_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -172,11 +176,15 @@ def post_maxitems_validation_response_body_for_content_types( def post_maxitems_validation_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_maxitems_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -195,7 +203,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -223,11 +231,15 @@ def post( def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_maxitems_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxitems_validation_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxitems_validation_response_body_for_content_types/post.pyi index ede24efee81..c4f7b4ae064 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxitems_validation_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxitems_validation_response_body_for_content_types/post.pyi @@ -42,7 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -70,11 +70,15 @@ class BaseApi(api_client.Api): def _post_maxitems_validation_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,7 +125,7 @@ class PostMaxitemsValidationResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -149,11 +153,15 @@ class PostMaxitemsValidationResponseBodyForContentTypes(BaseApi): def post_maxitems_validation_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_maxitems_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -172,7 +180,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -200,11 +208,15 @@ class ApiForpost(BaseApi): def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_maxitems_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxlength_validation_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxlength_validation_response_body_for_content_types/post.py index 8c17d4945d3..55d9c2d7561 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxlength_validation_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxlength_validation_response_body_for_content_types/post.py @@ -65,7 +65,7 @@ def _post_maxlength_validation_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -93,11 +93,15 @@ def _post_maxlength_validation_response_body_for_content_types_oapg( def _post_maxlength_validation_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,7 +148,7 @@ def post_maxlength_validation_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -172,11 +176,15 @@ def post_maxlength_validation_response_body_for_content_types( def post_maxlength_validation_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_maxlength_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -195,7 +203,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -223,11 +231,15 @@ def post( def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_maxlength_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxlength_validation_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxlength_validation_response_body_for_content_types/post.pyi index cad9d319a81..eb8d213d1cb 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxlength_validation_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxlength_validation_response_body_for_content_types/post.pyi @@ -42,7 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -70,11 +70,15 @@ class BaseApi(api_client.Api): def _post_maxlength_validation_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,7 +125,7 @@ class PostMaxlengthValidationResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -149,11 +153,15 @@ class PostMaxlengthValidationResponseBodyForContentTypes(BaseApi): def post_maxlength_validation_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_maxlength_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -172,7 +180,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -200,11 +208,15 @@ class ApiForpost(BaseApi): def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_maxlength_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post.py index 2b96dfbca0b..474913ade99 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post.py @@ -65,7 +65,7 @@ def _post_maxproperties0_means_the_object_is_empty_response_body_for_content_typ stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -93,11 +93,15 @@ def _post_maxproperties0_means_the_object_is_empty_response_body_for_content_typ def _post_maxproperties0_means_the_object_is_empty_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,7 +148,7 @@ def post_maxproperties0_means_the_object_is_empty_response_body_for_content_type stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -172,11 +176,15 @@ def post_maxproperties0_means_the_object_is_empty_response_body_for_content_type def post_maxproperties0_means_the_object_is_empty_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_maxproperties0_means_the_object_is_empty_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -195,7 +203,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -223,11 +231,15 @@ def post( def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_maxproperties0_means_the_object_is_empty_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post.pyi index b702999019d..0288531c7dc 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post.pyi @@ -42,7 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -70,11 +70,15 @@ class BaseApi(api_client.Api): def _post_maxproperties0_means_the_object_is_empty_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,7 +125,7 @@ class PostMaxproperties0MeansTheObjectIsEmptyResponseBodyForContentTypes(BaseApi stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -149,11 +153,15 @@ class PostMaxproperties0MeansTheObjectIsEmptyResponseBodyForContentTypes(BaseApi def post_maxproperties0_means_the_object_is_empty_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_maxproperties0_means_the_object_is_empty_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -172,7 +180,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -200,11 +208,15 @@ class ApiForpost(BaseApi): def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_maxproperties0_means_the_object_is_empty_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post.py index 712c621f579..a29e512ff97 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post.py @@ -65,7 +65,7 @@ def _post_maxproperties_validation_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -93,11 +93,15 @@ def _post_maxproperties_validation_response_body_for_content_types_oapg( def _post_maxproperties_validation_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,7 +148,7 @@ def post_maxproperties_validation_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -172,11 +176,15 @@ def post_maxproperties_validation_response_body_for_content_types( def post_maxproperties_validation_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_maxproperties_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -195,7 +203,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -223,11 +231,15 @@ def post( def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_maxproperties_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post.pyi index 72d5c17df25..229c57eb490 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_maxproperties_validation_response_body_for_content_types/post.pyi @@ -42,7 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -70,11 +70,15 @@ class BaseApi(api_client.Api): def _post_maxproperties_validation_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,7 +125,7 @@ class PostMaxpropertiesValidationResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -149,11 +153,15 @@ class PostMaxpropertiesValidationResponseBodyForContentTypes(BaseApi): def post_maxproperties_validation_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_maxproperties_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -172,7 +180,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -200,11 +208,15 @@ class ApiForpost(BaseApi): def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_maxproperties_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minimum_validation_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minimum_validation_response_body_for_content_types/post.py index a78d0777b23..3d4afee4a9a 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minimum_validation_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minimum_validation_response_body_for_content_types/post.py @@ -65,7 +65,7 @@ def _post_minimum_validation_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -93,11 +93,15 @@ def _post_minimum_validation_response_body_for_content_types_oapg( def _post_minimum_validation_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,7 +148,7 @@ def post_minimum_validation_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -172,11 +176,15 @@ def post_minimum_validation_response_body_for_content_types( def post_minimum_validation_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_minimum_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -195,7 +203,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -223,11 +231,15 @@ def post( def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_minimum_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minimum_validation_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minimum_validation_response_body_for_content_types/post.pyi index d0adfce0659..4a2ec3e8d83 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minimum_validation_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minimum_validation_response_body_for_content_types/post.pyi @@ -42,7 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -70,11 +70,15 @@ class BaseApi(api_client.Api): def _post_minimum_validation_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,7 +125,7 @@ class PostMinimumValidationResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -149,11 +153,15 @@ class PostMinimumValidationResponseBodyForContentTypes(BaseApi): def post_minimum_validation_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_minimum_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -172,7 +180,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -200,11 +208,15 @@ class ApiForpost(BaseApi): def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_minimum_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post.py index 0c60c37d234..4636ac6d9fb 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post.py @@ -65,7 +65,7 @@ def _post_minimum_validation_with_signed_integer_response_body_for_content_types stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -93,11 +93,15 @@ def _post_minimum_validation_with_signed_integer_response_body_for_content_types def _post_minimum_validation_with_signed_integer_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,7 +148,7 @@ def post_minimum_validation_with_signed_integer_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -172,11 +176,15 @@ def post_minimum_validation_with_signed_integer_response_body_for_content_types( def post_minimum_validation_with_signed_integer_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_minimum_validation_with_signed_integer_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -195,7 +203,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -223,11 +231,15 @@ def post( def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_minimum_validation_with_signed_integer_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post.pyi index 2a40ce3df34..be5066d9bf6 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post.pyi @@ -42,7 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -70,11 +70,15 @@ class BaseApi(api_client.Api): def _post_minimum_validation_with_signed_integer_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,7 +125,7 @@ class PostMinimumValidationWithSignedIntegerResponseBodyForContentTypes(BaseApi) stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -149,11 +153,15 @@ class PostMinimumValidationWithSignedIntegerResponseBodyForContentTypes(BaseApi) def post_minimum_validation_with_signed_integer_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_minimum_validation_with_signed_integer_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -172,7 +180,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -200,11 +208,15 @@ class ApiForpost(BaseApi): def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_minimum_validation_with_signed_integer_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minitems_validation_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minitems_validation_response_body_for_content_types/post.py index a0e4d054b41..bba1da0324c 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minitems_validation_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minitems_validation_response_body_for_content_types/post.py @@ -65,7 +65,7 @@ def _post_minitems_validation_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -93,11 +93,15 @@ def _post_minitems_validation_response_body_for_content_types_oapg( def _post_minitems_validation_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,7 +148,7 @@ def post_minitems_validation_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -172,11 +176,15 @@ def post_minitems_validation_response_body_for_content_types( def post_minitems_validation_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_minitems_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -195,7 +203,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -223,11 +231,15 @@ def post( def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_minitems_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minitems_validation_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minitems_validation_response_body_for_content_types/post.pyi index 41b4f620d36..1ce5ef50280 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minitems_validation_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minitems_validation_response_body_for_content_types/post.pyi @@ -42,7 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -70,11 +70,15 @@ class BaseApi(api_client.Api): def _post_minitems_validation_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,7 +125,7 @@ class PostMinitemsValidationResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -149,11 +153,15 @@ class PostMinitemsValidationResponseBodyForContentTypes(BaseApi): def post_minitems_validation_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_minitems_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -172,7 +180,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -200,11 +208,15 @@ class ApiForpost(BaseApi): def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_minitems_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minlength_validation_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minlength_validation_response_body_for_content_types/post.py index 891540e636d..35e4c90493a 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minlength_validation_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minlength_validation_response_body_for_content_types/post.py @@ -65,7 +65,7 @@ def _post_minlength_validation_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -93,11 +93,15 @@ def _post_minlength_validation_response_body_for_content_types_oapg( def _post_minlength_validation_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,7 +148,7 @@ def post_minlength_validation_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -172,11 +176,15 @@ def post_minlength_validation_response_body_for_content_types( def post_minlength_validation_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_minlength_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -195,7 +203,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -223,11 +231,15 @@ def post( def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_minlength_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minlength_validation_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minlength_validation_response_body_for_content_types/post.pyi index 860b537063d..553284cae17 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minlength_validation_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minlength_validation_response_body_for_content_types/post.pyi @@ -42,7 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -70,11 +70,15 @@ class BaseApi(api_client.Api): def _post_minlength_validation_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,7 +125,7 @@ class PostMinlengthValidationResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -149,11 +153,15 @@ class PostMinlengthValidationResponseBodyForContentTypes(BaseApi): def post_minlength_validation_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_minlength_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -172,7 +180,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -200,11 +208,15 @@ class ApiForpost(BaseApi): def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_minlength_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minproperties_validation_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minproperties_validation_response_body_for_content_types/post.py index 81cea8035ae..9c940301206 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minproperties_validation_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minproperties_validation_response_body_for_content_types/post.py @@ -65,7 +65,7 @@ def _post_minproperties_validation_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -93,11 +93,15 @@ def _post_minproperties_validation_response_body_for_content_types_oapg( def _post_minproperties_validation_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,7 +148,7 @@ def post_minproperties_validation_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -172,11 +176,15 @@ def post_minproperties_validation_response_body_for_content_types( def post_minproperties_validation_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_minproperties_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -195,7 +203,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -223,11 +231,15 @@ def post( def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_minproperties_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minproperties_validation_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minproperties_validation_response_body_for_content_types/post.pyi index bb2a706ef89..8e1f01edf9e 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minproperties_validation_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_minproperties_validation_response_body_for_content_types/post.pyi @@ -42,7 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -70,11 +70,15 @@ class BaseApi(api_client.Api): def _post_minproperties_validation_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,7 +125,7 @@ class PostMinpropertiesValidationResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -149,11 +153,15 @@ class PostMinpropertiesValidationResponseBodyForContentTypes(BaseApi): def post_minproperties_validation_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_minproperties_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -172,7 +180,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -200,11 +208,15 @@ class ApiForpost(BaseApi): def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_minproperties_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post.py index 4375e5d3aa3..e3ef5b55765 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post.py @@ -65,7 +65,7 @@ def _post_nested_allof_to_check_validation_semantics_response_body_for_content_t stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -93,11 +93,15 @@ def _post_nested_allof_to_check_validation_semantics_response_body_for_content_t def _post_nested_allof_to_check_validation_semantics_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,7 +148,7 @@ def post_nested_allof_to_check_validation_semantics_response_body_for_content_ty stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -172,11 +176,15 @@ def post_nested_allof_to_check_validation_semantics_response_body_for_content_ty def post_nested_allof_to_check_validation_semantics_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_nested_allof_to_check_validation_semantics_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -195,7 +203,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -223,11 +231,15 @@ def post( def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_nested_allof_to_check_validation_semantics_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post.pyi index de891125da4..fa9d6251fee 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post.pyi @@ -42,7 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -70,11 +70,15 @@ class BaseApi(api_client.Api): def _post_nested_allof_to_check_validation_semantics_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,7 +125,7 @@ class PostNestedAllofToCheckValidationSemanticsResponseBodyForContentTypes(BaseA stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -149,11 +153,15 @@ class PostNestedAllofToCheckValidationSemanticsResponseBodyForContentTypes(BaseA def post_nested_allof_to_check_validation_semantics_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_nested_allof_to_check_validation_semantics_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -172,7 +180,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -200,11 +208,15 @@ class ApiForpost(BaseApi): def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_nested_allof_to_check_validation_semantics_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post.py index ffd92406daf..51348d3e69a 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post.py @@ -65,7 +65,7 @@ def _post_nested_anyof_to_check_validation_semantics_response_body_for_content_t stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -93,11 +93,15 @@ def _post_nested_anyof_to_check_validation_semantics_response_body_for_content_t def _post_nested_anyof_to_check_validation_semantics_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,7 +148,7 @@ def post_nested_anyof_to_check_validation_semantics_response_body_for_content_ty stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -172,11 +176,15 @@ def post_nested_anyof_to_check_validation_semantics_response_body_for_content_ty def post_nested_anyof_to_check_validation_semantics_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_nested_anyof_to_check_validation_semantics_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -195,7 +203,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -223,11 +231,15 @@ def post( def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_nested_anyof_to_check_validation_semantics_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post.pyi index e7737f40ba0..2df89f4201a 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post.pyi @@ -42,7 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -70,11 +70,15 @@ class BaseApi(api_client.Api): def _post_nested_anyof_to_check_validation_semantics_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,7 +125,7 @@ class PostNestedAnyofToCheckValidationSemanticsResponseBodyForContentTypes(BaseA stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -149,11 +153,15 @@ class PostNestedAnyofToCheckValidationSemanticsResponseBodyForContentTypes(BaseA def post_nested_anyof_to_check_validation_semantics_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_nested_anyof_to_check_validation_semantics_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -172,7 +180,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -200,11 +208,15 @@ class ApiForpost(BaseApi): def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_nested_anyof_to_check_validation_semantics_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_items_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_items_response_body_for_content_types/post.py index d25fec727a7..387b471e433 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_items_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_items_response_body_for_content_types/post.py @@ -65,7 +65,7 @@ def _post_nested_items_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -93,11 +93,15 @@ def _post_nested_items_response_body_for_content_types_oapg( def _post_nested_items_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,7 +148,7 @@ def post_nested_items_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -172,11 +176,15 @@ def post_nested_items_response_body_for_content_types( def post_nested_items_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_nested_items_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -195,7 +203,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -223,11 +231,15 @@ def post( def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_nested_items_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_items_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_items_response_body_for_content_types/post.pyi index b74843b749c..eb1c51a3735 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_items_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_items_response_body_for_content_types/post.pyi @@ -42,7 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -70,11 +70,15 @@ class BaseApi(api_client.Api): def _post_nested_items_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,7 +125,7 @@ class PostNestedItemsResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -149,11 +153,15 @@ class PostNestedItemsResponseBodyForContentTypes(BaseApi): def post_nested_items_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_nested_items_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -172,7 +180,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -200,11 +208,15 @@ class ApiForpost(BaseApi): def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_nested_items_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post.py index 2580a622844..1cc957ff963 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post.py @@ -65,7 +65,7 @@ def _post_nested_oneof_to_check_validation_semantics_response_body_for_content_t stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -93,11 +93,15 @@ def _post_nested_oneof_to_check_validation_semantics_response_body_for_content_t def _post_nested_oneof_to_check_validation_semantics_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,7 +148,7 @@ def post_nested_oneof_to_check_validation_semantics_response_body_for_content_ty stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -172,11 +176,15 @@ def post_nested_oneof_to_check_validation_semantics_response_body_for_content_ty def post_nested_oneof_to_check_validation_semantics_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_nested_oneof_to_check_validation_semantics_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -195,7 +203,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -223,11 +231,15 @@ def post( def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_nested_oneof_to_check_validation_semantics_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post.pyi index 0f20a8943f8..25757244fff 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post.pyi @@ -42,7 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -70,11 +70,15 @@ class BaseApi(api_client.Api): def _post_nested_oneof_to_check_validation_semantics_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,7 +125,7 @@ class PostNestedOneofToCheckValidationSemanticsResponseBodyForContentTypes(BaseA stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -149,11 +153,15 @@ class PostNestedOneofToCheckValidationSemanticsResponseBodyForContentTypes(BaseA def post_nested_oneof_to_check_validation_semantics_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_nested_oneof_to_check_validation_semantics_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -172,7 +180,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -200,11 +208,15 @@ class ApiForpost(BaseApi): def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_nested_oneof_to_check_validation_semantics_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post.py index 4e12e73861b..70c43e63840 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post.py @@ -134,7 +134,7 @@ def _post_not_more_complex_schema_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -162,11 +162,15 @@ def _post_not_more_complex_schema_response_body_for_content_types_oapg( def _post_not_more_complex_schema_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -213,7 +217,7 @@ def post_not_more_complex_schema_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -241,11 +245,15 @@ def post_not_more_complex_schema_response_body_for_content_types( def post_not_more_complex_schema_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_not_more_complex_schema_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -264,7 +272,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -292,11 +300,15 @@ def post( def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_not_more_complex_schema_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post.pyi index 4f386caf31b..53475eefbf5 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post.pyi @@ -111,7 +111,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -139,11 +139,15 @@ class BaseApi(api_client.Api): def _post_not_more_complex_schema_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -190,7 +194,7 @@ class PostNotMoreComplexSchemaResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -218,11 +222,15 @@ class PostNotMoreComplexSchemaResponseBodyForContentTypes(BaseApi): def post_not_more_complex_schema_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_not_more_complex_schema_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -241,7 +249,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -269,11 +277,15 @@ class ApiForpost(BaseApi): def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_not_more_complex_schema_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_not_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_not_response_body_for_content_types/post.py index 5e13a856db2..78ad46a0c00 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_not_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_not_response_body_for_content_types/post.py @@ -85,7 +85,7 @@ def _post_not_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -113,11 +113,15 @@ def _post_not_response_body_for_content_types_oapg( def _post_not_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -164,7 +168,7 @@ def post_not_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -192,11 +196,15 @@ def post_not_response_body_for_content_types( def post_not_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_not_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -215,7 +223,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -243,11 +251,15 @@ def post( def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_not_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_not_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_not_response_body_for_content_types/post.pyi index 47ba312d8dc..f95bf49e5b3 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_not_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_not_response_body_for_content_types/post.pyi @@ -62,7 +62,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -90,11 +90,15 @@ class BaseApi(api_client.Api): def _post_not_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -141,7 +145,7 @@ class PostNotResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -169,11 +173,15 @@ class PostNotResponseBodyForContentTypes(BaseApi): def post_not_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_not_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -192,7 +200,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -220,11 +228,15 @@ class ApiForpost(BaseApi): def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_not_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post.py index eec1c316355..b11153b7e8b 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post.py @@ -65,7 +65,7 @@ def _post_nul_characters_in_strings_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -93,11 +93,15 @@ def _post_nul_characters_in_strings_response_body_for_content_types_oapg( def _post_nul_characters_in_strings_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,7 +148,7 @@ def post_nul_characters_in_strings_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -172,11 +176,15 @@ def post_nul_characters_in_strings_response_body_for_content_types( def post_nul_characters_in_strings_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_nul_characters_in_strings_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -195,7 +203,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -223,11 +231,15 @@ def post( def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_nul_characters_in_strings_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post.pyi index ab45487bfa8..5761b40346a 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nul_characters_in_strings_response_body_for_content_types/post.pyi @@ -42,7 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -70,11 +70,15 @@ class BaseApi(api_client.Api): def _post_nul_characters_in_strings_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,7 +125,7 @@ class PostNulCharactersInStringsResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -149,11 +153,15 @@ class PostNulCharactersInStringsResponseBodyForContentTypes(BaseApi): def post_nul_characters_in_strings_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_nul_characters_in_strings_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -172,7 +180,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -200,11 +208,15 @@ class ApiForpost(BaseApi): def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_nul_characters_in_strings_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post.py index 00a23cdd55a..b11f753fe3f 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post.py @@ -63,7 +63,7 @@ def _post_null_type_matches_only_the_null_object_response_body_for_content_types stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -91,11 +91,15 @@ def _post_null_type_matches_only_the_null_object_response_body_for_content_types def _post_null_type_matches_only_the_null_object_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -142,7 +146,7 @@ def post_null_type_matches_only_the_null_object_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -170,11 +174,15 @@ def post_null_type_matches_only_the_null_object_response_body_for_content_types( def post_null_type_matches_only_the_null_object_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_null_type_matches_only_the_null_object_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -193,7 +201,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -221,11 +229,15 @@ def post( def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_null_type_matches_only_the_null_object_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post.pyi index d7078928fd2..c2fa7c00f9e 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post.pyi @@ -40,7 +40,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -68,11 +68,15 @@ class BaseApi(api_client.Api): def _post_null_type_matches_only_the_null_object_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -119,7 +123,7 @@ class PostNullTypeMatchesOnlyTheNullObjectResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -147,11 +151,15 @@ class PostNullTypeMatchesOnlyTheNullObjectResponseBodyForContentTypes(BaseApi): def post_null_type_matches_only_the_null_object_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_null_type_matches_only_the_null_object_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -170,7 +178,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -198,11 +206,15 @@ class ApiForpost(BaseApi): def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_null_type_matches_only_the_null_object_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post.py index c1269d1755f..b9c1eae1016 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post.py @@ -63,7 +63,7 @@ def _post_number_type_matches_numbers_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -91,11 +91,15 @@ def _post_number_type_matches_numbers_response_body_for_content_types_oapg( def _post_number_type_matches_numbers_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -142,7 +146,7 @@ def post_number_type_matches_numbers_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -170,11 +174,15 @@ def post_number_type_matches_numbers_response_body_for_content_types( def post_number_type_matches_numbers_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_number_type_matches_numbers_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -193,7 +201,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -221,11 +229,15 @@ def post( def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_number_type_matches_numbers_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post.pyi index d31f3cbd8e5..bc041b47f7b 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_number_type_matches_numbers_response_body_for_content_types/post.pyi @@ -40,7 +40,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -68,11 +68,15 @@ class BaseApi(api_client.Api): def _post_number_type_matches_numbers_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -119,7 +123,7 @@ class PostNumberTypeMatchesNumbersResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -147,11 +151,15 @@ class PostNumberTypeMatchesNumbersResponseBodyForContentTypes(BaseApi): def post_number_type_matches_numbers_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_number_type_matches_numbers_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -170,7 +178,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -198,11 +206,15 @@ class ApiForpost(BaseApi): def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_number_type_matches_numbers_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_object_properties_validation_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_object_properties_validation_response_body_for_content_types/post.py index 753a77e103b..1f9dec4833e 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_object_properties_validation_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_object_properties_validation_response_body_for_content_types/post.py @@ -65,7 +65,7 @@ def _post_object_properties_validation_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -93,11 +93,15 @@ def _post_object_properties_validation_response_body_for_content_types_oapg( def _post_object_properties_validation_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,7 +148,7 @@ def post_object_properties_validation_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -172,11 +176,15 @@ def post_object_properties_validation_response_body_for_content_types( def post_object_properties_validation_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_object_properties_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -195,7 +203,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -223,11 +231,15 @@ def post( def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_object_properties_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_object_properties_validation_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_object_properties_validation_response_body_for_content_types/post.pyi index 1fe07a7d369..e6fa58324ea 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_object_properties_validation_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_object_properties_validation_response_body_for_content_types/post.pyi @@ -42,7 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -70,11 +70,15 @@ class BaseApi(api_client.Api): def _post_object_properties_validation_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,7 +125,7 @@ class PostObjectPropertiesValidationResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -149,11 +153,15 @@ class PostObjectPropertiesValidationResponseBodyForContentTypes(BaseApi): def post_object_properties_validation_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_object_properties_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -172,7 +180,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -200,11 +208,15 @@ class ApiForpost(BaseApi): def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_object_properties_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post.py index f4485f270fe..0439c363439 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post.py @@ -63,7 +63,7 @@ def _post_object_type_matches_objects_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -91,11 +91,15 @@ def _post_object_type_matches_objects_response_body_for_content_types_oapg( def _post_object_type_matches_objects_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -142,7 +146,7 @@ def post_object_type_matches_objects_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -170,11 +174,15 @@ def post_object_type_matches_objects_response_body_for_content_types( def post_object_type_matches_objects_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_object_type_matches_objects_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -193,7 +201,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -221,11 +229,15 @@ def post( def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_object_type_matches_objects_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post.pyi index 6883420f23d..e57457b3d0c 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_object_type_matches_objects_response_body_for_content_types/post.pyi @@ -40,7 +40,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -68,11 +68,15 @@ class BaseApi(api_client.Api): def _post_object_type_matches_objects_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -119,7 +123,7 @@ class PostObjectTypeMatchesObjectsResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -147,11 +151,15 @@ class PostObjectTypeMatchesObjectsResponseBodyForContentTypes(BaseApi): def post_object_type_matches_objects_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_object_type_matches_objects_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -170,7 +178,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -198,11 +206,15 @@ class ApiForpost(BaseApi): def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_object_type_matches_objects_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post.py index 9335893477c..1b75e9a2d10 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post.py @@ -65,7 +65,7 @@ def _post_oneof_complex_types_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -93,11 +93,15 @@ def _post_oneof_complex_types_response_body_for_content_types_oapg( def _post_oneof_complex_types_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,7 +148,7 @@ def post_oneof_complex_types_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -172,11 +176,15 @@ def post_oneof_complex_types_response_body_for_content_types( def post_oneof_complex_types_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_oneof_complex_types_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -195,7 +203,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -223,11 +231,15 @@ def post( def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_oneof_complex_types_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post.pyi index e6731da3e90..ee127407ac6 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_complex_types_response_body_for_content_types/post.pyi @@ -42,7 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -70,11 +70,15 @@ class BaseApi(api_client.Api): def _post_oneof_complex_types_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,7 +125,7 @@ class PostOneofComplexTypesResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -149,11 +153,15 @@ class PostOneofComplexTypesResponseBodyForContentTypes(BaseApi): def post_oneof_complex_types_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_oneof_complex_types_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -172,7 +180,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -200,11 +208,15 @@ class ApiForpost(BaseApi): def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_oneof_complex_types_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_response_body_for_content_types/post.py index 18e0dae0900..f304253d7d8 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_response_body_for_content_types/post.py @@ -65,7 +65,7 @@ def _post_oneof_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -93,11 +93,15 @@ def _post_oneof_response_body_for_content_types_oapg( def _post_oneof_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,7 +148,7 @@ def post_oneof_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -172,11 +176,15 @@ def post_oneof_response_body_for_content_types( def post_oneof_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_oneof_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -195,7 +203,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -223,11 +231,15 @@ def post( def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_oneof_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_response_body_for_content_types/post.pyi index def7ebe433d..3d22098194d 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_response_body_for_content_types/post.pyi @@ -42,7 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -70,11 +70,15 @@ class BaseApi(api_client.Api): def _post_oneof_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,7 +125,7 @@ class PostOneofResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -149,11 +153,15 @@ class PostOneofResponseBodyForContentTypes(BaseApi): def post_oneof_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_oneof_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -172,7 +180,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -200,11 +208,15 @@ class ApiForpost(BaseApi): def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_oneof_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post.py index 4c11b7514dd..3e1559e669e 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post.py @@ -65,7 +65,7 @@ def _post_oneof_with_base_schema_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -93,11 +93,15 @@ def _post_oneof_with_base_schema_response_body_for_content_types_oapg( def _post_oneof_with_base_schema_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,7 +148,7 @@ def post_oneof_with_base_schema_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -172,11 +176,15 @@ def post_oneof_with_base_schema_response_body_for_content_types( def post_oneof_with_base_schema_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_oneof_with_base_schema_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -195,7 +203,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -223,11 +231,15 @@ def post( def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_oneof_with_base_schema_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post.pyi index 49a036e39a3..12b3aa3e241 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_with_base_schema_response_body_for_content_types/post.pyi @@ -42,7 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -70,11 +70,15 @@ class BaseApi(api_client.Api): def _post_oneof_with_base_schema_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,7 +125,7 @@ class PostOneofWithBaseSchemaResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -149,11 +153,15 @@ class PostOneofWithBaseSchemaResponseBodyForContentTypes(BaseApi): def post_oneof_with_base_schema_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_oneof_with_base_schema_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -172,7 +180,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -200,11 +208,15 @@ class ApiForpost(BaseApi): def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_oneof_with_base_schema_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post.py index fd2284ce9c6..f0140822fdb 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post.py @@ -65,7 +65,7 @@ def _post_oneof_with_empty_schema_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -93,11 +93,15 @@ def _post_oneof_with_empty_schema_response_body_for_content_types_oapg( def _post_oneof_with_empty_schema_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,7 +148,7 @@ def post_oneof_with_empty_schema_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -172,11 +176,15 @@ def post_oneof_with_empty_schema_response_body_for_content_types( def post_oneof_with_empty_schema_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_oneof_with_empty_schema_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -195,7 +203,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -223,11 +231,15 @@ def post( def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_oneof_with_empty_schema_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post.pyi index 4393113a62d..a90c08c2aa6 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_with_empty_schema_response_body_for_content_types/post.pyi @@ -42,7 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -70,11 +70,15 @@ class BaseApi(api_client.Api): def _post_oneof_with_empty_schema_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,7 +125,7 @@ class PostOneofWithEmptySchemaResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -149,11 +153,15 @@ class PostOneofWithEmptySchemaResponseBodyForContentTypes(BaseApi): def post_oneof_with_empty_schema_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_oneof_with_empty_schema_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -172,7 +180,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -200,11 +208,15 @@ class ApiForpost(BaseApi): def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_oneof_with_empty_schema_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_with_required_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_with_required_response_body_for_content_types/post.py index 19b6a1f135c..cdf1b2b07d4 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_with_required_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_with_required_response_body_for_content_types/post.py @@ -65,7 +65,7 @@ def _post_oneof_with_required_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -93,11 +93,15 @@ def _post_oneof_with_required_response_body_for_content_types_oapg( def _post_oneof_with_required_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,7 +148,7 @@ def post_oneof_with_required_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -172,11 +176,15 @@ def post_oneof_with_required_response_body_for_content_types( def post_oneof_with_required_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_oneof_with_required_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -195,7 +203,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -223,11 +231,15 @@ def post( def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_oneof_with_required_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_with_required_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_with_required_response_body_for_content_types/post.pyi index 45f92e98b21..658698af450 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_with_required_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_with_required_response_body_for_content_types/post.pyi @@ -42,7 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -70,11 +70,15 @@ class BaseApi(api_client.Api): def _post_oneof_with_required_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,7 +125,7 @@ class PostOneofWithRequiredResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -149,11 +153,15 @@ class PostOneofWithRequiredResponseBodyForContentTypes(BaseApi): def post_oneof_with_required_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_oneof_with_required_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -172,7 +180,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -200,11 +208,15 @@ class ApiForpost(BaseApi): def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_oneof_with_required_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post.py index ed8ec528792..3e5382f3e2d 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post.py @@ -65,7 +65,7 @@ def _post_pattern_is_not_anchored_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -93,11 +93,15 @@ def _post_pattern_is_not_anchored_response_body_for_content_types_oapg( def _post_pattern_is_not_anchored_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,7 +148,7 @@ def post_pattern_is_not_anchored_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -172,11 +176,15 @@ def post_pattern_is_not_anchored_response_body_for_content_types( def post_pattern_is_not_anchored_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_pattern_is_not_anchored_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -195,7 +203,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -223,11 +231,15 @@ def post( def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_pattern_is_not_anchored_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post.pyi index 6fbc1c7e60f..7f2d7ffa603 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_pattern_is_not_anchored_response_body_for_content_types/post.pyi @@ -42,7 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -70,11 +70,15 @@ class BaseApi(api_client.Api): def _post_pattern_is_not_anchored_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,7 +125,7 @@ class PostPatternIsNotAnchoredResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -149,11 +153,15 @@ class PostPatternIsNotAnchoredResponseBodyForContentTypes(BaseApi): def post_pattern_is_not_anchored_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_pattern_is_not_anchored_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -172,7 +180,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -200,11 +208,15 @@ class ApiForpost(BaseApi): def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_pattern_is_not_anchored_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_pattern_validation_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_pattern_validation_response_body_for_content_types/post.py index c8e35a1121b..d1261cf76f8 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_pattern_validation_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_pattern_validation_response_body_for_content_types/post.py @@ -65,7 +65,7 @@ def _post_pattern_validation_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -93,11 +93,15 @@ def _post_pattern_validation_response_body_for_content_types_oapg( def _post_pattern_validation_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,7 +148,7 @@ def post_pattern_validation_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -172,11 +176,15 @@ def post_pattern_validation_response_body_for_content_types( def post_pattern_validation_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_pattern_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -195,7 +203,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -223,11 +231,15 @@ def post( def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_pattern_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_pattern_validation_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_pattern_validation_response_body_for_content_types/post.pyi index fa77565fa91..41e3fb096ff 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_pattern_validation_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_pattern_validation_response_body_for_content_types/post.pyi @@ -42,7 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -70,11 +70,15 @@ class BaseApi(api_client.Api): def _post_pattern_validation_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,7 +125,7 @@ class PostPatternValidationResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -149,11 +153,15 @@ class PostPatternValidationResponseBodyForContentTypes(BaseApi): def post_pattern_validation_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_pattern_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -172,7 +180,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -200,11 +208,15 @@ class ApiForpost(BaseApi): def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_pattern_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post.py index d8d85de9c09..7287b97fbac 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post.py @@ -65,7 +65,7 @@ def _post_properties_with_escaped_characters_response_body_for_content_types_oap stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -93,11 +93,15 @@ def _post_properties_with_escaped_characters_response_body_for_content_types_oap def _post_properties_with_escaped_characters_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,7 +148,7 @@ def post_properties_with_escaped_characters_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -172,11 +176,15 @@ def post_properties_with_escaped_characters_response_body_for_content_types( def post_properties_with_escaped_characters_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_properties_with_escaped_characters_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -195,7 +203,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -223,11 +231,15 @@ def post( def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_properties_with_escaped_characters_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post.pyi index 697a90f0f3f..2c7cee7c45e 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_properties_with_escaped_characters_response_body_for_content_types/post.pyi @@ -42,7 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -70,11 +70,15 @@ class BaseApi(api_client.Api): def _post_properties_with_escaped_characters_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,7 +125,7 @@ class PostPropertiesWithEscapedCharactersResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -149,11 +153,15 @@ class PostPropertiesWithEscapedCharactersResponseBodyForContentTypes(BaseApi): def post_properties_with_escaped_characters_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_properties_with_escaped_characters_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -172,7 +180,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -200,11 +208,15 @@ class ApiForpost(BaseApi): def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_properties_with_escaped_characters_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post.py index 5bcde72bfef..aba94ea5df2 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post.py @@ -65,7 +65,7 @@ def _post_property_named_ref_that_is_not_a_reference_response_body_for_content_t stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -93,11 +93,15 @@ def _post_property_named_ref_that_is_not_a_reference_response_body_for_content_t def _post_property_named_ref_that_is_not_a_reference_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,7 +148,7 @@ def post_property_named_ref_that_is_not_a_reference_response_body_for_content_ty stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -172,11 +176,15 @@ def post_property_named_ref_that_is_not_a_reference_response_body_for_content_ty def post_property_named_ref_that_is_not_a_reference_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_property_named_ref_that_is_not_a_reference_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -195,7 +203,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -223,11 +231,15 @@ def post( def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_property_named_ref_that_is_not_a_reference_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post.pyi index 9d258b16401..068b9c1da1e 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post.pyi @@ -42,7 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -70,11 +70,15 @@ class BaseApi(api_client.Api): def _post_property_named_ref_that_is_not_a_reference_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,7 +125,7 @@ class PostPropertyNamedRefThatIsNotAReferenceResponseBodyForContentTypes(BaseApi stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -149,11 +153,15 @@ class PostPropertyNamedRefThatIsNotAReferenceResponseBodyForContentTypes(BaseApi def post_property_named_ref_that_is_not_a_reference_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_property_named_ref_that_is_not_a_reference_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -172,7 +180,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -200,11 +208,15 @@ class ApiForpost(BaseApi): def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_property_named_ref_that_is_not_a_reference_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_additionalproperties_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_additionalproperties_response_body_for_content_types/post.py index a8b9b64a33e..6427e2635a3 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_additionalproperties_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_additionalproperties_response_body_for_content_types/post.py @@ -65,7 +65,7 @@ def _post_ref_in_additionalproperties_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -93,11 +93,15 @@ def _post_ref_in_additionalproperties_response_body_for_content_types_oapg( def _post_ref_in_additionalproperties_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,7 +148,7 @@ def post_ref_in_additionalproperties_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -172,11 +176,15 @@ def post_ref_in_additionalproperties_response_body_for_content_types( def post_ref_in_additionalproperties_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_ref_in_additionalproperties_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -195,7 +203,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -223,11 +231,15 @@ def post( def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_ref_in_additionalproperties_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_additionalproperties_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_additionalproperties_response_body_for_content_types/post.pyi index 65ac38884a6..841019511be 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_additionalproperties_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_additionalproperties_response_body_for_content_types/post.pyi @@ -42,7 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -70,11 +70,15 @@ class BaseApi(api_client.Api): def _post_ref_in_additionalproperties_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,7 +125,7 @@ class PostRefInAdditionalpropertiesResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -149,11 +153,15 @@ class PostRefInAdditionalpropertiesResponseBodyForContentTypes(BaseApi): def post_ref_in_additionalproperties_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_ref_in_additionalproperties_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -172,7 +180,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -200,11 +208,15 @@ class ApiForpost(BaseApi): def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_ref_in_additionalproperties_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_allof_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_allof_response_body_for_content_types/post.py index f910ca309d0..4e70ccc5fd5 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_allof_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_allof_response_body_for_content_types/post.py @@ -65,7 +65,7 @@ def _post_ref_in_allof_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -93,11 +93,15 @@ def _post_ref_in_allof_response_body_for_content_types_oapg( def _post_ref_in_allof_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,7 +148,7 @@ def post_ref_in_allof_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -172,11 +176,15 @@ def post_ref_in_allof_response_body_for_content_types( def post_ref_in_allof_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_ref_in_allof_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -195,7 +203,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -223,11 +231,15 @@ def post( def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_ref_in_allof_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_allof_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_allof_response_body_for_content_types/post.pyi index c7ac8f95b59..4536cdff104 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_allof_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_allof_response_body_for_content_types/post.pyi @@ -42,7 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -70,11 +70,15 @@ class BaseApi(api_client.Api): def _post_ref_in_allof_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,7 +125,7 @@ class PostRefInAllofResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -149,11 +153,15 @@ class PostRefInAllofResponseBodyForContentTypes(BaseApi): def post_ref_in_allof_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_ref_in_allof_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -172,7 +180,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -200,11 +208,15 @@ class ApiForpost(BaseApi): def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_ref_in_allof_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_anyof_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_anyof_response_body_for_content_types/post.py index b629ec62746..f67c543c0d9 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_anyof_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_anyof_response_body_for_content_types/post.py @@ -65,7 +65,7 @@ def _post_ref_in_anyof_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -93,11 +93,15 @@ def _post_ref_in_anyof_response_body_for_content_types_oapg( def _post_ref_in_anyof_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,7 +148,7 @@ def post_ref_in_anyof_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -172,11 +176,15 @@ def post_ref_in_anyof_response_body_for_content_types( def post_ref_in_anyof_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_ref_in_anyof_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -195,7 +203,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -223,11 +231,15 @@ def post( def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_ref_in_anyof_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_anyof_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_anyof_response_body_for_content_types/post.pyi index 078a42199a3..0688bf43812 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_anyof_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_anyof_response_body_for_content_types/post.pyi @@ -42,7 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -70,11 +70,15 @@ class BaseApi(api_client.Api): def _post_ref_in_anyof_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,7 +125,7 @@ class PostRefInAnyofResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -149,11 +153,15 @@ class PostRefInAnyofResponseBodyForContentTypes(BaseApi): def post_ref_in_anyof_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_ref_in_anyof_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -172,7 +180,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -200,11 +208,15 @@ class ApiForpost(BaseApi): def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_ref_in_anyof_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_items_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_items_response_body_for_content_types/post.py index e9d8c8c6f37..09696f52876 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_items_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_items_response_body_for_content_types/post.py @@ -65,7 +65,7 @@ def _post_ref_in_items_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -93,11 +93,15 @@ def _post_ref_in_items_response_body_for_content_types_oapg( def _post_ref_in_items_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,7 +148,7 @@ def post_ref_in_items_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -172,11 +176,15 @@ def post_ref_in_items_response_body_for_content_types( def post_ref_in_items_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_ref_in_items_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -195,7 +203,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -223,11 +231,15 @@ def post( def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_ref_in_items_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_items_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_items_response_body_for_content_types/post.pyi index bafa8139f40..fe9f3cc550e 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_items_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_items_response_body_for_content_types/post.pyi @@ -42,7 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -70,11 +70,15 @@ class BaseApi(api_client.Api): def _post_ref_in_items_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,7 +125,7 @@ class PostRefInItemsResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -149,11 +153,15 @@ class PostRefInItemsResponseBodyForContentTypes(BaseApi): def post_ref_in_items_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_ref_in_items_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -172,7 +180,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -200,11 +208,15 @@ class ApiForpost(BaseApi): def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_ref_in_items_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_not_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_not_response_body_for_content_types/post.py index 37f531106d1..b9b9bf330fe 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_not_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_not_response_body_for_content_types/post.py @@ -90,7 +90,7 @@ def _post_ref_in_not_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -118,11 +118,15 @@ def _post_ref_in_not_response_body_for_content_types_oapg( def _post_ref_in_not_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -169,7 +173,7 @@ def post_ref_in_not_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -197,11 +201,15 @@ def post_ref_in_not_response_body_for_content_types( def post_ref_in_not_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_ref_in_not_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -220,7 +228,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -248,11 +256,15 @@ def post( def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_ref_in_not_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_not_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_not_response_body_for_content_types/post.pyi index 71db8812c2d..cc213ac51ee 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_not_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_not_response_body_for_content_types/post.pyi @@ -67,7 +67,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -95,11 +95,15 @@ class BaseApi(api_client.Api): def _post_ref_in_not_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -146,7 +150,7 @@ class PostRefInNotResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -174,11 +178,15 @@ class PostRefInNotResponseBodyForContentTypes(BaseApi): def post_ref_in_not_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_ref_in_not_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -197,7 +205,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -225,11 +233,15 @@ class ApiForpost(BaseApi): def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_ref_in_not_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_oneof_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_oneof_response_body_for_content_types/post.py index 28382769b6f..f1d2d0f1a1d 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_oneof_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_oneof_response_body_for_content_types/post.py @@ -65,7 +65,7 @@ def _post_ref_in_oneof_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -93,11 +93,15 @@ def _post_ref_in_oneof_response_body_for_content_types_oapg( def _post_ref_in_oneof_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,7 +148,7 @@ def post_ref_in_oneof_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -172,11 +176,15 @@ def post_ref_in_oneof_response_body_for_content_types( def post_ref_in_oneof_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_ref_in_oneof_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -195,7 +203,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -223,11 +231,15 @@ def post( def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_ref_in_oneof_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_oneof_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_oneof_response_body_for_content_types/post.pyi index df42903262a..e32da93c677 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_oneof_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_oneof_response_body_for_content_types/post.pyi @@ -42,7 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -70,11 +70,15 @@ class BaseApi(api_client.Api): def _post_ref_in_oneof_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,7 +125,7 @@ class PostRefInOneofResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -149,11 +153,15 @@ class PostRefInOneofResponseBodyForContentTypes(BaseApi): def post_ref_in_oneof_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_ref_in_oneof_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -172,7 +180,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -200,11 +208,15 @@ class ApiForpost(BaseApi): def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_ref_in_oneof_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_property_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_property_response_body_for_content_types/post.py index fb8ebb434da..3a6963e746b 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_property_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_property_response_body_for_content_types/post.py @@ -65,7 +65,7 @@ def _post_ref_in_property_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -93,11 +93,15 @@ def _post_ref_in_property_response_body_for_content_types_oapg( def _post_ref_in_property_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,7 +148,7 @@ def post_ref_in_property_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -172,11 +176,15 @@ def post_ref_in_property_response_body_for_content_types( def post_ref_in_property_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_ref_in_property_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -195,7 +203,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -223,11 +231,15 @@ def post( def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_ref_in_property_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_property_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_property_response_body_for_content_types/post.pyi index 38a62fa28f7..5020df63036 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_property_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_ref_in_property_response_body_for_content_types/post.pyi @@ -42,7 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -70,11 +70,15 @@ class BaseApi(api_client.Api): def _post_ref_in_property_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,7 +125,7 @@ class PostRefInPropertyResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -149,11 +153,15 @@ class PostRefInPropertyResponseBodyForContentTypes(BaseApi): def post_ref_in_property_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_ref_in_property_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -172,7 +180,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -200,11 +208,15 @@ class ApiForpost(BaseApi): def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_ref_in_property_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_default_validation_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_default_validation_response_body_for_content_types/post.py index 3fc5d9f7fff..83a33b78456 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_default_validation_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_default_validation_response_body_for_content_types/post.py @@ -65,7 +65,7 @@ def _post_required_default_validation_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -93,11 +93,15 @@ def _post_required_default_validation_response_body_for_content_types_oapg( def _post_required_default_validation_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,7 +148,7 @@ def post_required_default_validation_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -172,11 +176,15 @@ def post_required_default_validation_response_body_for_content_types( def post_required_default_validation_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_required_default_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -195,7 +203,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -223,11 +231,15 @@ def post( def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_required_default_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_default_validation_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_default_validation_response_body_for_content_types/post.pyi index 18261ff4bd8..07a76809a7c 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_default_validation_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_default_validation_response_body_for_content_types/post.pyi @@ -42,7 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -70,11 +70,15 @@ class BaseApi(api_client.Api): def _post_required_default_validation_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,7 +125,7 @@ class PostRequiredDefaultValidationResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -149,11 +153,15 @@ class PostRequiredDefaultValidationResponseBodyForContentTypes(BaseApi): def post_required_default_validation_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_required_default_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -172,7 +180,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -200,11 +208,15 @@ class ApiForpost(BaseApi): def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_required_default_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_validation_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_validation_response_body_for_content_types/post.py index 9ea788981d8..f4c5168635b 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_validation_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_validation_response_body_for_content_types/post.py @@ -65,7 +65,7 @@ def _post_required_validation_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -93,11 +93,15 @@ def _post_required_validation_response_body_for_content_types_oapg( def _post_required_validation_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,7 +148,7 @@ def post_required_validation_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -172,11 +176,15 @@ def post_required_validation_response_body_for_content_types( def post_required_validation_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_required_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -195,7 +203,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -223,11 +231,15 @@ def post( def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_required_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_validation_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_validation_response_body_for_content_types/post.pyi index ed771b14161..2585a2d80c2 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_validation_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_validation_response_body_for_content_types/post.pyi @@ -42,7 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -70,11 +70,15 @@ class BaseApi(api_client.Api): def _post_required_validation_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,7 +125,7 @@ class PostRequiredValidationResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -149,11 +153,15 @@ class PostRequiredValidationResponseBodyForContentTypes(BaseApi): def post_required_validation_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_required_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -172,7 +180,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -200,11 +208,15 @@ class ApiForpost(BaseApi): def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_required_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post.py index ecfc89356b9..ed0a87fb58d 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post.py @@ -65,7 +65,7 @@ def _post_required_with_empty_array_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -93,11 +93,15 @@ def _post_required_with_empty_array_response_body_for_content_types_oapg( def _post_required_with_empty_array_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,7 +148,7 @@ def post_required_with_empty_array_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -172,11 +176,15 @@ def post_required_with_empty_array_response_body_for_content_types( def post_required_with_empty_array_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_required_with_empty_array_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -195,7 +203,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -223,11 +231,15 @@ def post( def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_required_with_empty_array_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post.pyi index 2f4fad6ff36..26a452eec65 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_with_empty_array_response_body_for_content_types/post.pyi @@ -42,7 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -70,11 +70,15 @@ class BaseApi(api_client.Api): def _post_required_with_empty_array_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,7 +125,7 @@ class PostRequiredWithEmptyArrayResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -149,11 +153,15 @@ class PostRequiredWithEmptyArrayResponseBodyForContentTypes(BaseApi): def post_required_with_empty_array_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_required_with_empty_array_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -172,7 +180,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -200,11 +208,15 @@ class ApiForpost(BaseApi): def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_required_with_empty_array_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post.py index dbc1e3a4eeb..e2554a6e233 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post.py @@ -93,7 +93,7 @@ def _post_required_with_escaped_characters_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -121,11 +121,15 @@ def _post_required_with_escaped_characters_response_body_for_content_types_oapg( def _post_required_with_escaped_characters_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -172,7 +176,7 @@ def post_required_with_escaped_characters_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -200,11 +204,15 @@ def post_required_with_escaped_characters_response_body_for_content_types( def post_required_with_escaped_characters_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_required_with_escaped_characters_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -223,7 +231,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -251,11 +259,15 @@ def post( def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_required_with_escaped_characters_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post.pyi index 6f884414608..68fd4446022 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_required_with_escaped_characters_response_body_for_content_types/post.pyi @@ -70,7 +70,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -98,11 +98,15 @@ class BaseApi(api_client.Api): def _post_required_with_escaped_characters_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -149,7 +153,7 @@ class PostRequiredWithEscapedCharactersResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -177,11 +181,15 @@ class PostRequiredWithEscapedCharactersResponseBodyForContentTypes(BaseApi): def post_required_with_escaped_characters_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_required_with_escaped_characters_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -200,7 +208,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -228,11 +236,15 @@ class ApiForpost(BaseApi): def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_required_with_escaped_characters_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post.py index 54f1dcd41c2..0206b819b8e 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post.py @@ -65,7 +65,7 @@ def _post_simple_enum_validation_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -93,11 +93,15 @@ def _post_simple_enum_validation_response_body_for_content_types_oapg( def _post_simple_enum_validation_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,7 +148,7 @@ def post_simple_enum_validation_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -172,11 +176,15 @@ def post_simple_enum_validation_response_body_for_content_types( def post_simple_enum_validation_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_simple_enum_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -195,7 +203,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -223,11 +231,15 @@ def post( def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_simple_enum_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post.pyi index e8b1dc64051..1a1de381be4 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_simple_enum_validation_response_body_for_content_types/post.pyi @@ -42,7 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -70,11 +70,15 @@ class BaseApi(api_client.Api): def _post_simple_enum_validation_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,7 +125,7 @@ class PostSimpleEnumValidationResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -149,11 +153,15 @@ class PostSimpleEnumValidationResponseBodyForContentTypes(BaseApi): def post_simple_enum_validation_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_simple_enum_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -172,7 +180,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -200,11 +208,15 @@ class ApiForpost(BaseApi): def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_simple_enum_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post.py index aef271f0d2c..089fe43ed81 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post.py @@ -63,7 +63,7 @@ def _post_string_type_matches_strings_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -91,11 +91,15 @@ def _post_string_type_matches_strings_response_body_for_content_types_oapg( def _post_string_type_matches_strings_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -142,7 +146,7 @@ def post_string_type_matches_strings_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -170,11 +174,15 @@ def post_string_type_matches_strings_response_body_for_content_types( def post_string_type_matches_strings_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_string_type_matches_strings_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -193,7 +201,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -221,11 +229,15 @@ def post( def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_string_type_matches_strings_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post.pyi index 9eb220555a6..16f7e041b25 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_string_type_matches_strings_response_body_for_content_types/post.pyi @@ -40,7 +40,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -68,11 +68,15 @@ class BaseApi(api_client.Api): def _post_string_type_matches_strings_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -119,7 +123,7 @@ class PostStringTypeMatchesStringsResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -147,11 +151,15 @@ class PostStringTypeMatchesStringsResponseBodyForContentTypes(BaseApi): def post_string_type_matches_strings_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_string_type_matches_strings_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -170,7 +178,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -198,11 +206,15 @@ class ApiForpost(BaseApi): def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_string_type_matches_strings_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types/post.py index 9792bbcf8fb..d805dc414e6 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types/post.py @@ -65,7 +65,7 @@ def _post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_re stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -93,11 +93,15 @@ def _post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_re def _post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,7 +148,7 @@ def post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_res stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -172,11 +176,15 @@ def post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_res def post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -195,7 +203,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -223,11 +231,15 @@ def post( def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types/post.pyi index e4e07123be8..646041ce92b 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types/post.pyi @@ -42,7 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -70,11 +70,15 @@ class BaseApi(api_client.Api): def _post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,7 +125,7 @@ class PostTheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissingResponseBodyFo stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -149,11 +153,15 @@ class PostTheDefaultKeywordDoesNotDoAnythingIfThePropertyIsMissingResponseBodyFo def post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -172,7 +180,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -200,11 +208,15 @@ class ApiForpost(BaseApi): def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post.py index b73e05a2ba8..083f2900d11 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post.py @@ -65,7 +65,7 @@ def _post_uniqueitems_false_validation_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -93,11 +93,15 @@ def _post_uniqueitems_false_validation_response_body_for_content_types_oapg( def _post_uniqueitems_false_validation_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,7 +148,7 @@ def post_uniqueitems_false_validation_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -172,11 +176,15 @@ def post_uniqueitems_false_validation_response_body_for_content_types( def post_uniqueitems_false_validation_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_uniqueitems_false_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -195,7 +203,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -223,11 +231,15 @@ def post( def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_uniqueitems_false_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post.pyi index 2de954f4c97..f2ac49f5185 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uniqueitems_false_validation_response_body_for_content_types/post.pyi @@ -42,7 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -70,11 +70,15 @@ class BaseApi(api_client.Api): def _post_uniqueitems_false_validation_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,7 +125,7 @@ class PostUniqueitemsFalseValidationResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -149,11 +153,15 @@ class PostUniqueitemsFalseValidationResponseBodyForContentTypes(BaseApi): def post_uniqueitems_false_validation_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_uniqueitems_false_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -172,7 +180,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -200,11 +208,15 @@ class ApiForpost(BaseApi): def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_uniqueitems_false_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post.py index 10d7f30741b..76ae51d625d 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post.py @@ -65,7 +65,7 @@ def _post_uniqueitems_validation_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -93,11 +93,15 @@ def _post_uniqueitems_validation_response_body_for_content_types_oapg( def _post_uniqueitems_validation_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,7 +148,7 @@ def post_uniqueitems_validation_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -172,11 +176,15 @@ def post_uniqueitems_validation_response_body_for_content_types( def post_uniqueitems_validation_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_uniqueitems_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -195,7 +203,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -223,11 +231,15 @@ def post( def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_uniqueitems_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post.pyi index c768116dfff..5128617a445 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uniqueitems_validation_response_body_for_content_types/post.pyi @@ -42,7 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -70,11 +70,15 @@ class BaseApi(api_client.Api): def _post_uniqueitems_validation_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -121,7 +125,7 @@ class PostUniqueitemsValidationResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -149,11 +153,15 @@ class PostUniqueitemsValidationResponseBodyForContentTypes(BaseApi): def post_uniqueitems_validation_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_uniqueitems_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -172,7 +180,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -200,11 +208,15 @@ class ApiForpost(BaseApi): def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_uniqueitems_validation_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uri_format_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uri_format_response_body_for_content_types/post.py index a97fe35eca8..253bea439d6 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uri_format_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uri_format_response_body_for_content_types/post.py @@ -85,7 +85,7 @@ def _post_uri_format_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -113,11 +113,15 @@ def _post_uri_format_response_body_for_content_types_oapg( def _post_uri_format_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -164,7 +168,7 @@ def post_uri_format_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -192,11 +196,15 @@ def post_uri_format_response_body_for_content_types( def post_uri_format_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_uri_format_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -215,7 +223,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -243,11 +251,15 @@ def post( def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_uri_format_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uri_format_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uri_format_response_body_for_content_types/post.pyi index d8204514454..e2d3633915b 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uri_format_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uri_format_response_body_for_content_types/post.pyi @@ -62,7 +62,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -90,11 +90,15 @@ class BaseApi(api_client.Api): def _post_uri_format_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -141,7 +145,7 @@ class PostUriFormatResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -169,11 +173,15 @@ class PostUriFormatResponseBodyForContentTypes(BaseApi): def post_uri_format_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_uri_format_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -192,7 +200,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -220,11 +228,15 @@ class ApiForpost(BaseApi): def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_uri_format_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uri_reference_format_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uri_reference_format_response_body_for_content_types/post.py index 8365bf07f6b..ff0c98222e0 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uri_reference_format_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uri_reference_format_response_body_for_content_types/post.py @@ -85,7 +85,7 @@ def _post_uri_reference_format_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -113,11 +113,15 @@ def _post_uri_reference_format_response_body_for_content_types_oapg( def _post_uri_reference_format_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -164,7 +168,7 @@ def post_uri_reference_format_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -192,11 +196,15 @@ def post_uri_reference_format_response_body_for_content_types( def post_uri_reference_format_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_uri_reference_format_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -215,7 +223,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -243,11 +251,15 @@ def post( def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_uri_reference_format_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uri_reference_format_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uri_reference_format_response_body_for_content_types/post.pyi index db17c070480..909fdaccc97 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uri_reference_format_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uri_reference_format_response_body_for_content_types/post.pyi @@ -62,7 +62,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -90,11 +90,15 @@ class BaseApi(api_client.Api): def _post_uri_reference_format_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -141,7 +145,7 @@ class PostUriReferenceFormatResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -169,11 +173,15 @@ class PostUriReferenceFormatResponseBodyForContentTypes(BaseApi): def post_uri_reference_format_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_uri_reference_format_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -192,7 +200,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -220,11 +228,15 @@ class ApiForpost(BaseApi): def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_uri_reference_format_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uri_template_format_response_body_for_content_types/post.py b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uri_template_format_response_body_for_content_types/post.py index a46ff65a1b6..aa812e3f0f0 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uri_template_format_response_body_for_content_types/post.py +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uri_template_format_response_body_for_content_types/post.py @@ -85,7 +85,7 @@ def _post_uri_template_format_response_body_for_content_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -113,11 +113,15 @@ def _post_uri_template_format_response_body_for_content_types_oapg( def _post_uri_template_format_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -164,7 +168,7 @@ def post_uri_template_format_response_body_for_content_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -192,11 +196,15 @@ def post_uri_template_format_response_body_for_content_types( def post_uri_template_format_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_uri_template_format_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -215,7 +223,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -243,11 +251,15 @@ def post( def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_uri_template_format_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uri_template_format_response_body_for_content_types/post.pyi b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uri_template_format_response_body_for_content_types/post.pyi index f2c419a8a41..803bdd58b6c 100644 --- a/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uri_template_format_response_body_for_content_types/post.pyi +++ b/samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_uri_template_format_response_body_for_content_types/post.pyi @@ -62,7 +62,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -90,11 +90,15 @@ class BaseApi(api_client.Api): def _post_uri_template_format_response_body_for_content_types_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -141,7 +145,7 @@ class PostUriTemplateFormatResponseBodyForContentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -169,11 +173,15 @@ class PostUriTemplateFormatResponseBodyForContentTypes(BaseApi): def post_uri_template_format_response_body_for_content_types( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_uri_template_format_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, @@ -192,7 +200,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -220,11 +228,15 @@ class ApiForpost(BaseApi): def post( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._post_uri_template_format_response_body_for_content_types_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/another_fake_dummy/patch.py b/samples/openapi3/client/petstore/python/petstore_api/paths/another_fake_dummy/patch.py index 26598dd2f0f..4d023766a7f 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/another_fake_dummy/patch.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/another_fake_dummy/patch.py @@ -78,7 +78,7 @@ def _call_123_test_special_tags_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -110,13 +110,17 @@ def _call_123_test_special_tags_oapg( def _call_123_test_special_tags_oapg( self, - body, - content_type = 'application/json', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ To test special tags :param skip_deserialization: If true then api_response.response will be set but @@ -179,7 +183,7 @@ def call_123_test_special_tags( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -211,13 +215,17 @@ def call_123_test_special_tags( def call_123_test_special_tags( self, - body, - content_type = 'application/json', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._call_123_test_special_tags_oapg( body=body, content_type=content_type, @@ -240,7 +248,7 @@ def patch( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -272,13 +280,17 @@ def patch( def patch( self, - body, - content_type = 'application/json', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._call_123_test_special_tags_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/another_fake_dummy/patch.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/another_fake_dummy/patch.pyi index 72902288693..983cfd0b66d 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/another_fake_dummy/patch.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/another_fake_dummy/patch.pyi @@ -46,7 +46,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -78,13 +78,17 @@ class BaseApi(api_client.Api): def _call_123_test_special_tags_oapg( self, - body, - content_type = 'application/json', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ To test special tags :param skip_deserialization: If true then api_response.response will be set but @@ -147,7 +151,7 @@ class Call123TestSpecialTags(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -179,13 +183,17 @@ class Call123TestSpecialTags(BaseApi): def call_123_test_special_tags( self, - body, - content_type = 'application/json', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._call_123_test_special_tags_oapg( body=body, content_type=content_type, @@ -208,7 +216,7 @@ class ApiForpatch(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -240,13 +248,17 @@ class ApiForpatch(BaseApi): def patch( self, - body, - content_type = 'application/json', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._call_123_test_special_tags_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake/delete.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake/delete.py index d5ea6ec5717..6ad794268a3 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake/delete.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake/delete.py @@ -142,7 +142,7 @@ def _group_parameters_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[api_client.ApiResponse,]: + ) -> typing.Union[api_client.ApiResponse]: ... @typing.overload @@ -171,12 +171,15 @@ def _group_parameters_oapg( def _group_parameters_oapg( self, - query_params = frozendict.frozendict(), - header_params = frozendict.frozendict(), - stream = False, - timeout = None, - skip_deserialization = False, - ): + query_params: RequestQueryParams = frozendict.frozendict(), + header_params: RequestHeaderParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ Fake endpoint to test group parameters (optional) :param skip_deserialization: If true then api_response.response will be set but @@ -250,7 +253,7 @@ def group_parameters( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[api_client.ApiResponse,]: + ) -> typing.Union[api_client.ApiResponse]: ... @typing.overload @@ -279,12 +282,15 @@ def group_parameters( def group_parameters( self, - query_params = frozendict.frozendict(), - header_params = frozendict.frozendict(), - stream = False, - timeout = None, - skip_deserialization = False, - ): + query_params: RequestQueryParams = frozendict.frozendict(), + header_params: RequestHeaderParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._group_parameters_oapg( query_params=query_params, header_params=header_params, @@ -305,7 +311,7 @@ def delete( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[api_client.ApiResponse,]: + ) -> typing.Union[api_client.ApiResponse]: ... @typing.overload @@ -334,12 +340,15 @@ def delete( def delete( self, - query_params = frozendict.frozendict(), - header_params = frozendict.frozendict(), - stream = False, - timeout = None, - skip_deserialization = False, - ): + query_params: RequestQueryParams = frozendict.frozendict(), + header_params: RequestHeaderParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._group_parameters_oapg( query_params=query_params, header_params=header_params, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake/delete.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake/delete.pyi index c095154686d..ff95fcd752e 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake/delete.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake/delete.pyi @@ -45,7 +45,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[api_client.ApiResponse,]: + ) -> typing.Union[api_client.ApiResponse]: ... @typing.overload @@ -74,12 +74,15 @@ class BaseApi(api_client.Api): def _group_parameters_oapg( self, - query_params = frozendict.frozendict(), - header_params = frozendict.frozendict(), - stream = False, - timeout = None, - skip_deserialization = False, - ): + query_params: RequestQueryParams = frozendict.frozendict(), + header_params: RequestHeaderParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ Fake endpoint to test group parameters (optional) :param skip_deserialization: If true then api_response.response will be set but @@ -153,7 +156,7 @@ class GroupParameters(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[api_client.ApiResponse,]: + ) -> typing.Union[api_client.ApiResponse]: ... @typing.overload @@ -182,12 +185,15 @@ class GroupParameters(BaseApi): def group_parameters( self, - query_params = frozendict.frozendict(), - header_params = frozendict.frozendict(), - stream = False, - timeout = None, - skip_deserialization = False, - ): + query_params: RequestQueryParams = frozendict.frozendict(), + header_params: RequestHeaderParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._group_parameters_oapg( query_params=query_params, header_params=header_params, @@ -208,7 +214,7 @@ class ApiFordelete(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[api_client.ApiResponse,]: + ) -> typing.Union[api_client.ApiResponse]: ... @typing.overload @@ -237,12 +243,15 @@ class ApiFordelete(BaseApi): def delete( self, - query_params = frozendict.frozendict(), - header_params = frozendict.frozendict(), - stream = False, - timeout = None, - skip_deserialization = False, - ): + query_params: RequestQueryParams = frozendict.frozendict(), + header_params: RequestHeaderParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._group_parameters_oapg( query_params=query_params, header_params=header_params, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake/get.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake/get.py index 1ad07d302ab..6319720ebcd 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake/get.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake/get.py @@ -463,7 +463,7 @@ def _enum_parameters_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[api_client.ApiResponse,]: + ) -> typing.Union[api_client.ApiResponse]: ... @typing.overload @@ -496,14 +496,17 @@ def _enum_parameters_oapg( def _enum_parameters_oapg( self, - body = schemas.unset, - query_params = frozendict.frozendict(), - header_params = frozendict.frozendict(), - content_type = 'application/x-www-form-urlencoded', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + query_params: RequestQueryParams = frozendict.frozendict(), + header_params: RequestHeaderParams = frozendict.frozendict(), + content_type: str = 'application/x-www-form-urlencoded', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ To test enum parameters :param skip_deserialization: If true then api_response.response will be set but @@ -589,7 +592,7 @@ def enum_parameters( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[api_client.ApiResponse,]: + ) -> typing.Union[api_client.ApiResponse]: ... @typing.overload @@ -622,14 +625,17 @@ def enum_parameters( def enum_parameters( self, - body = schemas.unset, - query_params = frozendict.frozendict(), - header_params = frozendict.frozendict(), - content_type = 'application/x-www-form-urlencoded', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + query_params: RequestQueryParams = frozendict.frozendict(), + header_params: RequestHeaderParams = frozendict.frozendict(), + content_type: str = 'application/x-www-form-urlencoded', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._enum_parameters_oapg( body=body, query_params=query_params, @@ -654,7 +660,7 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[api_client.ApiResponse,]: + ) -> typing.Union[api_client.ApiResponse]: ... @typing.overload @@ -687,14 +693,17 @@ def get( def get( self, - body = schemas.unset, - query_params = frozendict.frozendict(), - header_params = frozendict.frozendict(), - content_type = 'application/x-www-form-urlencoded', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + query_params: RequestQueryParams = frozendict.frozendict(), + header_params: RequestHeaderParams = frozendict.frozendict(), + content_type: str = 'application/x-www-form-urlencoded', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._enum_parameters_oapg( body=body, query_params=query_params, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake/get.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake/get.pyi index 26966d60a90..09f12d6e2e5 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake/get.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake/get.pyi @@ -290,7 +290,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[api_client.ApiResponse,]: + ) -> typing.Union[api_client.ApiResponse]: ... @typing.overload @@ -323,14 +323,17 @@ class BaseApi(api_client.Api): def _enum_parameters_oapg( self, - body = schemas.unset, - query_params = frozendict.frozendict(), - header_params = frozendict.frozendict(), - content_type = 'application/x-www-form-urlencoded', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + query_params: RequestQueryParams = frozendict.frozendict(), + header_params: RequestHeaderParams = frozendict.frozendict(), + content_type: str = 'application/x-www-form-urlencoded', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ To test enum parameters :param skip_deserialization: If true then api_response.response will be set but @@ -416,7 +419,7 @@ class EnumParameters(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[api_client.ApiResponse,]: + ) -> typing.Union[api_client.ApiResponse]: ... @typing.overload @@ -449,14 +452,17 @@ class EnumParameters(BaseApi): def enum_parameters( self, - body = schemas.unset, - query_params = frozendict.frozendict(), - header_params = frozendict.frozendict(), - content_type = 'application/x-www-form-urlencoded', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + query_params: RequestQueryParams = frozendict.frozendict(), + header_params: RequestHeaderParams = frozendict.frozendict(), + content_type: str = 'application/x-www-form-urlencoded', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._enum_parameters_oapg( body=body, query_params=query_params, @@ -481,7 +487,7 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[api_client.ApiResponse,]: + ) -> typing.Union[api_client.ApiResponse]: ... @typing.overload @@ -514,14 +520,17 @@ class ApiForget(BaseApi): def get( self, - body = schemas.unset, - query_params = frozendict.frozendict(), - header_params = frozendict.frozendict(), - content_type = 'application/x-www-form-urlencoded', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + query_params: RequestQueryParams = frozendict.frozendict(), + header_params: RequestHeaderParams = frozendict.frozendict(), + content_type: str = 'application/x-www-form-urlencoded', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._enum_parameters_oapg( body=body, query_params=query_params, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake/patch.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake/patch.py index e340c20f7b1..b499871b8bd 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake/patch.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake/patch.py @@ -78,7 +78,7 @@ def _client_model_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -110,13 +110,17 @@ def _client_model_oapg( def _client_model_oapg( self, - body, - content_type = 'application/json', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ To test \"client\" model :param skip_deserialization: If true then api_response.response will be set but @@ -179,7 +183,7 @@ def client_model( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -211,13 +215,17 @@ def client_model( def client_model( self, - body, - content_type = 'application/json', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._client_model_oapg( body=body, content_type=content_type, @@ -240,7 +248,7 @@ def patch( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -272,13 +280,17 @@ def patch( def patch( self, - body, - content_type = 'application/json', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._client_model_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake/patch.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake/patch.pyi index 54b282d6bf8..80ae3f14f26 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake/patch.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake/patch.pyi @@ -46,7 +46,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -78,13 +78,17 @@ class BaseApi(api_client.Api): def _client_model_oapg( self, - body, - content_type = 'application/json', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ To test \"client\" model :param skip_deserialization: If true then api_response.response will be set but @@ -147,7 +151,7 @@ class ClientModel(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -179,13 +183,17 @@ class ClientModel(BaseApi): def client_model( self, - body, - content_type = 'application/json', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._client_model_oapg( body=body, content_type=content_type, @@ -208,7 +216,7 @@ class ApiForpatch(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -240,13 +248,17 @@ class ApiForpatch(BaseApi): def patch( self, - body, - content_type = 'application/json', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._client_model_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake/post.py index 3d759182f8d..bfe96b8bddd 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake/post.py @@ -348,7 +348,7 @@ def _endpoint_parameters_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[api_client.ApiResponse,]: + ) -> typing.Union[api_client.ApiResponse]: ... @typing.overload @@ -377,12 +377,15 @@ def _endpoint_parameters_oapg( def _endpoint_parameters_oapg( self, - body = schemas.unset, - content_type = 'application/x-www-form-urlencoded', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + content_type: str = 'application/x-www-form-urlencoded', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 :param skip_deserialization: If true then api_response.response will be set but @@ -440,7 +443,7 @@ def endpoint_parameters( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[api_client.ApiResponse,]: + ) -> typing.Union[api_client.ApiResponse]: ... @typing.overload @@ -469,12 +472,15 @@ def endpoint_parameters( def endpoint_parameters( self, - body = schemas.unset, - content_type = 'application/x-www-form-urlencoded', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + content_type: str = 'application/x-www-form-urlencoded', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._endpoint_parameters_oapg( body=body, content_type=content_type, @@ -495,7 +501,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[api_client.ApiResponse,]: + ) -> typing.Union[api_client.ApiResponse]: ... @typing.overload @@ -524,12 +530,15 @@ def post( def post( self, - body = schemas.unset, - content_type = 'application/x-www-form-urlencoded', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + content_type: str = 'application/x-www-form-urlencoded', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._endpoint_parameters_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake/post.pyi index ed8fef77d87..984134a7b20 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake/post.pyi @@ -267,7 +267,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[api_client.ApiResponse,]: + ) -> typing.Union[api_client.ApiResponse]: ... @typing.overload @@ -296,12 +296,15 @@ class BaseApi(api_client.Api): def _endpoint_parameters_oapg( self, - body = schemas.unset, - content_type = 'application/x-www-form-urlencoded', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + content_type: str = 'application/x-www-form-urlencoded', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 :param skip_deserialization: If true then api_response.response will be set but @@ -359,7 +362,7 @@ class EndpointParameters(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[api_client.ApiResponse,]: + ) -> typing.Union[api_client.ApiResponse]: ... @typing.overload @@ -388,12 +391,15 @@ class EndpointParameters(BaseApi): def endpoint_parameters( self, - body = schemas.unset, - content_type = 'application/x-www-form-urlencoded', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + content_type: str = 'application/x-www-form-urlencoded', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._endpoint_parameters_oapg( body=body, content_type=content_type, @@ -414,7 +420,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[api_client.ApiResponse,]: + ) -> typing.Union[api_client.ApiResponse]: ... @typing.overload @@ -443,12 +449,15 @@ class ApiForpost(BaseApi): def post( self, - body = schemas.unset, - content_type = 'application/x-www-form-urlencoded', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + content_type: str = 'application/x-www-form-urlencoded', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._endpoint_parameters_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_additional_properties_with_array_of_enums/get.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_additional_properties_with_array_of_enums/get.py index dd2a99c1bea..bb0a3cc2ba0 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_additional_properties_with_array_of_enums/get.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_additional_properties_with_array_of_enums/get.py @@ -77,7 +77,7 @@ def _additional_properties_with_array_of_enums_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -109,13 +109,17 @@ def _additional_properties_with_array_of_enums_oapg( def _additional_properties_with_array_of_enums_oapg( self, - body = schemas.unset, - content_type = 'application/json', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ Additional Properties with Array of Enums :param skip_deserialization: If true then api_response.response will be set but @@ -176,7 +180,7 @@ def additional_properties_with_array_of_enums( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -208,13 +212,17 @@ def additional_properties_with_array_of_enums( def additional_properties_with_array_of_enums( self, - body = schemas.unset, - content_type = 'application/json', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._additional_properties_with_array_of_enums_oapg( body=body, content_type=content_type, @@ -237,7 +245,7 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -269,13 +277,17 @@ def get( def get( self, - body = schemas.unset, - content_type = 'application/json', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._additional_properties_with_array_of_enums_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_additional_properties_with_array_of_enums/get.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_additional_properties_with_array_of_enums/get.pyi index 36b073f1bfe..726686df0c1 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_additional_properties_with_array_of_enums/get.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_additional_properties_with_array_of_enums/get.pyi @@ -46,7 +46,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -78,13 +78,17 @@ class BaseApi(api_client.Api): def _additional_properties_with_array_of_enums_oapg( self, - body = schemas.unset, - content_type = 'application/json', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ Additional Properties with Array of Enums :param skip_deserialization: If true then api_response.response will be set but @@ -145,7 +149,7 @@ class AdditionalPropertiesWithArrayOfEnums(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -177,13 +181,17 @@ class AdditionalPropertiesWithArrayOfEnums(BaseApi): def additional_properties_with_array_of_enums( self, - body = schemas.unset, - content_type = 'application/json', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._additional_properties_with_array_of_enums_oapg( body=body, content_type=content_type, @@ -206,7 +214,7 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -238,13 +246,17 @@ class ApiForget(BaseApi): def get( self, - body = schemas.unset, - content_type = 'application/json', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._additional_properties_with_array_of_enums_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_body_with_file_schema/put.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_body_with_file_schema/put.py index 78844bf23c3..1f928221762 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_body_with_file_schema/put.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_body_with_file_schema/put.py @@ -67,7 +67,7 @@ def _body_with_file_schema_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -97,12 +97,16 @@ def _body_with_file_schema_oapg( def _body_with_file_schema_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -160,7 +164,7 @@ def body_with_file_schema( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -190,12 +194,16 @@ def body_with_file_schema( def body_with_file_schema( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._body_with_file_schema_oapg( body=body, content_type=content_type, @@ -216,7 +224,7 @@ def put( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -246,12 +254,16 @@ def put( def put( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._body_with_file_schema_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_body_with_file_schema/put.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_body_with_file_schema/put.pyi index a67866e311e..9ebeca230f7 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_body_with_file_schema/put.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_body_with_file_schema/put.pyi @@ -41,7 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -71,12 +71,16 @@ class BaseApi(api_client.Api): def _body_with_file_schema_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -134,7 +138,7 @@ class BodyWithFileSchema(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -164,12 +168,16 @@ class BodyWithFileSchema(BaseApi): def body_with_file_schema( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._body_with_file_schema_oapg( body=body, content_type=content_type, @@ -190,7 +198,7 @@ class ApiForput(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -220,12 +228,16 @@ class ApiForput(BaseApi): def put( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._body_with_file_schema_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_body_with_query_params/put.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_body_with_query_params/put.py index c5b0aaa070a..9f47253160b 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_body_with_query_params/put.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_body_with_query_params/put.py @@ -95,7 +95,7 @@ def _body_with_query_params_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -127,13 +127,17 @@ def _body_with_query_params_oapg( def _body_with_query_params_oapg( self, - body, - query_params = frozendict.frozendict(), - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + query_params: RequestQueryParams = frozendict.frozendict(), + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -206,7 +210,7 @@ def body_with_query_params( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -238,13 +242,17 @@ def body_with_query_params( def body_with_query_params( self, - body, - query_params = frozendict.frozendict(), - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + query_params: RequestQueryParams = frozendict.frozendict(), + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._body_with_query_params_oapg( body=body, query_params=query_params, @@ -267,7 +275,7 @@ def put( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -299,13 +307,17 @@ def put( def put( self, - body, - query_params = frozendict.frozendict(), - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + query_params: RequestQueryParams = frozendict.frozendict(), + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._body_with_query_params_oapg( body=body, query_params=query_params, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_body_with_query_params/put.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_body_with_query_params/put.pyi index b9a349b8f80..27a2b6ce294 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_body_with_query_params/put.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_body_with_query_params/put.pyi @@ -44,7 +44,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -76,13 +76,17 @@ class BaseApi(api_client.Api): def _body_with_query_params_oapg( self, - body, - query_params = frozendict.frozendict(), - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + query_params: RequestQueryParams = frozendict.frozendict(), + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -155,7 +159,7 @@ class BodyWithQueryParams(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -187,13 +191,17 @@ class BodyWithQueryParams(BaseApi): def body_with_query_params( self, - body, - query_params = frozendict.frozendict(), - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + query_params: RequestQueryParams = frozendict.frozendict(), + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._body_with_query_params_oapg( body=body, query_params=query_params, @@ -216,7 +224,7 @@ class ApiForput(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -248,13 +256,17 @@ class ApiForput(BaseApi): def put( self, - body, - query_params = frozendict.frozendict(), - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + query_params: RequestQueryParams = frozendict.frozendict(), + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._body_with_query_params_oapg( body=body, query_params=query_params, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_case_sensitive_params/put.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_case_sensitive_params/put.py index f66906852c8..3f08139e801 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_case_sensitive_params/put.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_case_sensitive_params/put.py @@ -97,7 +97,7 @@ def _case_sensitive_params_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -125,11 +125,15 @@ def _case_sensitive_params_oapg( def _case_sensitive_params_oapg( self, - query_params = frozendict.frozendict(), - stream = False, - timeout = None, - skip_deserialization = False, - ): + query_params: RequestQueryParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -186,7 +190,7 @@ def case_sensitive_params( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -214,11 +218,15 @@ def case_sensitive_params( def case_sensitive_params( self, - query_params = frozendict.frozendict(), - stream = False, - timeout = None, - skip_deserialization = False, - ): + query_params: RequestQueryParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._case_sensitive_params_oapg( query_params=query_params, stream=stream, @@ -237,7 +245,7 @@ def put( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -265,11 +273,15 @@ def put( def put( self, - query_params = frozendict.frozendict(), - stream = False, - timeout = None, - skip_deserialization = False, - ): + query_params: RequestQueryParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._case_sensitive_params_oapg( query_params=query_params, stream=stream, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_case_sensitive_params/put.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_case_sensitive_params/put.pyi index 235043f11db..e73813f6e6b 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_case_sensitive_params/put.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_case_sensitive_params/put.pyi @@ -39,7 +39,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -67,11 +67,15 @@ class BaseApi(api_client.Api): def _case_sensitive_params_oapg( self, - query_params = frozendict.frozendict(), - stream = False, - timeout = None, - skip_deserialization = False, - ): + query_params: RequestQueryParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -128,7 +132,7 @@ class CaseSensitiveParams(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -156,11 +160,15 @@ class CaseSensitiveParams(BaseApi): def case_sensitive_params( self, - query_params = frozendict.frozendict(), - stream = False, - timeout = None, - skip_deserialization = False, - ): + query_params: RequestQueryParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._case_sensitive_params_oapg( query_params=query_params, stream=stream, @@ -179,7 +187,7 @@ class ApiForput(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -207,11 +215,15 @@ class ApiForput(BaseApi): def put( self, - query_params = frozendict.frozendict(), - stream = False, - timeout = None, - skip_deserialization = False, - ): + query_params: RequestQueryParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._case_sensitive_params_oapg( query_params=query_params, stream=stream, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_classname_test/patch.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_classname_test/patch.py index aa67548df0c..330be000103 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_classname_test/patch.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_classname_test/patch.py @@ -81,7 +81,7 @@ def _classname_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -113,13 +113,17 @@ def _classname_oapg( def _classname_oapg( self, - body, - content_type = 'application/json', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ To test class name in snake case :param skip_deserialization: If true then api_response.response will be set but @@ -183,7 +187,7 @@ def classname( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -215,13 +219,17 @@ def classname( def classname( self, - body, - content_type = 'application/json', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._classname_oapg( body=body, content_type=content_type, @@ -244,7 +252,7 @@ def patch( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -276,13 +284,17 @@ def patch( def patch( self, - body, - content_type = 'application/json', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._classname_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_classname_test/patch.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_classname_test/patch.pyi index 27bae069a2a..a10947c1e90 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_classname_test/patch.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_classname_test/patch.pyi @@ -46,7 +46,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -78,13 +78,17 @@ class BaseApi(api_client.Api): def _classname_oapg( self, - body, - content_type = 'application/json', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ To test class name in snake case :param skip_deserialization: If true then api_response.response will be set but @@ -148,7 +152,7 @@ class Classname(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -180,13 +184,17 @@ class Classname(BaseApi): def classname( self, - body, - content_type = 'application/json', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._classname_oapg( body=body, content_type=content_type, @@ -209,7 +217,7 @@ class ApiForpatch(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -241,13 +249,17 @@ class ApiForpatch(BaseApi): def patch( self, - body, - content_type = 'application/json', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._classname_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_delete_coffee_id/delete.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_delete_coffee_id/delete.py index 73491d28c7c..3a3dc9c12a2 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_delete_coffee_id/delete.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_delete_coffee_id/delete.py @@ -91,7 +91,7 @@ def _delete_coffee_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,ApiResponseForDefault,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,ApiResponseForDefault,api_client.ApiResponse]: ... @typing.overload @@ -120,11 +120,16 @@ def _delete_coffee_oapg( def _delete_coffee_oapg( self, - path_params = frozendict.frozendict(), - stream = False, - timeout = None, - skip_deserialization = False, - ): + path_params: RequestPathParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + ApiResponseForDefault, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ Delete coffee :param skip_deserialization: If true then api_response.response will be set but @@ -184,7 +189,7 @@ def delete_coffee( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,ApiResponseForDefault,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,ApiResponseForDefault,api_client.ApiResponse]: ... @typing.overload @@ -213,11 +218,16 @@ def delete_coffee( def delete_coffee( self, - path_params = frozendict.frozendict(), - stream = False, - timeout = None, - skip_deserialization = False, - ): + path_params: RequestPathParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + ApiResponseForDefault, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._delete_coffee_oapg( path_params=path_params, stream=stream, @@ -236,7 +246,7 @@ def delete( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,ApiResponseForDefault,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,ApiResponseForDefault,api_client.ApiResponse]: ... @typing.overload @@ -265,11 +275,16 @@ def delete( def delete( self, - path_params = frozendict.frozendict(), - stream = False, - timeout = None, - skip_deserialization = False, - ): + path_params: RequestPathParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + ApiResponseForDefault, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._delete_coffee_oapg( path_params=path_params, stream=stream, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_delete_coffee_id/delete.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_delete_coffee_id/delete.pyi index 802aa3c7145..35ebd2bdd53 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_delete_coffee_id/delete.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_delete_coffee_id/delete.pyi @@ -37,7 +37,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,ApiResponseForDefault,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,ApiResponseForDefault,api_client.ApiResponse]: ... @typing.overload @@ -66,11 +66,16 @@ class BaseApi(api_client.Api): def _delete_coffee_oapg( self, - path_params = frozendict.frozendict(), - stream = False, - timeout = None, - skip_deserialization = False, - ): + path_params: RequestPathParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + ApiResponseForDefault, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ Delete coffee :param skip_deserialization: If true then api_response.response will be set but @@ -130,7 +135,7 @@ class DeleteCoffee(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,ApiResponseForDefault,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,ApiResponseForDefault,api_client.ApiResponse]: ... @typing.overload @@ -159,11 +164,16 @@ class DeleteCoffee(BaseApi): def delete_coffee( self, - path_params = frozendict.frozendict(), - stream = False, - timeout = None, - skip_deserialization = False, - ): + path_params: RequestPathParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + ApiResponseForDefault, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._delete_coffee_oapg( path_params=path_params, stream=stream, @@ -182,7 +192,7 @@ class ApiFordelete(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,ApiResponseForDefault,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,ApiResponseForDefault,api_client.ApiResponse]: ... @typing.overload @@ -211,11 +221,16 @@ class ApiFordelete(BaseApi): def delete( self, - path_params = frozendict.frozendict(), - stream = False, - timeout = None, - skip_deserialization = False, - ): + path_params: RequestPathParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + ApiResponseForDefault, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._delete_coffee_oapg( path_params=path_params, stream=stream, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_health/get.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_health/get.py index 92c8af9ce3d..33d0ce01dc3 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_health/get.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_health/get.py @@ -65,7 +65,7 @@ def _fake_health_get_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -93,11 +93,15 @@ def _fake_health_get_oapg( def _fake_health_get_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ Health check endpoint :param skip_deserialization: If true then api_response.response will be set but @@ -145,7 +149,7 @@ def fake_health_get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -173,11 +177,15 @@ def fake_health_get( def fake_health_get( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._fake_health_get_oapg( accept_content_types=accept_content_types, stream=stream, @@ -196,7 +204,7 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -224,11 +232,15 @@ def get( def get( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._fake_health_get_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_health/get.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_health/get.pyi index 632e9002912..6b23b0676cb 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_health/get.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_health/get.pyi @@ -42,7 +42,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -70,11 +70,15 @@ class BaseApi(api_client.Api): def _fake_health_get_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ Health check endpoint :param skip_deserialization: If true then api_response.response will be set but @@ -122,7 +126,7 @@ class FakeHealthGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -150,11 +154,15 @@ class FakeHealthGet(BaseApi): def fake_health_get( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._fake_health_get_oapg( accept_content_types=accept_content_types, stream=stream, @@ -173,7 +181,7 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -201,11 +209,15 @@ class ApiForget(BaseApi): def get( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._fake_health_get_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_inline_additional_properties/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_inline_additional_properties/post.py index fa6de552d0a..4d30a1cc313 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_inline_additional_properties/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_inline_additional_properties/post.py @@ -93,7 +93,7 @@ def _inline_additional_properties_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -123,12 +123,16 @@ def _inline_additional_properties_oapg( def _inline_additional_properties_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ test inline additionalProperties :param skip_deserialization: If true then api_response.response will be set but @@ -187,7 +191,7 @@ def inline_additional_properties( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -217,12 +221,16 @@ def inline_additional_properties( def inline_additional_properties( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._inline_additional_properties_oapg( body=body, content_type=content_type, @@ -243,7 +251,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -273,12 +281,16 @@ def post( def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._inline_additional_properties_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_inline_additional_properties/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_inline_additional_properties/post.pyi index 9f5bd58a9d9..f01ad736f7d 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_inline_additional_properties/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_inline_additional_properties/post.pyi @@ -67,7 +67,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -97,12 +97,16 @@ class BaseApi(api_client.Api): def _inline_additional_properties_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ test inline additionalProperties :param skip_deserialization: If true then api_response.response will be set but @@ -161,7 +165,7 @@ class InlineAdditionalProperties(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -191,12 +195,16 @@ class InlineAdditionalProperties(BaseApi): def inline_additional_properties( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._inline_additional_properties_oapg( body=body, content_type=content_type, @@ -217,7 +225,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -247,12 +255,16 @@ class ApiForpost(BaseApi): def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._inline_additional_properties_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_inline_composition_/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_inline_composition_/post.py index 9a3e5074332..1d16d405e48 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_inline_composition_/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_inline_composition_/post.py @@ -529,7 +529,7 @@ def _inline_composition_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -563,14 +563,18 @@ def _inline_composition_oapg( def _inline_composition_oapg( self, - body = schemas.unset, - query_params = frozendict.frozendict(), - content_type = 'application/json', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + query_params: RequestQueryParams = frozendict.frozendict(), + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ testing composed schemas at inline locations :param skip_deserialization: If true then api_response.response will be set but @@ -647,7 +651,7 @@ def inline_composition( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -681,14 +685,18 @@ def inline_composition( def inline_composition( self, - body = schemas.unset, - query_params = frozendict.frozendict(), - content_type = 'application/json', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + query_params: RequestQueryParams = frozendict.frozendict(), + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._inline_composition_oapg( body=body, query_params=query_params, @@ -713,7 +721,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -747,14 +755,18 @@ def post( def post( self, - body = schemas.unset, - query_params = frozendict.frozendict(), - content_type = 'application/json', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + query_params: RequestQueryParams = frozendict.frozendict(), + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._inline_composition_oapg( body=body, query_params=query_params, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_inline_composition_/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_inline_composition_/post.pyi index ac1643b59a5..962ba1f5b08 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_inline_composition_/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_inline_composition_/post.pyi @@ -444,7 +444,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -478,14 +478,18 @@ class BaseApi(api_client.Api): def _inline_composition_oapg( self, - body = schemas.unset, - query_params = frozendict.frozendict(), - content_type = 'application/json', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + query_params: RequestQueryParams = frozendict.frozendict(), + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ testing composed schemas at inline locations :param skip_deserialization: If true then api_response.response will be set but @@ -562,7 +566,7 @@ class InlineComposition(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -596,14 +600,18 @@ class InlineComposition(BaseApi): def inline_composition( self, - body = schemas.unset, - query_params = frozendict.frozendict(), - content_type = 'application/json', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + query_params: RequestQueryParams = frozendict.frozendict(), + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._inline_composition_oapg( body=body, query_params=query_params, @@ -628,7 +636,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -662,14 +670,18 @@ class ApiForpost(BaseApi): def post( self, - body = schemas.unset, - query_params = frozendict.frozendict(), - content_type = 'application/json', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + query_params: RequestQueryParams = frozendict.frozendict(), + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._inline_composition_oapg( body=body, query_params=query_params, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_form_data/get.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_form_data/get.py index a953470ea2f..296482bf31a 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_form_data/get.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_form_data/get.py @@ -130,7 +130,7 @@ def _json_form_data_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -160,12 +160,16 @@ def _json_form_data_oapg( def _json_form_data_oapg( self, - body = schemas.unset, - content_type = 'application/x-www-form-urlencoded', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + content_type: str = 'application/x-www-form-urlencoded', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ test json serialization of form data :param skip_deserialization: If true then api_response.response will be set but @@ -222,7 +226,7 @@ def json_form_data( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -252,12 +256,16 @@ def json_form_data( def json_form_data( self, - body = schemas.unset, - content_type = 'application/x-www-form-urlencoded', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + content_type: str = 'application/x-www-form-urlencoded', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._json_form_data_oapg( body=body, content_type=content_type, @@ -278,7 +286,7 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -308,12 +316,16 @@ def get( def get( self, - body = schemas.unset, - content_type = 'application/x-www-form-urlencoded', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + content_type: str = 'application/x-www-form-urlencoded', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._json_form_data_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_form_data/get.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_form_data/get.pyi index 491db881200..034f17b5d17 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_form_data/get.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_form_data/get.pyi @@ -105,7 +105,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -135,12 +135,16 @@ class BaseApi(api_client.Api): def _json_form_data_oapg( self, - body = schemas.unset, - content_type = 'application/x-www-form-urlencoded', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + content_type: str = 'application/x-www-form-urlencoded', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ test json serialization of form data :param skip_deserialization: If true then api_response.response will be set but @@ -197,7 +201,7 @@ class JsonFormData(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -227,12 +231,16 @@ class JsonFormData(BaseApi): def json_form_data( self, - body = schemas.unset, - content_type = 'application/x-www-form-urlencoded', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + content_type: str = 'application/x-www-form-urlencoded', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._json_form_data_oapg( body=body, content_type=content_type, @@ -253,7 +261,7 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -283,12 +291,16 @@ class ApiForget(BaseApi): def get( self, - body = schemas.unset, - content_type = 'application/x-www-form-urlencoded', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + content_type: str = 'application/x-www-form-urlencoded', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._json_form_data_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_patch/patch.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_patch/patch.py index e21bd5445ca..9c119c576e3 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_patch/patch.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_patch/patch.py @@ -66,7 +66,7 @@ def _json_patch_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -96,12 +96,16 @@ def _json_patch_oapg( def _json_patch_oapg( self, - body = schemas.unset, - content_type = 'application/json-patch+json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJsonPatchjson,schemas.Unset] = schemas.unset, + content_type: str = 'application/json-patch+json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ json patch :param skip_deserialization: If true then api_response.response will be set but @@ -158,7 +162,7 @@ def json_patch( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -188,12 +192,16 @@ def json_patch( def json_patch( self, - body = schemas.unset, - content_type = 'application/json-patch+json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJsonPatchjson,schemas.Unset] = schemas.unset, + content_type: str = 'application/json-patch+json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._json_patch_oapg( body=body, content_type=content_type, @@ -214,7 +222,7 @@ def patch( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -244,12 +252,16 @@ def patch( def patch( self, - body = schemas.unset, - content_type = 'application/json-patch+json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJsonPatchjson,schemas.Unset] = schemas.unset, + content_type: str = 'application/json-patch+json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._json_patch_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_patch/patch.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_patch/patch.pyi index a352de9325f..88c207a8592 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_patch/patch.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_patch/patch.pyi @@ -41,7 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -71,12 +71,16 @@ class BaseApi(api_client.Api): def _json_patch_oapg( self, - body = schemas.unset, - content_type = 'application/json-patch+json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJsonPatchjson,schemas.Unset] = schemas.unset, + content_type: str = 'application/json-patch+json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ json patch :param skip_deserialization: If true then api_response.response will be set but @@ -133,7 +137,7 @@ class JsonPatch(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -163,12 +167,16 @@ class JsonPatch(BaseApi): def json_patch( self, - body = schemas.unset, - content_type = 'application/json-patch+json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJsonPatchjson,schemas.Unset] = schemas.unset, + content_type: str = 'application/json-patch+json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._json_patch_oapg( body=body, content_type=content_type, @@ -189,7 +197,7 @@ class ApiForpatch(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -219,12 +227,16 @@ class ApiForpatch(BaseApi): def patch( self, - body = schemas.unset, - content_type = 'application/json-patch+json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJsonPatchjson,schemas.Unset] = schemas.unset, + content_type: str = 'application/json-patch+json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._json_patch_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_with_charset/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_with_charset/post.py index fb80aad8a6a..fedda00ab1a 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_with_charset/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_with_charset/post.py @@ -75,7 +75,7 @@ def _json_with_charset_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -107,13 +107,17 @@ def _json_with_charset_oapg( def _json_with_charset_oapg( self, - body = schemas.unset, - content_type = 'application/json; charset=utf-8', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJsonCharsetutf8,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + content_type: str = 'application/json; charset=utf-8', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ json with charset tx and rx :param skip_deserialization: If true then api_response.response will be set but @@ -174,7 +178,7 @@ def json_with_charset( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -206,13 +210,17 @@ def json_with_charset( def json_with_charset( self, - body = schemas.unset, - content_type = 'application/json; charset=utf-8', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJsonCharsetutf8,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + content_type: str = 'application/json; charset=utf-8', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._json_with_charset_oapg( body=body, content_type=content_type, @@ -235,7 +243,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -267,13 +275,17 @@ def post( def post( self, - body = schemas.unset, - content_type = 'application/json; charset=utf-8', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJsonCharsetutf8,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + content_type: str = 'application/json; charset=utf-8', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._json_with_charset_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_with_charset/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_with_charset/post.pyi index e8af1111215..0fb73b3907e 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_with_charset/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_json_with_charset/post.pyi @@ -44,7 +44,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -76,13 +76,17 @@ class BaseApi(api_client.Api): def _json_with_charset_oapg( self, - body = schemas.unset, - content_type = 'application/json; charset=utf-8', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJsonCharsetutf8,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + content_type: str = 'application/json; charset=utf-8', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ json with charset tx and rx :param skip_deserialization: If true then api_response.response will be set but @@ -143,7 +147,7 @@ class JsonWithCharset(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -175,13 +179,17 @@ class JsonWithCharset(BaseApi): def json_with_charset( self, - body = schemas.unset, - content_type = 'application/json; charset=utf-8', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJsonCharsetutf8,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + content_type: str = 'application/json; charset=utf-8', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._json_with_charset_oapg( body=body, content_type=content_type, @@ -204,7 +212,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -236,13 +244,17 @@ class ApiForpost(BaseApi): def post( self, - body = schemas.unset, - content_type = 'application/json; charset=utf-8', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJsonCharsetutf8,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + content_type: str = 'application/json; charset=utf-8', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._json_with_charset_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_obj_in_query/get.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_obj_in_query/get.py index 01173b48f1d..4f99e88c2aa 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_obj_in_query/get.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_obj_in_query/get.py @@ -127,7 +127,7 @@ def _object_in_query_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -155,11 +155,15 @@ def _object_in_query_oapg( def _object_in_query_oapg( self, - query_params = frozendict.frozendict(), - stream = False, - timeout = None, - skip_deserialization = False, - ): + query_params: RequestQueryParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ user list :param skip_deserialization: If true then api_response.response will be set but @@ -215,7 +219,7 @@ def object_in_query( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -243,11 +247,15 @@ def object_in_query( def object_in_query( self, - query_params = frozendict.frozendict(), - stream = False, - timeout = None, - skip_deserialization = False, - ): + query_params: RequestQueryParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._object_in_query_oapg( query_params=query_params, stream=stream, @@ -266,7 +274,7 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -294,11 +302,15 @@ def get( def get( self, - query_params = frozendict.frozendict(), - stream = False, - timeout = None, - skip_deserialization = False, - ): + query_params: RequestQueryParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._object_in_query_oapg( query_params=query_params, stream=stream, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_obj_in_query/get.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_obj_in_query/get.pyi index 5f932a9f191..60f21ccf5d0 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_obj_in_query/get.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_obj_in_query/get.pyi @@ -86,7 +86,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -114,11 +114,15 @@ class BaseApi(api_client.Api): def _object_in_query_oapg( self, - query_params = frozendict.frozendict(), - stream = False, - timeout = None, - skip_deserialization = False, - ): + query_params: RequestQueryParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ user list :param skip_deserialization: If true then api_response.response will be set but @@ -174,7 +178,7 @@ class ObjectInQuery(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -202,11 +206,15 @@ class ObjectInQuery(BaseApi): def object_in_query( self, - query_params = frozendict.frozendict(), - stream = False, - timeout = None, - skip_deserialization = False, - ): + query_params: RequestQueryParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._object_in_query_oapg( query_params=query_params, stream=stream, @@ -225,7 +233,7 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -253,11 +261,15 @@ class ApiForget(BaseApi): def get( self, - query_params = frozendict.frozendict(), - stream = False, - timeout = None, - skip_deserialization = False, - ): + query_params: RequestQueryParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._object_in_query_oapg( query_params=query_params, stream=stream, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_parameter_collisions_1_a_b_ab_self_a_b_/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_parameter_collisions_1_a_b_ab_self_a_b_/post.py index eef5d877aaf..6c1b57e69f5 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_parameter_collisions_1_a_b_ab_self_a_b_/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_parameter_collisions_1_a_b_ab_self_a_b_/post.py @@ -299,7 +299,7 @@ def _parameter_collisions_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -339,17 +339,21 @@ def _parameter_collisions_oapg( def _parameter_collisions_oapg( self, - body = schemas.unset, - query_params = frozendict.frozendict(), - header_params = frozendict.frozendict(), - path_params = frozendict.frozendict(), - cookie_params = frozendict.frozendict(), - content_type = 'application/json', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + query_params: RequestQueryParams = frozendict.frozendict(), + header_params: RequestHeaderParams = frozendict.frozendict(), + path_params: RequestPathParams = frozendict.frozendict(), + cookie_params: RequestCookieParams = frozendict.frozendict(), + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ parameter collision case :param skip_deserialization: If true then api_response.response will be set but @@ -463,7 +467,7 @@ def parameter_collisions( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -503,17 +507,21 @@ def parameter_collisions( def parameter_collisions( self, - body = schemas.unset, - query_params = frozendict.frozendict(), - header_params = frozendict.frozendict(), - path_params = frozendict.frozendict(), - cookie_params = frozendict.frozendict(), - content_type = 'application/json', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + query_params: RequestQueryParams = frozendict.frozendict(), + header_params: RequestHeaderParams = frozendict.frozendict(), + path_params: RequestPathParams = frozendict.frozendict(), + cookie_params: RequestCookieParams = frozendict.frozendict(), + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._parameter_collisions_oapg( body=body, query_params=query_params, @@ -544,7 +552,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -584,17 +592,21 @@ def post( def post( self, - body = schemas.unset, - query_params = frozendict.frozendict(), - header_params = frozendict.frozendict(), - path_params = frozendict.frozendict(), - cookie_params = frozendict.frozendict(), - content_type = 'application/json', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + query_params: RequestQueryParams = frozendict.frozendict(), + header_params: RequestHeaderParams = frozendict.frozendict(), + path_params: RequestPathParams = frozendict.frozendict(), + cookie_params: RequestCookieParams = frozendict.frozendict(), + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._parameter_collisions_oapg( body=body, query_params=query_params, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_parameter_collisions_1_a_b_ab_self_a_b_/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_parameter_collisions_1_a_b_ab_self_a_b_/post.pyi index 486477c477a..ee580c7b89d 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_parameter_collisions_1_a_b_ab_self_a_b_/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_parameter_collisions_1_a_b_ab_self_a_b_/post.pyi @@ -71,7 +71,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -111,17 +111,21 @@ class BaseApi(api_client.Api): def _parameter_collisions_oapg( self, - body = schemas.unset, - query_params = frozendict.frozendict(), - header_params = frozendict.frozendict(), - path_params = frozendict.frozendict(), - cookie_params = frozendict.frozendict(), - content_type = 'application/json', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + query_params: RequestQueryParams = frozendict.frozendict(), + header_params: RequestHeaderParams = frozendict.frozendict(), + path_params: RequestPathParams = frozendict.frozendict(), + cookie_params: RequestCookieParams = frozendict.frozendict(), + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ parameter collision case :param skip_deserialization: If true then api_response.response will be set but @@ -235,7 +239,7 @@ class ParameterCollisions(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -275,17 +279,21 @@ class ParameterCollisions(BaseApi): def parameter_collisions( self, - body = schemas.unset, - query_params = frozendict.frozendict(), - header_params = frozendict.frozendict(), - path_params = frozendict.frozendict(), - cookie_params = frozendict.frozendict(), - content_type = 'application/json', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + query_params: RequestQueryParams = frozendict.frozendict(), + header_params: RequestHeaderParams = frozendict.frozendict(), + path_params: RequestPathParams = frozendict.frozendict(), + cookie_params: RequestCookieParams = frozendict.frozendict(), + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._parameter_collisions_oapg( body=body, query_params=query_params, @@ -316,7 +324,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -356,17 +364,21 @@ class ApiForpost(BaseApi): def post( self, - body = schemas.unset, - query_params = frozendict.frozendict(), - header_params = frozendict.frozendict(), - path_params = frozendict.frozendict(), - cookie_params = frozendict.frozendict(), - content_type = 'application/json', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, schemas.Unset] = schemas.unset, + query_params: RequestQueryParams = frozendict.frozendict(), + header_params: RequestHeaderParams = frozendict.frozendict(), + path_params: RequestPathParams = frozendict.frozendict(), + cookie_params: RequestCookieParams = frozendict.frozendict(), + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._parameter_collisions_oapg( body=body, query_params=query_params, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_pet_id_upload_image_with_required_file/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_pet_id_upload_image_with_required_file/post.py index b9c10583f6f..d71e9be464b 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_pet_id_upload_image_with_required_file/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_pet_id_upload_image_with_required_file/post.py @@ -171,7 +171,7 @@ def _upload_file_with_required_file_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -205,14 +205,18 @@ def _upload_file_with_required_file_oapg( def _upload_file_with_required_file_oapg( self, - body = schemas.unset, - path_params = frozendict.frozendict(), - content_type = 'multipart/form-data', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + path_params: RequestPathParams = frozendict.frozendict(), + content_type: str = 'multipart/form-data', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ uploads an image (required) :param skip_deserialization: If true then api_response.response will be set but @@ -289,7 +293,7 @@ def upload_file_with_required_file( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -323,14 +327,18 @@ def upload_file_with_required_file( def upload_file_with_required_file( self, - body = schemas.unset, - path_params = frozendict.frozendict(), - content_type = 'multipart/form-data', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + path_params: RequestPathParams = frozendict.frozendict(), + content_type: str = 'multipart/form-data', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._upload_file_with_required_file_oapg( body=body, path_params=path_params, @@ -355,7 +363,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -389,14 +397,18 @@ def post( def post( self, - body = schemas.unset, - path_params = frozendict.frozendict(), - content_type = 'multipart/form-data', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + path_params: RequestPathParams = frozendict.frozendict(), + content_type: str = 'multipart/form-data', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._upload_file_with_required_file_oapg( body=body, path_params=path_params, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_pet_id_upload_image_with_required_file/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_pet_id_upload_image_with_required_file/post.pyi index f2b8c22a057..5cfd51d0577 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_pet_id_upload_image_with_required_file/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_pet_id_upload_image_with_required_file/post.pyi @@ -113,7 +113,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -147,14 +147,18 @@ class BaseApi(api_client.Api): def _upload_file_with_required_file_oapg( self, - body = schemas.unset, - path_params = frozendict.frozendict(), - content_type = 'multipart/form-data', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + path_params: RequestPathParams = frozendict.frozendict(), + content_type: str = 'multipart/form-data', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ uploads an image (required) :param skip_deserialization: If true then api_response.response will be set but @@ -231,7 +235,7 @@ class UploadFileWithRequiredFile(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -265,14 +269,18 @@ class UploadFileWithRequiredFile(BaseApi): def upload_file_with_required_file( self, - body = schemas.unset, - path_params = frozendict.frozendict(), - content_type = 'multipart/form-data', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + path_params: RequestPathParams = frozendict.frozendict(), + content_type: str = 'multipart/form-data', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._upload_file_with_required_file_oapg( body=body, path_params=path_params, @@ -297,7 +305,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -331,14 +339,18 @@ class ApiForpost(BaseApi): def post( self, - body = schemas.unset, - path_params = frozendict.frozendict(), - content_type = 'multipart/form-data', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + path_params: RequestPathParams = frozendict.frozendict(), + content_type: str = 'multipart/form-data', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._upload_file_with_required_file_oapg( body=body, path_params=path_params, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_ref_obj_in_query/get.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_ref_obj_in_query/get.py index 914c179eb04..5e64165aea6 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_ref_obj_in_query/get.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_ref_obj_in_query/get.py @@ -80,7 +80,7 @@ def _ref_object_in_query_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -108,11 +108,15 @@ def _ref_object_in_query_oapg( def _ref_object_in_query_oapg( self, - query_params = frozendict.frozendict(), - stream = False, - timeout = None, - skip_deserialization = False, - ): + query_params: RequestQueryParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ user list :param skip_deserialization: If true then api_response.response will be set but @@ -168,7 +172,7 @@ def ref_object_in_query( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -196,11 +200,15 @@ def ref_object_in_query( def ref_object_in_query( self, - query_params = frozendict.frozendict(), - stream = False, - timeout = None, - skip_deserialization = False, - ): + query_params: RequestQueryParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._ref_object_in_query_oapg( query_params=query_params, stream=stream, @@ -219,7 +227,7 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -247,11 +255,15 @@ def get( def get( self, - query_params = frozendict.frozendict(), - stream = False, - timeout = None, - skip_deserialization = False, - ): + query_params: RequestQueryParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._ref_object_in_query_oapg( query_params=query_params, stream=stream, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_ref_obj_in_query/get.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_ref_obj_in_query/get.pyi index ca88dc50576..4ec3dc82e36 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_ref_obj_in_query/get.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_ref_obj_in_query/get.pyi @@ -39,7 +39,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -67,11 +67,15 @@ class BaseApi(api_client.Api): def _ref_object_in_query_oapg( self, - query_params = frozendict.frozendict(), - stream = False, - timeout = None, - skip_deserialization = False, - ): + query_params: RequestQueryParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ user list :param skip_deserialization: If true then api_response.response will be set but @@ -127,7 +131,7 @@ class RefObjectInQuery(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -155,11 +159,15 @@ class RefObjectInQuery(BaseApi): def ref_object_in_query( self, - query_params = frozendict.frozendict(), - stream = False, - timeout = None, - skip_deserialization = False, - ): + query_params: RequestQueryParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._ref_object_in_query_oapg( query_params=query_params, stream=stream, @@ -178,7 +186,7 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -206,11 +214,15 @@ class ApiForget(BaseApi): def get( self, - query_params = frozendict.frozendict(), - stream = False, - timeout = None, - skip_deserialization = False, - ): + query_params: RequestQueryParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._ref_object_in_query_oapg( query_params=query_params, stream=stream, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_array_of_enums/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_array_of_enums/post.py index 6fd5e8851db..f4ffd0fd672 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_array_of_enums/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_array_of_enums/post.py @@ -77,7 +77,7 @@ def _array_of_enums_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -109,13 +109,17 @@ def _array_of_enums_oapg( def _array_of_enums_oapg( self, - body = schemas.unset, - content_type = 'application/json', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ Array of Enums :param skip_deserialization: If true then api_response.response will be set but @@ -176,7 +180,7 @@ def array_of_enums( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -208,13 +212,17 @@ def array_of_enums( def array_of_enums( self, - body = schemas.unset, - content_type = 'application/json', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._array_of_enums_oapg( body=body, content_type=content_type, @@ -237,7 +245,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -269,13 +277,17 @@ def post( def post( self, - body = schemas.unset, - content_type = 'application/json', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._array_of_enums_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_array_of_enums/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_array_of_enums/post.pyi index e042e59fac8..950ab970e1b 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_array_of_enums/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_array_of_enums/post.pyi @@ -46,7 +46,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -78,13 +78,17 @@ class BaseApi(api_client.Api): def _array_of_enums_oapg( self, - body = schemas.unset, - content_type = 'application/json', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ Array of Enums :param skip_deserialization: If true then api_response.response will be set but @@ -145,7 +149,7 @@ class ArrayOfEnums(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -177,13 +181,17 @@ class ArrayOfEnums(BaseApi): def array_of_enums( self, - body = schemas.unset, - content_type = 'application/json', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._array_of_enums_oapg( body=body, content_type=content_type, @@ -206,7 +214,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -238,13 +246,17 @@ class ApiForpost(BaseApi): def post( self, - body = schemas.unset, - content_type = 'application/json', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._array_of_enums_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_arraymodel/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_arraymodel/post.py index 9d82a02343d..91bc16eb4a7 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_arraymodel/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_arraymodel/post.py @@ -77,7 +77,7 @@ def _array_model_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -109,13 +109,17 @@ def _array_model_oapg( def _array_model_oapg( self, - body = schemas.unset, - content_type = 'application/json', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -175,7 +179,7 @@ def array_model( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -207,13 +211,17 @@ def array_model( def array_model( self, - body = schemas.unset, - content_type = 'application/json', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._array_model_oapg( body=body, content_type=content_type, @@ -236,7 +244,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -268,13 +276,17 @@ def post( def post( self, - body = schemas.unset, - content_type = 'application/json', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._array_model_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_arraymodel/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_arraymodel/post.pyi index 8264a66732a..16a075236ce 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_arraymodel/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_arraymodel/post.pyi @@ -46,7 +46,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -78,13 +78,17 @@ class BaseApi(api_client.Api): def _array_model_oapg( self, - body = schemas.unset, - content_type = 'application/json', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,7 +148,7 @@ class ArrayModel(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -176,13 +180,17 @@ class ArrayModel(BaseApi): def array_model( self, - body = schemas.unset, - content_type = 'application/json', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._array_model_oapg( body=body, content_type=content_type, @@ -205,7 +213,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -237,13 +245,17 @@ class ApiForpost(BaseApi): def post( self, - body = schemas.unset, - content_type = 'application/json', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._array_model_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_boolean/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_boolean/post.py index 4307eb13cc7..b68295a2fa0 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_boolean/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_boolean/post.py @@ -75,7 +75,7 @@ def _boolean_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -107,13 +107,17 @@ def _boolean_oapg( def _boolean_oapg( self, - body = schemas.unset, - content_type = 'application/json', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,bool, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -173,7 +177,7 @@ def boolean( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -205,13 +209,17 @@ def boolean( def boolean( self, - body = schemas.unset, - content_type = 'application/json', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,bool, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._boolean_oapg( body=body, content_type=content_type, @@ -234,7 +242,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -266,13 +274,17 @@ def post( def post( self, - body = schemas.unset, - content_type = 'application/json', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,bool, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._boolean_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_boolean/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_boolean/post.pyi index 48c115638fe..104831fa65e 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_boolean/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_boolean/post.pyi @@ -44,7 +44,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -76,13 +76,17 @@ class BaseApi(api_client.Api): def _boolean_oapg( self, - body = schemas.unset, - content_type = 'application/json', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,bool, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -142,7 +146,7 @@ class Boolean(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -174,13 +178,17 @@ class Boolean(BaseApi): def boolean( self, - body = schemas.unset, - content_type = 'application/json', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,bool, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._boolean_oapg( body=body, content_type=content_type, @@ -203,7 +211,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -235,13 +243,17 @@ class ApiForpost(BaseApi): def post( self, - body = schemas.unset, - content_type = 'application/json', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,bool, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._boolean_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_composed_one_of_number_with_validations/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_composed_one_of_number_with_validations/post.py index 270fa92ab55..1c55ab10fcc 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_composed_one_of_number_with_validations/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_composed_one_of_number_with_validations/post.py @@ -77,7 +77,7 @@ def _composed_one_of_different_types_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -109,13 +109,17 @@ def _composed_one_of_different_types_oapg( def _composed_one_of_different_types_oapg( self, - body = schemas.unset, - content_type = 'application/json', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -175,7 +179,7 @@ def composed_one_of_different_types( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -207,13 +211,17 @@ def composed_one_of_different_types( def composed_one_of_different_types( self, - body = schemas.unset, - content_type = 'application/json', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._composed_one_of_different_types_oapg( body=body, content_type=content_type, @@ -236,7 +244,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -268,13 +276,17 @@ def post( def post( self, - body = schemas.unset, - content_type = 'application/json', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._composed_one_of_different_types_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_composed_one_of_number_with_validations/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_composed_one_of_number_with_validations/post.pyi index 6f046a9024c..4d9a1732972 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_composed_one_of_number_with_validations/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_composed_one_of_number_with_validations/post.pyi @@ -46,7 +46,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -78,13 +78,17 @@ class BaseApi(api_client.Api): def _composed_one_of_different_types_oapg( self, - body = schemas.unset, - content_type = 'application/json', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,7 +148,7 @@ class ComposedOneOfDifferentTypes(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -176,13 +180,17 @@ class ComposedOneOfDifferentTypes(BaseApi): def composed_one_of_different_types( self, - body = schemas.unset, - content_type = 'application/json', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._composed_one_of_different_types_oapg( body=body, content_type=content_type, @@ -205,7 +213,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -237,13 +245,17 @@ class ApiForpost(BaseApi): def post( self, - body = schemas.unset, - content_type = 'application/json', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._composed_one_of_different_types_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_enum/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_enum/post.py index 1ebffe09077..7ed8a4d8576 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_enum/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_enum/post.py @@ -77,7 +77,7 @@ def _string_enum_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -109,13 +109,17 @@ def _string_enum_oapg( def _string_enum_oapg( self, - body = schemas.unset, - content_type = 'application/json', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -175,7 +179,7 @@ def string_enum( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -207,13 +211,17 @@ def string_enum( def string_enum( self, - body = schemas.unset, - content_type = 'application/json', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._string_enum_oapg( body=body, content_type=content_type, @@ -236,7 +244,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -268,13 +276,17 @@ def post( def post( self, - body = schemas.unset, - content_type = 'application/json', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._string_enum_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_enum/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_enum/post.pyi index 94a9939a49f..f3f1f67ed7d 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_enum/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_enum/post.pyi @@ -46,7 +46,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -78,13 +78,17 @@ class BaseApi(api_client.Api): def _string_enum_oapg( self, - body = schemas.unset, - content_type = 'application/json', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,7 +148,7 @@ class StringEnum(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -176,13 +180,17 @@ class StringEnum(BaseApi): def string_enum( self, - body = schemas.unset, - content_type = 'application/json', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._string_enum_oapg( body=body, content_type=content_type, @@ -205,7 +213,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -237,13 +245,17 @@ class ApiForpost(BaseApi): def post( self, - body = schemas.unset, - content_type = 'application/json', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._string_enum_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_mammal/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_mammal/post.py index d05c0d4fa7c..26d2492f1a0 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_mammal/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_mammal/post.py @@ -78,7 +78,7 @@ def _mammal_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -110,13 +110,17 @@ def _mammal_oapg( def _mammal_oapg( self, - body, - content_type = 'application/json', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -178,7 +182,7 @@ def mammal( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -210,13 +214,17 @@ def mammal( def mammal( self, - body, - content_type = 'application/json', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._mammal_oapg( body=body, content_type=content_type, @@ -239,7 +247,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -271,13 +279,17 @@ def post( def post( self, - body, - content_type = 'application/json', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._mammal_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_mammal/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_mammal/post.pyi index 21d3263c643..f74f3c1da77 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_mammal/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_mammal/post.pyi @@ -46,7 +46,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -78,13 +78,17 @@ class BaseApi(api_client.Api): def _mammal_oapg( self, - body, - content_type = 'application/json', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -146,7 +150,7 @@ class Mammal(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -178,13 +182,17 @@ class Mammal(BaseApi): def mammal( self, - body, - content_type = 'application/json', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._mammal_oapg( body=body, content_type=content_type, @@ -207,7 +215,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -239,13 +247,17 @@ class ApiForpost(BaseApi): def post( self, - body, - content_type = 'application/json', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._mammal_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_number/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_number/post.py index 94f7aab99fc..59e786575b8 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_number/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_number/post.py @@ -77,7 +77,7 @@ def _number_with_validations_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -109,13 +109,17 @@ def _number_with_validations_oapg( def _number_with_validations_oapg( self, - body = schemas.unset, - content_type = 'application/json', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -175,7 +179,7 @@ def number_with_validations( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -207,13 +211,17 @@ def number_with_validations( def number_with_validations( self, - body = schemas.unset, - content_type = 'application/json', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._number_with_validations_oapg( body=body, content_type=content_type, @@ -236,7 +244,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -268,13 +276,17 @@ def post( def post( self, - body = schemas.unset, - content_type = 'application/json', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._number_with_validations_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_number/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_number/post.pyi index dc60a287b27..a6d5d251893 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_number/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_number/post.pyi @@ -46,7 +46,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -78,13 +78,17 @@ class BaseApi(api_client.Api): def _number_with_validations_oapg( self, - body = schemas.unset, - content_type = 'application/json', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,7 +148,7 @@ class NumberWithValidations(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -176,13 +180,17 @@ class NumberWithValidations(BaseApi): def number_with_validations( self, - body = schemas.unset, - content_type = 'application/json', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._number_with_validations_oapg( body=body, content_type=content_type, @@ -205,7 +213,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -237,13 +245,17 @@ class ApiForpost(BaseApi): def post( self, - body = schemas.unset, - content_type = 'application/json', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._number_with_validations_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_object_model_with_ref_props/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_object_model_with_ref_props/post.py index 7974e25698f..bc480989017 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_object_model_with_ref_props/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_object_model_with_ref_props/post.py @@ -77,7 +77,7 @@ def _object_model_with_ref_props_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -109,13 +109,17 @@ def _object_model_with_ref_props_oapg( def _object_model_with_ref_props_oapg( self, - body = schemas.unset, - content_type = 'application/json', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -175,7 +179,7 @@ def object_model_with_ref_props( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -207,13 +211,17 @@ def object_model_with_ref_props( def object_model_with_ref_props( self, - body = schemas.unset, - content_type = 'application/json', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._object_model_with_ref_props_oapg( body=body, content_type=content_type, @@ -236,7 +244,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -268,13 +276,17 @@ def post( def post( self, - body = schemas.unset, - content_type = 'application/json', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._object_model_with_ref_props_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_object_model_with_ref_props/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_object_model_with_ref_props/post.pyi index 984a1775309..fe5e05f4e26 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_object_model_with_ref_props/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_object_model_with_ref_props/post.pyi @@ -46,7 +46,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -78,13 +78,17 @@ class BaseApi(api_client.Api): def _object_model_with_ref_props_oapg( self, - body = schemas.unset, - content_type = 'application/json', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -144,7 +148,7 @@ class ObjectModelWithRefProps(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -176,13 +180,17 @@ class ObjectModelWithRefProps(BaseApi): def object_model_with_ref_props( self, - body = schemas.unset, - content_type = 'application/json', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._object_model_with_ref_props_oapg( body=body, content_type=content_type, @@ -205,7 +213,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -237,13 +245,17 @@ class ApiForpost(BaseApi): def post( self, - body = schemas.unset, - content_type = 'application/json', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._object_model_with_ref_props_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_string/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_string/post.py index 1424f33eff7..a59cc38880e 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_string/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_string/post.py @@ -75,7 +75,7 @@ def _string_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -107,13 +107,17 @@ def _string_oapg( def _string_oapg( self, - body = schemas.unset, - content_type = 'application/json', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,str, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -173,7 +177,7 @@ def string( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -205,13 +209,17 @@ def string( def string( self, - body = schemas.unset, - content_type = 'application/json', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,str, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._string_oapg( body=body, content_type=content_type, @@ -234,7 +242,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -266,13 +274,17 @@ def post( def post( self, - body = schemas.unset, - content_type = 'application/json', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,str, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._string_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_string/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_string/post.pyi index 33e52f3a9d9..95a033780c1 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_string/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_refs_string/post.pyi @@ -44,7 +44,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -76,13 +76,17 @@ class BaseApi(api_client.Api): def _string_oapg( self, - body = schemas.unset, - content_type = 'application/json', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,str, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -142,7 +146,7 @@ class String(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -174,13 +178,17 @@ class String(BaseApi): def string( self, - body = schemas.unset, - content_type = 'application/json', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,str, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._string_oapg( body=body, content_type=content_type, @@ -203,7 +211,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -235,13 +243,17 @@ class ApiForpost(BaseApi): def post( self, - body = schemas.unset, - content_type = 'application/json', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,str, schemas.Unset] = schemas.unset, + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._string_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_response_without_schema/get.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_response_without_schema/get.py index 566b3bd9d01..145b627fb63 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_response_without_schema/get.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_response_without_schema/get.py @@ -64,7 +64,7 @@ def _response_without_schema_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -92,11 +92,15 @@ def _response_without_schema_oapg( def _response_without_schema_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ receives a response without schema :param skip_deserialization: If true then api_response.response will be set but @@ -144,7 +148,7 @@ def response_without_schema( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -172,11 +176,15 @@ def response_without_schema( def response_without_schema( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._response_without_schema_oapg( accept_content_types=accept_content_types, stream=stream, @@ -195,7 +203,7 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -223,11 +231,15 @@ def get( def get( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._response_without_schema_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_response_without_schema/get.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_response_without_schema/get.pyi index de73c8689fb..722716c7a52 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_response_without_schema/get.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_response_without_schema/get.pyi @@ -40,7 +40,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -68,11 +68,15 @@ class BaseApi(api_client.Api): def _response_without_schema_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ receives a response without schema :param skip_deserialization: If true then api_response.response will be set but @@ -120,7 +124,7 @@ class ResponseWithoutSchema(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -148,11 +152,15 @@ class ResponseWithoutSchema(BaseApi): def response_without_schema( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._response_without_schema_oapg( accept_content_types=accept_content_types, stream=stream, @@ -171,7 +179,7 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -199,11 +207,15 @@ class ApiForget(BaseApi): def get( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._response_without_schema_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_test_query_paramters/put.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_test_query_paramters/put.py index 01e67eb2b51..20018f389e5 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_test_query_paramters/put.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_test_query_paramters/put.py @@ -233,7 +233,7 @@ def _query_parameter_collection_format_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -261,11 +261,15 @@ def _query_parameter_collection_format_oapg( def _query_parameter_collection_format_oapg( self, - query_params = frozendict.frozendict(), - stream = False, - timeout = None, - skip_deserialization = False, - ): + query_params: RequestQueryParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -325,7 +329,7 @@ def query_parameter_collection_format( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -353,11 +357,15 @@ def query_parameter_collection_format( def query_parameter_collection_format( self, - query_params = frozendict.frozendict(), - stream = False, - timeout = None, - skip_deserialization = False, - ): + query_params: RequestQueryParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._query_parameter_collection_format_oapg( query_params=query_params, stream=stream, @@ -376,7 +384,7 @@ def put( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -404,11 +412,15 @@ def put( def put( self, - query_params = frozendict.frozendict(), - stream = False, - timeout = None, - skip_deserialization = False, - ): + query_params: RequestQueryParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._query_parameter_collection_format_oapg( query_params=query_params, stream=stream, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_test_query_paramters/put.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_test_query_paramters/put.pyi index fce33f2a61f..64069d6783e 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_test_query_paramters/put.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_test_query_paramters/put.pyi @@ -154,7 +154,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -182,11 +182,15 @@ class BaseApi(api_client.Api): def _query_parameter_collection_format_oapg( self, - query_params = frozendict.frozendict(), - stream = False, - timeout = None, - skip_deserialization = False, - ): + query_params: RequestQueryParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -246,7 +250,7 @@ class QueryParameterCollectionFormat(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -274,11 +278,15 @@ class QueryParameterCollectionFormat(BaseApi): def query_parameter_collection_format( self, - query_params = frozendict.frozendict(), - stream = False, - timeout = None, - skip_deserialization = False, - ): + query_params: RequestQueryParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._query_parameter_collection_format_oapg( query_params=query_params, stream=stream, @@ -297,7 +305,7 @@ class ApiForput(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -325,11 +333,15 @@ class ApiForput(BaseApi): def put( self, - query_params = frozendict.frozendict(), - stream = False, - timeout = None, - skip_deserialization = False, - ): + query_params: RequestQueryParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._query_parameter_collection_format_oapg( query_params=query_params, stream=stream, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_download_file/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_download_file/post.py index ed4b007cde5..da6725cc58c 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_download_file/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_download_file/post.py @@ -76,7 +76,7 @@ def _upload_download_file_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -108,13 +108,17 @@ def _upload_download_file_oapg( def _upload_download_file_oapg( self, - body, - content_type = 'application/octet-stream', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationOctetStream,bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/octet-stream', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ uploads a file and downloads a file using application/octet-stream :param skip_deserialization: If true then api_response.response will be set but @@ -177,7 +181,7 @@ def upload_download_file( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -209,13 +213,17 @@ def upload_download_file( def upload_download_file( self, - body, - content_type = 'application/octet-stream', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationOctetStream,bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/octet-stream', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._upload_download_file_oapg( body=body, content_type=content_type, @@ -238,7 +246,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -270,13 +278,17 @@ def post( def post( self, - body, - content_type = 'application/octet-stream', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationOctetStream,bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/octet-stream', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._upload_download_file_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_download_file/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_download_file/post.pyi index f5e75567e87..15892d17790 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_download_file/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_download_file/post.pyi @@ -44,7 +44,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -76,13 +76,17 @@ class BaseApi(api_client.Api): def _upload_download_file_oapg( self, - body, - content_type = 'application/octet-stream', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationOctetStream,bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/octet-stream', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ uploads a file and downloads a file using application/octet-stream :param skip_deserialization: If true then api_response.response will be set but @@ -145,7 +149,7 @@ class UploadDownloadFile(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -177,13 +181,17 @@ class UploadDownloadFile(BaseApi): def upload_download_file( self, - body, - content_type = 'application/octet-stream', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationOctetStream,bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/octet-stream', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._upload_download_file_oapg( body=body, content_type=content_type, @@ -206,7 +214,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -238,13 +246,17 @@ class ApiForpost(BaseApi): def post( self, - body, - content_type = 'application/octet-stream', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationOctetStream,bytes, io.FileIO, io.BufferedReader, ], + content_type: str = 'application/octet-stream', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._upload_download_file_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_file/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_file/post.py index 03ceffe4a7a..3cd5ff6f1bb 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_file/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_file/post.py @@ -141,7 +141,7 @@ def _upload_file_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -173,13 +173,17 @@ def _upload_file_oapg( def _upload_file_oapg( self, - body = schemas.unset, - content_type = 'multipart/form-data', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + content_type: str = 'multipart/form-data', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ uploads a file using multipart/form-data :param skip_deserialization: If true then api_response.response will be set but @@ -240,7 +244,7 @@ def upload_file( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -272,13 +276,17 @@ def upload_file( def upload_file( self, - body = schemas.unset, - content_type = 'multipart/form-data', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + content_type: str = 'multipart/form-data', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._upload_file_oapg( body=body, content_type=content_type, @@ -301,7 +309,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -333,13 +341,17 @@ def post( def post( self, - body = schemas.unset, - content_type = 'multipart/form-data', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + content_type: str = 'multipart/form-data', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._upload_file_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_file/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_file/post.pyi index 4fdf2fde1b2..5de8c624466 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_file/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_file/post.pyi @@ -110,7 +110,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -142,13 +142,17 @@ class BaseApi(api_client.Api): def _upload_file_oapg( self, - body = schemas.unset, - content_type = 'multipart/form-data', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + content_type: str = 'multipart/form-data', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ uploads a file using multipart/form-data :param skip_deserialization: If true then api_response.response will be set but @@ -209,7 +213,7 @@ class UploadFile(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -241,13 +245,17 @@ class UploadFile(BaseApi): def upload_file( self, - body = schemas.unset, - content_type = 'multipart/form-data', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + content_type: str = 'multipart/form-data', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._upload_file_oapg( body=body, content_type=content_type, @@ -270,7 +278,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -302,13 +310,17 @@ class ApiForpost(BaseApi): def post( self, - body = schemas.unset, - content_type = 'multipart/form-data', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + content_type: str = 'multipart/form-data', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._upload_file_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_files/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_files/post.py index 997912e9f7c..5176b44a3b7 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_files/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_files/post.py @@ -148,7 +148,7 @@ def _upload_files_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -180,13 +180,17 @@ def _upload_files_oapg( def _upload_files_oapg( self, - body = schemas.unset, - content_type = 'multipart/form-data', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + content_type: str = 'multipart/form-data', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ uploads files using multipart/form-data :param skip_deserialization: If true then api_response.response will be set but @@ -247,7 +251,7 @@ def upload_files( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -279,13 +283,17 @@ def upload_files( def upload_files( self, - body = schemas.unset, - content_type = 'multipart/form-data', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + content_type: str = 'multipart/form-data', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._upload_files_oapg( body=body, content_type=content_type, @@ -308,7 +316,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -340,13 +348,17 @@ def post( def post( self, - body = schemas.unset, - content_type = 'multipart/form-data', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + content_type: str = 'multipart/form-data', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._upload_files_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_files/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_files/post.pyi index e040d26050a..ef90c82e6dc 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_files/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/fake_upload_files/post.pyi @@ -117,7 +117,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -149,13 +149,17 @@ class BaseApi(api_client.Api): def _upload_files_oapg( self, - body = schemas.unset, - content_type = 'multipart/form-data', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + content_type: str = 'multipart/form-data', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ uploads files using multipart/form-data :param skip_deserialization: If true then api_response.response will be set but @@ -216,7 +220,7 @@ class UploadFiles(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -248,13 +252,17 @@ class UploadFiles(BaseApi): def upload_files( self, - body = schemas.unset, - content_type = 'multipart/form-data', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + content_type: str = 'multipart/form-data', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._upload_files_oapg( body=body, content_type=content_type, @@ -277,7 +285,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -309,13 +317,17 @@ class ApiForpost(BaseApi): def post( self, - body = schemas.unset, - content_type = 'multipart/form-data', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + content_type: str = 'multipart/form-data', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._upload_files_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/foo/get.py b/samples/openapi3/client/petstore/python/petstore_api/paths/foo/get.py index 8e6bda548fc..d9ce90c2f7c 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/foo/get.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/foo/get.py @@ -117,7 +117,7 @@ def _foo_get_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseForDefault,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseForDefault,api_client.ApiResponse]: ... @typing.overload @@ -145,11 +145,15 @@ def _foo_get_oapg( def _foo_get_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseForDefault, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -200,7 +204,7 @@ def foo_get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseForDefault,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseForDefault,api_client.ApiResponse]: ... @typing.overload @@ -228,11 +232,15 @@ def foo_get( def foo_get( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseForDefault, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._foo_get_oapg( accept_content_types=accept_content_types, stream=stream, @@ -251,7 +259,7 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseForDefault,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseForDefault,api_client.ApiResponse]: ... @typing.overload @@ -279,11 +287,15 @@ def get( def get( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseForDefault, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._foo_get_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/foo/get.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/foo/get.pyi index 960dfb509f3..7a42dcaffb0 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/foo/get.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/foo/get.pyi @@ -94,7 +94,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseForDefault,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseForDefault,api_client.ApiResponse]: ... @typing.overload @@ -122,11 +122,15 @@ class BaseApi(api_client.Api): def _foo_get_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseForDefault, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ :param skip_deserialization: If true then api_response.response will be set but api_response.body and api_response.headers will not be deserialized into schema @@ -177,7 +181,7 @@ class FooGet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseForDefault,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseForDefault,api_client.ApiResponse]: ... @typing.overload @@ -205,11 +209,15 @@ class FooGet(BaseApi): def foo_get( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseForDefault, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._foo_get_oapg( accept_content_types=accept_content_types, stream=stream, @@ -228,7 +236,7 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseForDefault,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseForDefault,api_client.ApiResponse]: ... @typing.overload @@ -256,11 +264,15 @@ class ApiForget(BaseApi): def get( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseForDefault, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._foo_get_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/pet/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/pet/post.py index f7c05cd9dcd..ad73e4d5185 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/pet/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/pet/post.py @@ -98,7 +98,7 @@ def _add_pet_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -130,13 +130,17 @@ def _add_pet_oapg( def _add_pet_oapg( self, - body, - content_type = 'application/json', - host_index = None, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,SchemaForRequestBodyApplicationXml,], + content_type: str = 'application/json', + host_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ Add a new pet to the store :param skip_deserialization: If true then api_response.response will be set but @@ -200,7 +204,7 @@ def add_pet( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -232,13 +236,17 @@ def add_pet( def add_pet( self, - body, - content_type = 'application/json', - host_index = None, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,SchemaForRequestBodyApplicationXml,], + content_type: str = 'application/json', + host_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._add_pet_oapg( body=body, content_type=content_type, @@ -261,7 +269,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -293,13 +301,17 @@ def post( def post( self, - body, - content_type = 'application/json', - host_index = None, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,SchemaForRequestBodyApplicationXml,], + content_type: str = 'application/json', + host_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._add_pet_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/pet/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/pet/post.pyi index 3419fdb6077..70f01f93d5f 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/pet/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/pet/post.pyi @@ -43,7 +43,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -75,13 +75,17 @@ class BaseApi(api_client.Api): def _add_pet_oapg( self, - body, - content_type = 'application/json', - host_index = None, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,SchemaForRequestBodyApplicationXml,], + content_type: str = 'application/json', + host_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ Add a new pet to the store :param skip_deserialization: If true then api_response.response will be set but @@ -145,7 +149,7 @@ class AddPet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -177,13 +181,17 @@ class AddPet(BaseApi): def add_pet( self, - body, - content_type = 'application/json', - host_index = None, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,SchemaForRequestBodyApplicationXml,], + content_type: str = 'application/json', + host_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._add_pet_oapg( body=body, content_type=content_type, @@ -206,7 +214,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -238,13 +246,17 @@ class ApiForpost(BaseApi): def post( self, - body, - content_type = 'application/json', - host_index = None, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,SchemaForRequestBodyApplicationXml,], + content_type: str = 'application/json', + host_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._add_pet_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/pet/put.py b/samples/openapi3/client/petstore/python/petstore_api/paths/pet/put.py index b2295ac22e3..4fdbfe19e9a 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/pet/put.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/pet/put.py @@ -111,7 +111,7 @@ def _update_pet_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[api_client.ApiResponse,]: + ) -> typing.Union[api_client.ApiResponse]: ... @typing.overload @@ -142,13 +142,16 @@ def _update_pet_oapg( def _update_pet_oapg( self, - body, - content_type = 'application/json', - host_index = None, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,SchemaForRequestBodyApplicationXml,], + content_type: str = 'application/json', + host_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ Update an existing pet :param skip_deserialization: If true then api_response.response will be set but @@ -212,7 +215,7 @@ def update_pet( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[api_client.ApiResponse,]: + ) -> typing.Union[api_client.ApiResponse]: ... @typing.overload @@ -243,13 +246,16 @@ def update_pet( def update_pet( self, - body, - content_type = 'application/json', - host_index = None, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,SchemaForRequestBodyApplicationXml,], + content_type: str = 'application/json', + host_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._update_pet_oapg( body=body, content_type=content_type, @@ -272,7 +278,7 @@ def put( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[api_client.ApiResponse,]: + ) -> typing.Union[api_client.ApiResponse]: ... @typing.overload @@ -303,13 +309,16 @@ def put( def put( self, - body, - content_type = 'application/json', - host_index = None, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,SchemaForRequestBodyApplicationXml,], + content_type: str = 'application/json', + host_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._update_pet_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/pet/put.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/pet/put.pyi index 0ef813911b8..815734261ab 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/pet/put.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/pet/put.pyi @@ -43,7 +43,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[api_client.ApiResponse,]: + ) -> typing.Union[api_client.ApiResponse]: ... @typing.overload @@ -74,13 +74,16 @@ class BaseApi(api_client.Api): def _update_pet_oapg( self, - body, - content_type = 'application/json', - host_index = None, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,SchemaForRequestBodyApplicationXml,], + content_type: str = 'application/json', + host_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ Update an existing pet :param skip_deserialization: If true then api_response.response will be set but @@ -144,7 +147,7 @@ class UpdatePet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[api_client.ApiResponse,]: + ) -> typing.Union[api_client.ApiResponse]: ... @typing.overload @@ -175,13 +178,16 @@ class UpdatePet(BaseApi): def update_pet( self, - body, - content_type = 'application/json', - host_index = None, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,SchemaForRequestBodyApplicationXml,], + content_type: str = 'application/json', + host_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._update_pet_oapg( body=body, content_type=content_type, @@ -204,7 +210,7 @@ class ApiForput(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[api_client.ApiResponse,]: + ) -> typing.Union[api_client.ApiResponse]: ... @typing.overload @@ -235,13 +241,16 @@ class ApiForput(BaseApi): def put( self, - body, - content_type = 'application/json', - host_index = None, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,SchemaForRequestBodyApplicationXml,], + content_type: str = 'application/json', + host_index: typing.Optional[int] = None, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._update_pet_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_find_by_status/get.py b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_find_by_status/get.py index e96d08d6eba..dc71fe90bec 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_find_by_status/get.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_find_by_status/get.py @@ -211,7 +211,7 @@ def _find_pets_by_status_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -241,12 +241,16 @@ def _find_pets_by_status_oapg( def _find_pets_by_status_oapg( self, - query_params = frozendict.frozendict(), - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + query_params: RequestQueryParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ Finds Pets by status :param skip_deserialization: If true then api_response.response will be set but @@ -310,7 +314,7 @@ def find_pets_by_status( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -340,12 +344,16 @@ def find_pets_by_status( def find_pets_by_status( self, - query_params = frozendict.frozendict(), - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + query_params: RequestQueryParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._find_pets_by_status_oapg( query_params=query_params, accept_content_types=accept_content_types, @@ -366,7 +374,7 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -396,12 +404,16 @@ def get( def get( self, - query_params = frozendict.frozendict(), - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + query_params: RequestQueryParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._find_pets_by_status_oapg( query_params=query_params, accept_content_types=accept_content_types, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_find_by_status/get.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_find_by_status/get.pyi index 071d095cdd9..8d5d68cd194 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_find_by_status/get.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_find_by_status/get.pyi @@ -136,7 +136,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -166,12 +166,16 @@ class BaseApi(api_client.Api): def _find_pets_by_status_oapg( self, - query_params = frozendict.frozendict(), - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + query_params: RequestQueryParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ Finds Pets by status :param skip_deserialization: If true then api_response.response will be set but @@ -235,7 +239,7 @@ class FindPetsByStatus(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -265,12 +269,16 @@ class FindPetsByStatus(BaseApi): def find_pets_by_status( self, - query_params = frozendict.frozendict(), - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + query_params: RequestQueryParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._find_pets_by_status_oapg( query_params=query_params, accept_content_types=accept_content_types, @@ -291,7 +299,7 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -321,12 +329,16 @@ class ApiForget(BaseApi): def get( self, - query_params = frozendict.frozendict(), - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + query_params: RequestQueryParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._find_pets_by_status_oapg( query_params=query_params, accept_content_types=accept_content_types, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_find_by_tags/get.py b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_find_by_tags/get.py index d1b504c68fb..73659ef5b19 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_find_by_tags/get.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_find_by_tags/get.py @@ -186,7 +186,7 @@ def _find_pets_by_tags_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -216,12 +216,16 @@ def _find_pets_by_tags_oapg( def _find_pets_by_tags_oapg( self, - query_params = frozendict.frozendict(), - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + query_params: RequestQueryParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ Finds Pets by tags :param skip_deserialization: If true then api_response.response will be set but @@ -285,7 +289,7 @@ def find_pets_by_tags( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -315,12 +319,16 @@ def find_pets_by_tags( def find_pets_by_tags( self, - query_params = frozendict.frozendict(), - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + query_params: RequestQueryParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._find_pets_by_tags_oapg( query_params=query_params, accept_content_types=accept_content_types, @@ -341,7 +349,7 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -371,12 +379,16 @@ def get( def get( self, - query_params = frozendict.frozendict(), - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + query_params: RequestQueryParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._find_pets_by_tags_oapg( query_params=query_params, accept_content_types=accept_content_types, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_find_by_tags/get.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_find_by_tags/get.pyi index d7e4750598f..1f580f16acd 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_find_by_tags/get.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_find_by_tags/get.pyi @@ -119,7 +119,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -149,12 +149,16 @@ class BaseApi(api_client.Api): def _find_pets_by_tags_oapg( self, - query_params = frozendict.frozendict(), - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + query_params: RequestQueryParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ Finds Pets by tags :param skip_deserialization: If true then api_response.response will be set but @@ -218,7 +222,7 @@ class FindPetsByTags(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -248,12 +252,16 @@ class FindPetsByTags(BaseApi): def find_pets_by_tags( self, - query_params = frozendict.frozendict(), - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + query_params: RequestQueryParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._find_pets_by_tags_oapg( query_params=query_params, accept_content_types=accept_content_types, @@ -274,7 +282,7 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -304,12 +312,16 @@ class ApiForget(BaseApi): def get( self, - query_params = frozendict.frozendict(), - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + query_params: RequestQueryParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._find_pets_by_tags_oapg( query_params=query_params, accept_content_types=accept_content_types, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/delete.py b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/delete.py index b6da16aef65..263fbbc71a0 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/delete.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/delete.py @@ -108,7 +108,7 @@ def _delete_pet_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[api_client.ApiResponse,]: + ) -> typing.Union[api_client.ApiResponse]: ... @typing.overload @@ -137,12 +137,15 @@ def _delete_pet_oapg( def _delete_pet_oapg( self, - header_params = frozendict.frozendict(), - path_params = frozendict.frozendict(), - stream = False, - timeout = None, - skip_deserialization = False, - ): + header_params: RequestHeaderParams = frozendict.frozendict(), + path_params: RequestPathParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ Deletes a pet :param skip_deserialization: If true then api_response.response will be set but @@ -212,7 +215,7 @@ def delete_pet( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[api_client.ApiResponse,]: + ) -> typing.Union[api_client.ApiResponse]: ... @typing.overload @@ -241,12 +244,15 @@ def delete_pet( def delete_pet( self, - header_params = frozendict.frozendict(), - path_params = frozendict.frozendict(), - stream = False, - timeout = None, - skip_deserialization = False, - ): + header_params: RequestHeaderParams = frozendict.frozendict(), + path_params: RequestPathParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._delete_pet_oapg( header_params=header_params, path_params=path_params, @@ -267,7 +273,7 @@ def delete( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[api_client.ApiResponse,]: + ) -> typing.Union[api_client.ApiResponse]: ... @typing.overload @@ -296,12 +302,15 @@ def delete( def delete( self, - header_params = frozendict.frozendict(), - path_params = frozendict.frozendict(), - stream = False, - timeout = None, - skip_deserialization = False, - ): + header_params: RequestHeaderParams = frozendict.frozendict(), + path_params: RequestPathParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._delete_pet_oapg( header_params=header_params, path_params=path_params, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/delete.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/delete.pyi index af117897895..5d3588e94c0 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/delete.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/delete.pyi @@ -41,7 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[api_client.ApiResponse,]: + ) -> typing.Union[api_client.ApiResponse]: ... @typing.overload @@ -70,12 +70,15 @@ class BaseApi(api_client.Api): def _delete_pet_oapg( self, - header_params = frozendict.frozendict(), - path_params = frozendict.frozendict(), - stream = False, - timeout = None, - skip_deserialization = False, - ): + header_params: RequestHeaderParams = frozendict.frozendict(), + path_params: RequestPathParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ Deletes a pet :param skip_deserialization: If true then api_response.response will be set but @@ -145,7 +148,7 @@ class DeletePet(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[api_client.ApiResponse,]: + ) -> typing.Union[api_client.ApiResponse]: ... @typing.overload @@ -174,12 +177,15 @@ class DeletePet(BaseApi): def delete_pet( self, - header_params = frozendict.frozendict(), - path_params = frozendict.frozendict(), - stream = False, - timeout = None, - skip_deserialization = False, - ): + header_params: RequestHeaderParams = frozendict.frozendict(), + path_params: RequestPathParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._delete_pet_oapg( header_params=header_params, path_params=path_params, @@ -200,7 +206,7 @@ class ApiFordelete(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[api_client.ApiResponse,]: + ) -> typing.Union[api_client.ApiResponse]: ... @typing.overload @@ -229,12 +235,15 @@ class ApiFordelete(BaseApi): def delete( self, - header_params = frozendict.frozendict(), - path_params = frozendict.frozendict(), - stream = False, - timeout = None, - skip_deserialization = False, - ): + header_params: RequestHeaderParams = frozendict.frozendict(), + path_params: RequestPathParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._delete_pet_oapg( header_params=header_params, path_params=path_params, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/get.py b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/get.py index 0758a5a2364..26ae505591f 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/get.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/get.py @@ -126,7 +126,7 @@ def _get_pet_by_id_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -156,12 +156,16 @@ def _get_pet_by_id_oapg( def _get_pet_by_id_oapg( self, - path_params = frozendict.frozendict(), - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + path_params: RequestPathParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ Find pet by ID :param skip_deserialization: If true then api_response.response will be set but @@ -225,7 +229,7 @@ def get_pet_by_id( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -255,12 +259,16 @@ def get_pet_by_id( def get_pet_by_id( self, - path_params = frozendict.frozendict(), - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + path_params: RequestPathParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._get_pet_by_id_oapg( path_params=path_params, accept_content_types=accept_content_types, @@ -281,7 +289,7 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -311,12 +319,16 @@ def get( def get( self, - path_params = frozendict.frozendict(), - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + path_params: RequestPathParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._get_pet_by_id_oapg( path_params=path_params, accept_content_types=accept_content_types, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/get.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/get.pyi index 64ab2f4cd15..5a6d78db835 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/get.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/get.pyi @@ -47,7 +47,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -77,12 +77,16 @@ class BaseApi(api_client.Api): def _get_pet_by_id_oapg( self, - path_params = frozendict.frozendict(), - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + path_params: RequestPathParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ Find pet by ID :param skip_deserialization: If true then api_response.response will be set but @@ -146,7 +150,7 @@ class GetPetById(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -176,12 +180,16 @@ class GetPetById(BaseApi): def get_pet_by_id( self, - path_params = frozendict.frozendict(), - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + path_params: RequestPathParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._get_pet_by_id_oapg( path_params=path_params, accept_content_types=accept_content_types, @@ -202,7 +210,7 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -232,12 +240,16 @@ class ApiForget(BaseApi): def get( self, - path_params = frozendict.frozendict(), - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + path_params: RequestPathParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._get_pet_by_id_oapg( path_params=path_params, accept_content_types=accept_content_types, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/post.py index c03e0edb7c0..f0b549c7ea1 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/post.py @@ -153,7 +153,7 @@ def _update_pet_with_form_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[api_client.ApiResponse,]: + ) -> typing.Union[api_client.ApiResponse]: ... @typing.overload @@ -184,13 +184,16 @@ def _update_pet_with_form_oapg( def _update_pet_with_form_oapg( self, - body = schemas.unset, - path_params = frozendict.frozendict(), - content_type = 'application/x-www-form-urlencoded', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + path_params: RequestPathParams = frozendict.frozendict(), + content_type: str = 'application/x-www-form-urlencoded', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ Updates a pet in the store with form data :param skip_deserialization: If true then api_response.response will be set but @@ -263,7 +266,7 @@ def update_pet_with_form( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[api_client.ApiResponse,]: + ) -> typing.Union[api_client.ApiResponse]: ... @typing.overload @@ -294,13 +297,16 @@ def update_pet_with_form( def update_pet_with_form( self, - body = schemas.unset, - path_params = frozendict.frozendict(), - content_type = 'application/x-www-form-urlencoded', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + path_params: RequestPathParams = frozendict.frozendict(), + content_type: str = 'application/x-www-form-urlencoded', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._update_pet_with_form_oapg( body=body, path_params=path_params, @@ -323,7 +329,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[api_client.ApiResponse,]: + ) -> typing.Union[api_client.ApiResponse]: ... @typing.overload @@ -354,13 +360,16 @@ def post( def post( self, - body = schemas.unset, - path_params = frozendict.frozendict(), - content_type = 'application/x-www-form-urlencoded', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + path_params: RequestPathParams = frozendict.frozendict(), + content_type: str = 'application/x-www-form-urlencoded', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._update_pet_with_form_oapg( body=body, path_params=path_params, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/post.pyi index 6390048736d..ca2656cb877 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id/post.pyi @@ -101,7 +101,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[api_client.ApiResponse,]: + ) -> typing.Union[api_client.ApiResponse]: ... @typing.overload @@ -132,13 +132,16 @@ class BaseApi(api_client.Api): def _update_pet_with_form_oapg( self, - body = schemas.unset, - path_params = frozendict.frozendict(), - content_type = 'application/x-www-form-urlencoded', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + path_params: RequestPathParams = frozendict.frozendict(), + content_type: str = 'application/x-www-form-urlencoded', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ Updates a pet in the store with form data :param skip_deserialization: If true then api_response.response will be set but @@ -211,7 +214,7 @@ class UpdatePetWithForm(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[api_client.ApiResponse,]: + ) -> typing.Union[api_client.ApiResponse]: ... @typing.overload @@ -242,13 +245,16 @@ class UpdatePetWithForm(BaseApi): def update_pet_with_form( self, - body = schemas.unset, - path_params = frozendict.frozendict(), - content_type = 'application/x-www-form-urlencoded', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + path_params: RequestPathParams = frozendict.frozendict(), + content_type: str = 'application/x-www-form-urlencoded', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._update_pet_with_form_oapg( body=body, path_params=path_params, @@ -271,7 +277,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[api_client.ApiResponse,]: + ) -> typing.Union[api_client.ApiResponse]: ... @typing.overload @@ -302,13 +308,16 @@ class ApiForpost(BaseApi): def post( self, - body = schemas.unset, - path_params = frozendict.frozendict(), - content_type = 'application/x-www-form-urlencoded', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationXWwwFormUrlencoded,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + path_params: RequestPathParams = frozendict.frozendict(), + content_type: str = 'application/x-www-form-urlencoded', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._update_pet_with_form_oapg( body=body, path_params=path_params, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id_upload_image/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id_upload_image/post.py index c9f436ac9e8..b159da69cb6 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id_upload_image/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id_upload_image/post.py @@ -166,7 +166,7 @@ def _upload_image_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -200,14 +200,18 @@ def _upload_image_oapg( def _upload_image_oapg( self, - body = schemas.unset, - path_params = frozendict.frozendict(), - content_type = 'multipart/form-data', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + path_params: RequestPathParams = frozendict.frozendict(), + content_type: str = 'multipart/form-data', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ uploads an image :param skip_deserialization: If true then api_response.response will be set but @@ -284,7 +288,7 @@ def upload_image( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -318,14 +322,18 @@ def upload_image( def upload_image( self, - body = schemas.unset, - path_params = frozendict.frozendict(), - content_type = 'multipart/form-data', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + path_params: RequestPathParams = frozendict.frozendict(), + content_type: str = 'multipart/form-data', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._upload_image_oapg( body=body, path_params=path_params, @@ -350,7 +358,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -384,14 +392,18 @@ def post( def post( self, - body = schemas.unset, - path_params = frozendict.frozendict(), - content_type = 'multipart/form-data', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + path_params: RequestPathParams = frozendict.frozendict(), + content_type: str = 'multipart/form-data', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._upload_image_oapg( body=body, path_params=path_params, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id_upload_image/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id_upload_image/post.pyi index 8809e7cfdb3..9d109c52326 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id_upload_image/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/pet_pet_id_upload_image/post.pyi @@ -108,7 +108,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -142,14 +142,18 @@ class BaseApi(api_client.Api): def _upload_image_oapg( self, - body = schemas.unset, - path_params = frozendict.frozendict(), - content_type = 'multipart/form-data', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + path_params: RequestPathParams = frozendict.frozendict(), + content_type: str = 'multipart/form-data', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ uploads an image :param skip_deserialization: If true then api_response.response will be set but @@ -226,7 +230,7 @@ class UploadImage(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -260,14 +264,18 @@ class UploadImage(BaseApi): def upload_image( self, - body = schemas.unset, - path_params = frozendict.frozendict(), - content_type = 'multipart/form-data', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + path_params: RequestPathParams = frozendict.frozendict(), + content_type: str = 'multipart/form-data', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._upload_image_oapg( body=body, path_params=path_params, @@ -292,7 +300,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -326,14 +334,18 @@ class ApiForpost(BaseApi): def post( self, - body = schemas.unset, - path_params = frozendict.frozendict(), - content_type = 'multipart/form-data', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyMultipartFormData,dict, frozendict.frozendict, schemas.Unset] = schemas.unset, + path_params: RequestPathParams = frozendict.frozendict(), + content_type: str = 'multipart/form-data', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._upload_image_oapg( body=body, path_params=path_params, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/store_inventory/get.py b/samples/openapi3/client/petstore/python/petstore_api/paths/store_inventory/get.py index 579b400a968..b2b336258e7 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/store_inventory/get.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/store_inventory/get.py @@ -94,7 +94,7 @@ def _get_inventory_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -122,11 +122,15 @@ def _get_inventory_oapg( def _get_inventory_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ Returns pet inventories by status :param skip_deserialization: If true then api_response.response will be set but @@ -175,7 +179,7 @@ def get_inventory( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -203,11 +207,15 @@ def get_inventory( def get_inventory( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._get_inventory_oapg( accept_content_types=accept_content_types, stream=stream, @@ -226,7 +234,7 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -254,11 +262,15 @@ def get( def get( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._get_inventory_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/store_inventory/get.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/store_inventory/get.pyi index 546ac7906b8..ec3b6fd646a 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/store_inventory/get.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/store_inventory/get.pyi @@ -68,7 +68,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -96,11 +96,15 @@ class BaseApi(api_client.Api): def _get_inventory_oapg( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ Returns pet inventories by status :param skip_deserialization: If true then api_response.response will be set but @@ -149,7 +153,7 @@ class GetInventory(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -177,11 +181,15 @@ class GetInventory(BaseApi): def get_inventory( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._get_inventory_oapg( accept_content_types=accept_content_types, stream=stream, @@ -200,7 +208,7 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -228,11 +236,15 @@ class ApiForget(BaseApi): def get( self, - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._get_inventory_oapg( accept_content_types=accept_content_types, stream=stream, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/store_order/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/store_order/post.py index 5a39677fca8..fa17981d435 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/store_order/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/store_order/post.py @@ -96,7 +96,7 @@ def _place_order_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -128,13 +128,17 @@ def _place_order_oapg( def _place_order_oapg( self, - body, - content_type = 'application/json', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ Place an order for a pet :param skip_deserialization: If true then api_response.response will be set but @@ -197,7 +201,7 @@ def place_order( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -229,13 +233,17 @@ def place_order( def place_order( self, - body, - content_type = 'application/json', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._place_order_oapg( body=body, content_type=content_type, @@ -258,7 +266,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -290,13 +298,17 @@ def post( def post( self, - body, - content_type = 'application/json', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._place_order_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/store_order/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/store_order/post.pyi index c72ca7ce5dd..71ebf0d1bee 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/store_order/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/store_order/post.pyi @@ -48,7 +48,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -80,13 +80,17 @@ class BaseApi(api_client.Api): def _place_order_oapg( self, - body, - content_type = 'application/json', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ Place an order for a pet :param skip_deserialization: If true then api_response.response will be set but @@ -149,7 +153,7 @@ class PlaceOrder(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -181,13 +185,17 @@ class PlaceOrder(BaseApi): def place_order( self, - body, - content_type = 'application/json', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._place_order_oapg( body=body, content_type=content_type, @@ -210,7 +218,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -242,13 +250,17 @@ class ApiForpost(BaseApi): def post( self, - body, - content_type = 'application/json', - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._place_order_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/store_order_order_id/delete.py b/samples/openapi3/client/petstore/python/petstore_api/paths/store_order_order_id/delete.py index 840aebfeec9..49796c56bc7 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/store_order_order_id/delete.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/store_order_order_id/delete.py @@ -91,7 +91,7 @@ def _delete_order_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[api_client.ApiResponse,]: + ) -> typing.Union[api_client.ApiResponse]: ... @typing.overload @@ -118,11 +118,14 @@ def _delete_order_oapg( def _delete_order_oapg( self, - path_params = frozendict.frozendict(), - stream = False, - timeout = None, - skip_deserialization = False, - ): + path_params: RequestPathParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ Delete purchase order by ID :param skip_deserialization: If true then api_response.response will be set but @@ -178,7 +181,7 @@ def delete_order( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[api_client.ApiResponse,]: + ) -> typing.Union[api_client.ApiResponse]: ... @typing.overload @@ -205,11 +208,14 @@ def delete_order( def delete_order( self, - path_params = frozendict.frozendict(), - stream = False, - timeout = None, - skip_deserialization = False, - ): + path_params: RequestPathParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._delete_order_oapg( path_params=path_params, stream=stream, @@ -228,7 +234,7 @@ def delete( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[api_client.ApiResponse,]: + ) -> typing.Union[api_client.ApiResponse]: ... @typing.overload @@ -255,11 +261,14 @@ def delete( def delete( self, - path_params = frozendict.frozendict(), - stream = False, - timeout = None, - skip_deserialization = False, - ): + path_params: RequestPathParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._delete_order_oapg( path_params=path_params, stream=stream, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/store_order_order_id/delete.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/store_order_order_id/delete.pyi index a5ed72083d6..f25caf6046f 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/store_order_order_id/delete.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/store_order_order_id/delete.pyi @@ -37,7 +37,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[api_client.ApiResponse,]: + ) -> typing.Union[api_client.ApiResponse]: ... @typing.overload @@ -64,11 +64,14 @@ class BaseApi(api_client.Api): def _delete_order_oapg( self, - path_params = frozendict.frozendict(), - stream = False, - timeout = None, - skip_deserialization = False, - ): + path_params: RequestPathParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ Delete purchase order by ID :param skip_deserialization: If true then api_response.response will be set but @@ -124,7 +127,7 @@ class DeleteOrder(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[api_client.ApiResponse,]: + ) -> typing.Union[api_client.ApiResponse]: ... @typing.overload @@ -151,11 +154,14 @@ class DeleteOrder(BaseApi): def delete_order( self, - path_params = frozendict.frozendict(), - stream = False, - timeout = None, - skip_deserialization = False, - ): + path_params: RequestPathParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._delete_order_oapg( path_params=path_params, stream=stream, @@ -174,7 +180,7 @@ class ApiFordelete(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[api_client.ApiResponse,]: + ) -> typing.Union[api_client.ApiResponse]: ... @typing.overload @@ -201,11 +207,14 @@ class ApiFordelete(BaseApi): def delete( self, - path_params = frozendict.frozendict(), - stream = False, - timeout = None, - skip_deserialization = False, - ): + path_params: RequestPathParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._delete_order_oapg( path_params=path_params, stream=stream, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/store_order_order_id/get.py b/samples/openapi3/client/petstore/python/petstore_api/paths/store_order_order_id/get.py index 588a9777abb..f986cc8be24 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/store_order_order_id/get.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/store_order_order_id/get.py @@ -133,7 +133,7 @@ def _get_order_by_id_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -163,12 +163,16 @@ def _get_order_by_id_oapg( def _get_order_by_id_oapg( self, - path_params = frozendict.frozendict(), - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + path_params: RequestPathParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ Find purchase order by ID :param skip_deserialization: If true then api_response.response will be set but @@ -231,7 +235,7 @@ def get_order_by_id( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -261,12 +265,16 @@ def get_order_by_id( def get_order_by_id( self, - path_params = frozendict.frozendict(), - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + path_params: RequestPathParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._get_order_by_id_oapg( path_params=path_params, accept_content_types=accept_content_types, @@ -287,7 +295,7 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -317,12 +325,16 @@ def get( def get( self, - path_params = frozendict.frozendict(), - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + path_params: RequestPathParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._get_order_by_id_oapg( path_params=path_params, accept_content_types=accept_content_types, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/store_order_order_id/get.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/store_order_order_id/get.pyi index 9865272867f..579bf99e490 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/store_order_order_id/get.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/store_order_order_id/get.pyi @@ -52,7 +52,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -82,12 +82,16 @@ class BaseApi(api_client.Api): def _get_order_by_id_oapg( self, - path_params = frozendict.frozendict(), - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + path_params: RequestPathParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ Find purchase order by ID :param skip_deserialization: If true then api_response.response will be set but @@ -150,7 +154,7 @@ class GetOrderById(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -180,12 +184,16 @@ class GetOrderById(BaseApi): def get_order_by_id( self, - path_params = frozendict.frozendict(), - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + path_params: RequestPathParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._get_order_by_id_oapg( path_params=path_params, accept_content_types=accept_content_types, @@ -206,7 +214,7 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -236,12 +244,16 @@ class ApiForget(BaseApi): def get( self, - path_params = frozendict.frozendict(), - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + path_params: RequestPathParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._get_order_by_id_oapg( path_params=path_params, accept_content_types=accept_content_types, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/user/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/user/post.py index dc011ae42a6..9de1d527193 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/user/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/user/post.py @@ -67,7 +67,7 @@ def _create_user_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseForDefault,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseForDefault,api_client.ApiResponse]: ... @typing.overload @@ -97,12 +97,16 @@ def _create_user_oapg( def _create_user_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseForDefault, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ Create user :param skip_deserialization: If true then api_response.response will be set but @@ -165,7 +169,7 @@ def create_user( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseForDefault,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseForDefault,api_client.ApiResponse]: ... @typing.overload @@ -195,12 +199,16 @@ def create_user( def create_user( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseForDefault, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._create_user_oapg( body=body, content_type=content_type, @@ -221,7 +229,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseForDefault,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseForDefault,api_client.ApiResponse]: ... @typing.overload @@ -251,12 +259,16 @@ def post( def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseForDefault, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._create_user_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/user/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/user/post.pyi index ab42c97f6b4..55c283c4d83 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/user/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/user/post.pyi @@ -41,7 +41,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseForDefault,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseForDefault,api_client.ApiResponse]: ... @typing.overload @@ -71,12 +71,16 @@ class BaseApi(api_client.Api): def _create_user_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseForDefault, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ Create user :param skip_deserialization: If true then api_response.response will be set but @@ -139,7 +143,7 @@ class CreateUser(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseForDefault,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseForDefault,api_client.ApiResponse]: ... @typing.overload @@ -169,12 +173,16 @@ class CreateUser(BaseApi): def create_user( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseForDefault, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._create_user_oapg( body=body, content_type=content_type, @@ -195,7 +203,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseForDefault,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseForDefault,api_client.ApiResponse]: ... @typing.overload @@ -225,12 +233,16 @@ class ApiForpost(BaseApi): def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseForDefault, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._create_user_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/user_create_with_array/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/user_create_with_array/post.py index 8376c4ddc1e..b1fd4107685 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/user_create_with_array/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/user_create_with_array/post.py @@ -92,7 +92,7 @@ def _create_users_with_array_input_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseForDefault,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseForDefault,api_client.ApiResponse]: ... @typing.overload @@ -122,12 +122,16 @@ def _create_users_with_array_input_oapg( def _create_users_with_array_input_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,list, tuple, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseForDefault, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ Creates list of users with given input array :param skip_deserialization: If true then api_response.response will be set but @@ -190,7 +194,7 @@ def create_users_with_array_input( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseForDefault,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseForDefault,api_client.ApiResponse]: ... @typing.overload @@ -220,12 +224,16 @@ def create_users_with_array_input( def create_users_with_array_input( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,list, tuple, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseForDefault, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._create_users_with_array_input_oapg( body=body, content_type=content_type, @@ -246,7 +254,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseForDefault,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseForDefault,api_client.ApiResponse]: ... @typing.overload @@ -276,12 +284,16 @@ def post( def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,list, tuple, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseForDefault, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._create_users_with_array_input_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/user_create_with_array/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/user_create_with_array/post.pyi index 56475b38952..344910768e8 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/user_create_with_array/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/user_create_with_array/post.pyi @@ -66,7 +66,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseForDefault,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseForDefault,api_client.ApiResponse]: ... @typing.overload @@ -96,12 +96,16 @@ class BaseApi(api_client.Api): def _create_users_with_array_input_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,list, tuple, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseForDefault, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ Creates list of users with given input array :param skip_deserialization: If true then api_response.response will be set but @@ -164,7 +168,7 @@ class CreateUsersWithArrayInput(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseForDefault,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseForDefault,api_client.ApiResponse]: ... @typing.overload @@ -194,12 +198,16 @@ class CreateUsersWithArrayInput(BaseApi): def create_users_with_array_input( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,list, tuple, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseForDefault, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._create_users_with_array_input_oapg( body=body, content_type=content_type, @@ -220,7 +228,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseForDefault,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseForDefault,api_client.ApiResponse]: ... @typing.overload @@ -250,12 +258,16 @@ class ApiForpost(BaseApi): def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,list, tuple, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseForDefault, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._create_users_with_array_input_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/user_create_with_list/post.py b/samples/openapi3/client/petstore/python/petstore_api/paths/user_create_with_list/post.py index d27b80686f1..217f2a9b9c2 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/user_create_with_list/post.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/user_create_with_list/post.py @@ -92,7 +92,7 @@ def _create_users_with_list_input_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseForDefault,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseForDefault,api_client.ApiResponse]: ... @typing.overload @@ -122,12 +122,16 @@ def _create_users_with_list_input_oapg( def _create_users_with_list_input_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,list, tuple, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseForDefault, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ Creates list of users with given input array :param skip_deserialization: If true then api_response.response will be set but @@ -190,7 +194,7 @@ def create_users_with_list_input( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseForDefault,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseForDefault,api_client.ApiResponse]: ... @typing.overload @@ -220,12 +224,16 @@ def create_users_with_list_input( def create_users_with_list_input( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,list, tuple, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseForDefault, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._create_users_with_list_input_oapg( body=body, content_type=content_type, @@ -246,7 +254,7 @@ def post( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseForDefault,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseForDefault,api_client.ApiResponse]: ... @typing.overload @@ -276,12 +284,16 @@ def post( def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,list, tuple, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseForDefault, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._create_users_with_list_input_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/user_create_with_list/post.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/user_create_with_list/post.pyi index 3a3c6104d70..f493292f6d7 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/user_create_with_list/post.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/user_create_with_list/post.pyi @@ -66,7 +66,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseForDefault,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseForDefault,api_client.ApiResponse]: ... @typing.overload @@ -96,12 +96,16 @@ class BaseApi(api_client.Api): def _create_users_with_list_input_oapg( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,list, tuple, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseForDefault, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ Creates list of users with given input array :param skip_deserialization: If true then api_response.response will be set but @@ -164,7 +168,7 @@ class CreateUsersWithListInput(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseForDefault,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseForDefault,api_client.ApiResponse]: ... @typing.overload @@ -194,12 +198,16 @@ class CreateUsersWithListInput(BaseApi): def create_users_with_list_input( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,list, tuple, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseForDefault, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._create_users_with_list_input_oapg( body=body, content_type=content_type, @@ -220,7 +228,7 @@ class ApiForpost(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseForDefault,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseForDefault,api_client.ApiResponse]: ... @typing.overload @@ -250,12 +258,16 @@ class ApiForpost(BaseApi): def post( self, - body, - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,list, tuple, ], + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseForDefault, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._create_users_with_list_input_oapg( body=body, content_type=content_type, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/user_login/get.py b/samples/openapi3/client/petstore/python/petstore_api/paths/user_login/get.py index 2914203f9c4..5c45a9e3b6f 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/user_login/get.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/user_login/get.py @@ -141,7 +141,7 @@ def _login_user_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -171,12 +171,16 @@ def _login_user_oapg( def _login_user_oapg( self, - query_params = frozendict.frozendict(), - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + query_params: RequestQueryParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ Logs user into the system :param skip_deserialization: If true then api_response.response will be set but @@ -240,7 +244,7 @@ def login_user( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -270,12 +274,16 @@ def login_user( def login_user( self, - query_params = frozendict.frozendict(), - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + query_params: RequestQueryParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._login_user_oapg( query_params=query_params, accept_content_types=accept_content_types, @@ -296,7 +304,7 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -326,12 +334,16 @@ def get( def get( self, - query_params = frozendict.frozendict(), - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + query_params: RequestQueryParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._login_user_oapg( query_params=query_params, accept_content_types=accept_content_types, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/user_login/get.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/user_login/get.pyi index f4cc65ace57..f2a6115a3d3 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/user_login/get.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/user_login/get.pyi @@ -48,7 +48,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -78,12 +78,16 @@ class BaseApi(api_client.Api): def _login_user_oapg( self, - query_params = frozendict.frozendict(), - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + query_params: RequestQueryParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ Logs user into the system :param skip_deserialization: If true then api_response.response will be set but @@ -147,7 +151,7 @@ class LoginUser(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -177,12 +181,16 @@ class LoginUser(BaseApi): def login_user( self, - query_params = frozendict.frozendict(), - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + query_params: RequestQueryParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._login_user_oapg( query_params=query_params, accept_content_types=accept_content_types, @@ -203,7 +211,7 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -233,12 +241,16 @@ class ApiForget(BaseApi): def get( self, - query_params = frozendict.frozendict(), - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + query_params: RequestQueryParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._login_user_oapg( query_params=query_params, accept_content_types=accept_content_types, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/user_logout/get.py b/samples/openapi3/client/petstore/python/petstore_api/paths/user_logout/get.py index 14bf0535245..f374d4fa68e 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/user_logout/get.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/user_logout/get.py @@ -51,7 +51,7 @@ def _logout_user_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseForDefault,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseForDefault,api_client.ApiResponse]: ... @typing.overload @@ -77,10 +77,14 @@ def _logout_user_oapg( def _logout_user_oapg( self, - stream = False, - timeout = None, - skip_deserialization = False, - ): + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseForDefault, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ Logs out current logged in user session :param skip_deserialization: If true then api_response.response will be set but @@ -125,7 +129,7 @@ def logout_user( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseForDefault,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseForDefault,api_client.ApiResponse]: ... @typing.overload @@ -151,10 +155,14 @@ def logout_user( def logout_user( self, - stream = False, - timeout = None, - skip_deserialization = False, - ): + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseForDefault, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._logout_user_oapg( stream=stream, timeout=timeout, @@ -171,7 +179,7 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseForDefault,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseForDefault,api_client.ApiResponse]: ... @typing.overload @@ -197,10 +205,14 @@ def get( def get( self, - stream = False, - timeout = None, - skip_deserialization = False, - ): + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseForDefault, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._logout_user_oapg( stream=stream, timeout=timeout, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/user_logout/get.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/user_logout/get.pyi index 7b6b1ecfc21..ffafb540d1c 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/user_logout/get.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/user_logout/get.pyi @@ -34,7 +34,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseForDefault,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseForDefault,api_client.ApiResponse]: ... @typing.overload @@ -60,10 +60,14 @@ class BaseApi(api_client.Api): def _logout_user_oapg( self, - stream = False, - timeout = None, - skip_deserialization = False, - ): + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseForDefault, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ Logs out current logged in user session :param skip_deserialization: If true then api_response.response will be set but @@ -108,7 +112,7 @@ class LogoutUser(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseForDefault,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseForDefault,api_client.ApiResponse]: ... @typing.overload @@ -134,10 +138,14 @@ class LogoutUser(BaseApi): def logout_user( self, - stream = False, - timeout = None, - skip_deserialization = False, - ): + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseForDefault, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._logout_user_oapg( stream=stream, timeout=timeout, @@ -154,7 +162,7 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseForDefault,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseForDefault,api_client.ApiResponse]: ... @typing.overload @@ -180,10 +188,14 @@ class ApiForget(BaseApi): def get( self, - stream = False, - timeout = None, - skip_deserialization = False, - ): + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseForDefault, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._logout_user_oapg( stream=stream, timeout=timeout, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/delete.py b/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/delete.py index 12fcb33c24a..60ac4b3ed7c 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/delete.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/delete.py @@ -91,7 +91,7 @@ def _delete_user_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[api_client.ApiResponse,]: + ) -> typing.Union[api_client.ApiResponse]: ... @typing.overload @@ -118,11 +118,14 @@ def _delete_user_oapg( def _delete_user_oapg( self, - path_params = frozendict.frozendict(), - stream = False, - timeout = None, - skip_deserialization = False, - ): + path_params: RequestPathParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ Delete user :param skip_deserialization: If true then api_response.response will be set but @@ -178,7 +181,7 @@ def delete_user( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[api_client.ApiResponse,]: + ) -> typing.Union[api_client.ApiResponse]: ... @typing.overload @@ -205,11 +208,14 @@ def delete_user( def delete_user( self, - path_params = frozendict.frozendict(), - stream = False, - timeout = None, - skip_deserialization = False, - ): + path_params: RequestPathParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._delete_user_oapg( path_params=path_params, stream=stream, @@ -228,7 +234,7 @@ def delete( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[api_client.ApiResponse,]: + ) -> typing.Union[api_client.ApiResponse]: ... @typing.overload @@ -255,11 +261,14 @@ def delete( def delete( self, - path_params = frozendict.frozendict(), - stream = False, - timeout = None, - skip_deserialization = False, - ): + path_params: RequestPathParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._delete_user_oapg( path_params=path_params, stream=stream, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/delete.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/delete.pyi index e83b3866c70..b16192f0efe 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/delete.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/delete.pyi @@ -37,7 +37,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[api_client.ApiResponse,]: + ) -> typing.Union[api_client.ApiResponse]: ... @typing.overload @@ -64,11 +64,14 @@ class BaseApi(api_client.Api): def _delete_user_oapg( self, - path_params = frozendict.frozendict(), - stream = False, - timeout = None, - skip_deserialization = False, - ): + path_params: RequestPathParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ Delete user :param skip_deserialization: If true then api_response.response will be set but @@ -124,7 +127,7 @@ class DeleteUser(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[api_client.ApiResponse,]: + ) -> typing.Union[api_client.ApiResponse]: ... @typing.overload @@ -151,11 +154,14 @@ class DeleteUser(BaseApi): def delete_user( self, - path_params = frozendict.frozendict(), - stream = False, - timeout = None, - skip_deserialization = False, - ): + path_params: RequestPathParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._delete_user_oapg( path_params=path_params, stream=stream, @@ -174,7 +180,7 @@ class ApiFordelete(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[api_client.ApiResponse,]: + ) -> typing.Union[api_client.ApiResponse]: ... @typing.overload @@ -201,11 +207,14 @@ class ApiFordelete(BaseApi): def delete( self, - path_params = frozendict.frozendict(), - stream = False, - timeout = None, - skip_deserialization = False, - ): + path_params: RequestPathParams = frozendict.frozendict(), + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._delete_user_oapg( path_params=path_params, stream=stream, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/get.py b/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/get.py index b2b617c5fe4..b6c7288eb9c 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/get.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/get.py @@ -123,7 +123,7 @@ def _get_user_by_name_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -153,12 +153,16 @@ def _get_user_by_name_oapg( def _get_user_by_name_oapg( self, - path_params = frozendict.frozendict(), - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + path_params: RequestPathParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ Get user by user name :param skip_deserialization: If true then api_response.response will be set but @@ -221,7 +225,7 @@ def get_user_by_name( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -251,12 +255,16 @@ def get_user_by_name( def get_user_by_name( self, - path_params = frozendict.frozendict(), - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + path_params: RequestPathParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._get_user_by_name_oapg( path_params=path_params, accept_content_types=accept_content_types, @@ -277,7 +285,7 @@ def get( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -307,12 +315,16 @@ def get( def get( self, - path_params = frozendict.frozendict(), - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + path_params: RequestPathParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._get_user_by_name_oapg( path_params=path_params, accept_content_types=accept_content_types, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/get.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/get.pyi index de08b4be3d3..02572945ffe 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/get.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/get.pyi @@ -47,7 +47,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -77,12 +77,16 @@ class BaseApi(api_client.Api): def _get_user_by_name_oapg( self, - path_params = frozendict.frozendict(), - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + path_params: RequestPathParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ Get user by user name :param skip_deserialization: If true then api_response.response will be set but @@ -145,7 +149,7 @@ class GetUserByName(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -175,12 +179,16 @@ class GetUserByName(BaseApi): def get_user_by_name( self, - path_params = frozendict.frozendict(), - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + path_params: RequestPathParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._get_user_by_name_oapg( path_params=path_params, accept_content_types=accept_content_types, @@ -201,7 +209,7 @@ class ApiForget(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse,]: + ) -> typing.Union[ApiResponseFor200,api_client.ApiResponse]: ... @typing.overload @@ -231,12 +239,16 @@ class ApiForget(BaseApi): def get( self, - path_params = frozendict.frozendict(), - accept_content_types = _all_accept_content_types, - stream = False, - timeout = None, - skip_deserialization = False, - ): + path_params: RequestPathParams = frozendict.frozendict(), + accept_content_types: typing.Tuple[str] = _all_accept_content_types, + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + ApiResponseFor200, + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._get_user_by_name_oapg( path_params=path_params, accept_content_types=accept_content_types, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/put.py b/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/put.py index f6d600ca178..798b0a9433e 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/put.py +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/put.py @@ -107,7 +107,7 @@ def _update_user_oapg( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[api_client.ApiResponse,]: + ) -> typing.Union[api_client.ApiResponse]: ... @typing.overload @@ -138,13 +138,16 @@ def _update_user_oapg( def _update_user_oapg( self, - body, - path_params = frozendict.frozendict(), - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + path_params: RequestPathParams = frozendict.frozendict(), + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ Updated user :param skip_deserialization: If true then api_response.response will be set but @@ -218,7 +221,7 @@ def update_user( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[api_client.ApiResponse,]: + ) -> typing.Union[api_client.ApiResponse]: ... @typing.overload @@ -249,13 +252,16 @@ def update_user( def update_user( self, - body, - path_params = frozendict.frozendict(), - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + path_params: RequestPathParams = frozendict.frozendict(), + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._update_user_oapg( body=body, path_params=path_params, @@ -278,7 +284,7 @@ def put( stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[api_client.ApiResponse,]: + ) -> typing.Union[api_client.ApiResponse]: ... @typing.overload @@ -309,13 +315,16 @@ def put( def put( self, - body, - path_params = frozendict.frozendict(), - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + path_params: RequestPathParams = frozendict.frozendict(), + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._update_user_oapg( body=body, path_params=path_params, diff --git a/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/put.pyi b/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/put.pyi index 7b83100b965..e0119065c02 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/put.pyi +++ b/samples/openapi3/client/petstore/python/petstore_api/paths/user_username/put.pyi @@ -44,7 +44,7 @@ class BaseApi(api_client.Api): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[api_client.ApiResponse,]: + ) -> typing.Union[api_client.ApiResponse]: ... @typing.overload @@ -75,13 +75,16 @@ class BaseApi(api_client.Api): def _update_user_oapg( self, - body, - path_params = frozendict.frozendict(), - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + path_params: RequestPathParams = frozendict.frozendict(), + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: """ Updated user :param skip_deserialization: If true then api_response.response will be set but @@ -155,7 +158,7 @@ class UpdateUser(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[api_client.ApiResponse,]: + ) -> typing.Union[api_client.ApiResponse]: ... @typing.overload @@ -186,13 +189,16 @@ class UpdateUser(BaseApi): def update_user( self, - body, - path_params = frozendict.frozendict(), - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + path_params: RequestPathParams = frozendict.frozendict(), + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._update_user_oapg( body=body, path_params=path_params, @@ -215,7 +221,7 @@ class ApiForput(BaseApi): stream: bool = False, timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, skip_deserialization: typing_extensions.Literal[False] = False, - ) -> typing.Union[api_client.ApiResponse,]: + ) -> typing.Union[api_client.ApiResponse]: ... @typing.overload @@ -246,13 +252,16 @@ class ApiForput(BaseApi): def put( self, - body, - path_params = frozendict.frozendict(), - content_type = 'application/json', - stream = False, - timeout = None, - skip_deserialization = False, - ): + body: typing.Union[SchemaForRequestBodyApplicationJson,], + path_params: RequestPathParams = frozendict.frozendict(), + content_type: str = 'application/json', + stream: bool = False, + timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None, + skip_deserialization: bool = False, + ) -> typing.Union[ + api_client.ApiResponse, + api_client.ApiResponseWithoutDeserialization, + ]: return self._update_user_oapg( body=body, path_params=path_params,