forked from loafle/openapi-generator-original
[python] Fixes endpoint overload type hint + required property not in properties (#13790)
* Adds endpoint overload type hint fix to template * Samples regenerated * Adds fix for required property not in properties * Regenerates samples
This commit is contained in:
@@ -97,10 +97,12 @@ docs/models/NumberOnly.md
|
||||
docs/models/NumberWithValidations.md
|
||||
docs/models/ObjectInterface.md
|
||||
docs/models/ObjectModelWithRefProps.md
|
||||
docs/models/ObjectWithAllOfWithReqTestPropFromUnsetAddProp.md
|
||||
docs/models/ObjectWithDecimalProperties.md
|
||||
docs/models/ObjectWithDifficultlyNamedProps.md
|
||||
docs/models/ObjectWithInlineCompositionProperty.md
|
||||
docs/models/ObjectWithInvalidNamedRefedProperties.md
|
||||
docs/models/ObjectWithOptionalTestProp.md
|
||||
docs/models/ObjectWithValidations.md
|
||||
docs/models/Order.md
|
||||
docs/models/ParentPet.md
|
||||
@@ -318,6 +320,8 @@ petstore_api/model/object_interface.py
|
||||
petstore_api/model/object_interface.pyi
|
||||
petstore_api/model/object_model_with_ref_props.py
|
||||
petstore_api/model/object_model_with_ref_props.pyi
|
||||
petstore_api/model/object_with_all_of_with_req_test_prop_from_unset_add_prop.py
|
||||
petstore_api/model/object_with_all_of_with_req_test_prop_from_unset_add_prop.pyi
|
||||
petstore_api/model/object_with_decimal_properties.py
|
||||
petstore_api/model/object_with_decimal_properties.pyi
|
||||
petstore_api/model/object_with_difficultly_named_props.py
|
||||
@@ -326,6 +330,8 @@ petstore_api/model/object_with_inline_composition_property.py
|
||||
petstore_api/model/object_with_inline_composition_property.pyi
|
||||
petstore_api/model/object_with_invalid_named_refed_properties.py
|
||||
petstore_api/model/object_with_invalid_named_refed_properties.pyi
|
||||
petstore_api/model/object_with_optional_test_prop.py
|
||||
petstore_api/model/object_with_optional_test_prop.pyi
|
||||
petstore_api/model/object_with_validations.py
|
||||
petstore_api/model/object_with_validations.pyi
|
||||
petstore_api/model/order.py
|
||||
|
||||
@@ -319,10 +319,12 @@ Class | Method | HTTP request | Description
|
||||
- [NumberWithValidations](docs/models/NumberWithValidations.md)
|
||||
- [ObjectInterface](docs/models/ObjectInterface.md)
|
||||
- [ObjectModelWithRefProps](docs/models/ObjectModelWithRefProps.md)
|
||||
- [ObjectWithAllOfWithReqTestPropFromUnsetAddProp](docs/models/ObjectWithAllOfWithReqTestPropFromUnsetAddProp.md)
|
||||
- [ObjectWithDecimalProperties](docs/models/ObjectWithDecimalProperties.md)
|
||||
- [ObjectWithDifficultlyNamedProps](docs/models/ObjectWithDifficultlyNamedProps.md)
|
||||
- [ObjectWithInlineCompositionProperty](docs/models/ObjectWithInlineCompositionProperty.md)
|
||||
- [ObjectWithInvalidNamedRefedProperties](docs/models/ObjectWithInvalidNamedRefedProperties.md)
|
||||
- [ObjectWithOptionalTestProp](docs/models/ObjectWithOptionalTestProp.md)
|
||||
- [ObjectWithValidations](docs/models/ObjectWithValidations.md)
|
||||
- [Order](docs/models/Order.md)
|
||||
- [ParentPet](docs/models/ParentPet.md)
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
# petstore_api.model.object_with_all_of_with_req_test_prop_from_unset_add_prop.ObjectWithAllOfWithReqTestPropFromUnsetAddProp
|
||||
|
||||
## Model Type Info
|
||||
Input Type | Accessed Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | |
|
||||
|
||||
### Composed Schemas (allOf/anyOf/oneOf/not)
|
||||
#### allOf
|
||||
Class Name | Input Type | Accessed Type | Description | Notes
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
[ObjectWithOptionalTestProp](ObjectWithOptionalTestProp.md) | [**ObjectWithOptionalTestProp**](ObjectWithOptionalTestProp.md) | [**ObjectWithOptionalTestProp**](ObjectWithOptionalTestProp.md) | |
|
||||
[all_of_1](#all_of_1) | dict, frozendict.frozendict, | frozendict.frozendict, | |
|
||||
|
||||
# all_of_1
|
||||
|
||||
## Model Type Info
|
||||
Input Type | Accessed Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
dict, frozendict.frozendict, | frozendict.frozendict, | |
|
||||
|
||||
### Dictionary Keys
|
||||
Key | Input Type | Accessed Type | Description | Notes
|
||||
------------ | ------------- | ------------- | ------------- | -------------
|
||||
**test** | dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, | frozendict.frozendict, str, decimal.Decimal, BoolClass, NoneClass, tuple, bytes, FileIO | |
|
||||
**name** | str, | str, | | [optional]
|
||||
**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional]
|
||||
|
||||
[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md)
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
# petstore_api.model.object_with_optional_test_prop.ObjectWithOptionalTestProp
|
||||
|
||||
## Model Type Info
|
||||
Input Type | Accessed Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
dict, frozendict.frozendict, | frozendict.frozendict, | |
|
||||
|
||||
### Dictionary Keys
|
||||
Key | Input Type | Accessed Type | Description | Notes
|
||||
------------ | ------------- | ------------- | ------------- | -------------
|
||||
**test** | str, | str, | | [optional]
|
||||
**any_string_name** | dict, frozendict.frozendict, str, date, datetime, int, float, bool, decimal.Decimal, None, list, tuple, bytes, io.FileIO, io.BufferedReader | frozendict.frozendict, str, BoolClass, decimal.Decimal, NoneClass, tuple, bytes, FileIO | any string name can be used but the value must be the correct type | [optional]
|
||||
|
||||
[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md)
|
||||
|
||||
@@ -0,0 +1,124 @@
|
||||
# coding: utf-8
|
||||
|
||||
"""
|
||||
OpenAPI Petstore
|
||||
|
||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
from datetime import date, datetime # noqa: F401
|
||||
import decimal # noqa: F401
|
||||
import functools # noqa: F401
|
||||
import io # noqa: F401
|
||||
import re # noqa: F401
|
||||
import typing # noqa: F401
|
||||
import typing_extensions # noqa: F401
|
||||
import uuid # noqa: F401
|
||||
|
||||
import frozendict # noqa: F401
|
||||
|
||||
from petstore_api import schemas # noqa: F401
|
||||
|
||||
|
||||
class ObjectWithAllOfWithReqTestPropFromUnsetAddProp(
|
||||
schemas.ComposedSchema,
|
||||
):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
|
||||
class MetaOapg:
|
||||
|
||||
|
||||
class all_of_1(
|
||||
schemas.DictSchema
|
||||
):
|
||||
|
||||
|
||||
class MetaOapg:
|
||||
required = {
|
||||
"test",
|
||||
}
|
||||
|
||||
class properties:
|
||||
name = schemas.StrSchema
|
||||
__annotations__ = {
|
||||
"name": name,
|
||||
}
|
||||
|
||||
test: schemas.AnyTypeSchema
|
||||
|
||||
@typing.overload
|
||||
def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ...
|
||||
|
||||
@typing.overload
|
||||
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
|
||||
|
||||
def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", ], str]):
|
||||
# dict_instance[name] accessor
|
||||
return super().__getitem__(name)
|
||||
|
||||
|
||||
@typing.overload
|
||||
def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ...
|
||||
|
||||
@typing.overload
|
||||
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
|
||||
|
||||
def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", ], str]):
|
||||
return super().get_item_oapg(name)
|
||||
|
||||
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict.frozendict, ],
|
||||
test: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset,
|
||||
_configuration: typing.Optional[schemas.Configuration] = None,
|
||||
**kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
|
||||
) -> 'all_of_1':
|
||||
return super().__new__(
|
||||
cls,
|
||||
*args,
|
||||
test=test,
|
||||
name=name,
|
||||
_configuration=_configuration,
|
||||
**kwargs,
|
||||
)
|
||||
|
||||
@classmethod
|
||||
@functools.lru_cache()
|
||||
def all_of(cls):
|
||||
# we need this here to make our import statements work
|
||||
# we must store _composed_schemas in here so the code is only run
|
||||
# when we invoke this method. If we kept this at the class
|
||||
# level we would get an error because the class level
|
||||
# code would be run when this module is imported, and these composed
|
||||
# classes don't exist yet because their module has not finished
|
||||
# loading
|
||||
return [
|
||||
ObjectWithOptionalTestProp,
|
||||
cls.all_of_1,
|
||||
]
|
||||
|
||||
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
_configuration: typing.Optional[schemas.Configuration] = None,
|
||||
**kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
|
||||
) -> 'ObjectWithAllOfWithReqTestPropFromUnsetAddProp':
|
||||
return super().__new__(
|
||||
cls,
|
||||
*args,
|
||||
_configuration=_configuration,
|
||||
**kwargs,
|
||||
)
|
||||
|
||||
from petstore_api.model.object_with_optional_test_prop import ObjectWithOptionalTestProp
|
||||
@@ -0,0 +1,124 @@
|
||||
# coding: utf-8
|
||||
|
||||
"""
|
||||
OpenAPI Petstore
|
||||
|
||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
from datetime import date, datetime # noqa: F401
|
||||
import decimal # noqa: F401
|
||||
import functools # noqa: F401
|
||||
import io # noqa: F401
|
||||
import re # noqa: F401
|
||||
import typing # noqa: F401
|
||||
import typing_extensions # noqa: F401
|
||||
import uuid # noqa: F401
|
||||
|
||||
import frozendict # noqa: F401
|
||||
|
||||
from petstore_api import schemas # noqa: F401
|
||||
|
||||
|
||||
class ObjectWithAllOfWithReqTestPropFromUnsetAddProp(
|
||||
schemas.ComposedSchema,
|
||||
):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
|
||||
class MetaOapg:
|
||||
|
||||
|
||||
class all_of_1(
|
||||
schemas.DictSchema
|
||||
):
|
||||
|
||||
|
||||
class MetaOapg:
|
||||
required = {
|
||||
"test",
|
||||
}
|
||||
|
||||
class properties:
|
||||
name = schemas.StrSchema
|
||||
__annotations__ = {
|
||||
"name": name,
|
||||
}
|
||||
|
||||
test: schemas.AnyTypeSchema
|
||||
|
||||
@typing.overload
|
||||
def __getitem__(self, name: typing_extensions.Literal["name"]) -> MetaOapg.properties.name: ...
|
||||
|
||||
@typing.overload
|
||||
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
|
||||
|
||||
def __getitem__(self, name: typing.Union[typing_extensions.Literal["name", ], str]):
|
||||
# dict_instance[name] accessor
|
||||
return super().__getitem__(name)
|
||||
|
||||
|
||||
@typing.overload
|
||||
def get_item_oapg(self, name: typing_extensions.Literal["name"]) -> typing.Union[MetaOapg.properties.name, schemas.Unset]: ...
|
||||
|
||||
@typing.overload
|
||||
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
|
||||
|
||||
def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["name", ], str]):
|
||||
return super().get_item_oapg(name)
|
||||
|
||||
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict.frozendict, ],
|
||||
test: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
name: typing.Union[MetaOapg.properties.name, str, schemas.Unset] = schemas.unset,
|
||||
_configuration: typing.Optional[schemas.Configuration] = None,
|
||||
**kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
|
||||
) -> 'all_of_1':
|
||||
return super().__new__(
|
||||
cls,
|
||||
*args,
|
||||
test=test,
|
||||
name=name,
|
||||
_configuration=_configuration,
|
||||
**kwargs,
|
||||
)
|
||||
|
||||
@classmethod
|
||||
@functools.lru_cache()
|
||||
def all_of(cls):
|
||||
# we need this here to make our import statements work
|
||||
# we must store _composed_schemas in here so the code is only run
|
||||
# when we invoke this method. If we kept this at the class
|
||||
# level we would get an error because the class level
|
||||
# code would be run when this module is imported, and these composed
|
||||
# classes don't exist yet because their module has not finished
|
||||
# loading
|
||||
return [
|
||||
ObjectWithOptionalTestProp,
|
||||
cls.all_of_1,
|
||||
]
|
||||
|
||||
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, bool, None, list, tuple, bytes, io.FileIO, io.BufferedReader, ],
|
||||
_configuration: typing.Optional[schemas.Configuration] = None,
|
||||
**kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
|
||||
) -> 'ObjectWithAllOfWithReqTestPropFromUnsetAddProp':
|
||||
return super().__new__(
|
||||
cls,
|
||||
*args,
|
||||
_configuration=_configuration,
|
||||
**kwargs,
|
||||
)
|
||||
|
||||
from petstore_api.model.object_with_optional_test_prop import ObjectWithOptionalTestProp
|
||||
@@ -0,0 +1,78 @@
|
||||
# coding: utf-8
|
||||
|
||||
"""
|
||||
OpenAPI Petstore
|
||||
|
||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
from datetime import date, datetime # noqa: F401
|
||||
import decimal # noqa: F401
|
||||
import functools # noqa: F401
|
||||
import io # noqa: F401
|
||||
import re # noqa: F401
|
||||
import typing # noqa: F401
|
||||
import typing_extensions # noqa: F401
|
||||
import uuid # noqa: F401
|
||||
|
||||
import frozendict # noqa: F401
|
||||
|
||||
from petstore_api import schemas # noqa: F401
|
||||
|
||||
|
||||
class ObjectWithOptionalTestProp(
|
||||
schemas.DictSchema
|
||||
):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
|
||||
class MetaOapg:
|
||||
|
||||
class properties:
|
||||
test = schemas.StrSchema
|
||||
__annotations__ = {
|
||||
"test": test,
|
||||
}
|
||||
|
||||
@typing.overload
|
||||
def __getitem__(self, name: typing_extensions.Literal["test"]) -> MetaOapg.properties.test: ...
|
||||
|
||||
@typing.overload
|
||||
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
|
||||
|
||||
def __getitem__(self, name: typing.Union[typing_extensions.Literal["test", ], str]):
|
||||
# dict_instance[name] accessor
|
||||
return super().__getitem__(name)
|
||||
|
||||
|
||||
@typing.overload
|
||||
def get_item_oapg(self, name: typing_extensions.Literal["test"]) -> typing.Union[MetaOapg.properties.test, schemas.Unset]: ...
|
||||
|
||||
@typing.overload
|
||||
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
|
||||
|
||||
def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["test", ], str]):
|
||||
return super().get_item_oapg(name)
|
||||
|
||||
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict.frozendict, ],
|
||||
test: typing.Union[MetaOapg.properties.test, str, schemas.Unset] = schemas.unset,
|
||||
_configuration: typing.Optional[schemas.Configuration] = None,
|
||||
**kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
|
||||
) -> 'ObjectWithOptionalTestProp':
|
||||
return super().__new__(
|
||||
cls,
|
||||
*args,
|
||||
test=test,
|
||||
_configuration=_configuration,
|
||||
**kwargs,
|
||||
)
|
||||
@@ -0,0 +1,78 @@
|
||||
# coding: utf-8
|
||||
|
||||
"""
|
||||
OpenAPI Petstore
|
||||
|
||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
from datetime import date, datetime # noqa: F401
|
||||
import decimal # noqa: F401
|
||||
import functools # noqa: F401
|
||||
import io # noqa: F401
|
||||
import re # noqa: F401
|
||||
import typing # noqa: F401
|
||||
import typing_extensions # noqa: F401
|
||||
import uuid # noqa: F401
|
||||
|
||||
import frozendict # noqa: F401
|
||||
|
||||
from petstore_api import schemas # noqa: F401
|
||||
|
||||
|
||||
class ObjectWithOptionalTestProp(
|
||||
schemas.DictSchema
|
||||
):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
|
||||
class MetaOapg:
|
||||
|
||||
class properties:
|
||||
test = schemas.StrSchema
|
||||
__annotations__ = {
|
||||
"test": test,
|
||||
}
|
||||
|
||||
@typing.overload
|
||||
def __getitem__(self, name: typing_extensions.Literal["test"]) -> MetaOapg.properties.test: ...
|
||||
|
||||
@typing.overload
|
||||
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
|
||||
|
||||
def __getitem__(self, name: typing.Union[typing_extensions.Literal["test", ], str]):
|
||||
# dict_instance[name] accessor
|
||||
return super().__getitem__(name)
|
||||
|
||||
|
||||
@typing.overload
|
||||
def get_item_oapg(self, name: typing_extensions.Literal["test"]) -> typing.Union[MetaOapg.properties.test, schemas.Unset]: ...
|
||||
|
||||
@typing.overload
|
||||
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
|
||||
|
||||
def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["test", ], str]):
|
||||
return super().get_item_oapg(name)
|
||||
|
||||
|
||||
def __new__(
|
||||
cls,
|
||||
*args: typing.Union[dict, frozendict.frozendict, ],
|
||||
test: typing.Union[MetaOapg.properties.test, str, schemas.Unset] = schemas.unset,
|
||||
_configuration: typing.Optional[schemas.Configuration] = None,
|
||||
**kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
|
||||
) -> 'ObjectWithOptionalTestProp':
|
||||
return super().__new__(
|
||||
cls,
|
||||
*args,
|
||||
test=test,
|
||||
_configuration=_configuration,
|
||||
**kwargs,
|
||||
)
|
||||
@@ -99,10 +99,12 @@ from petstore_api.model.number_only import NumberOnly
|
||||
from petstore_api.model.number_with_validations import NumberWithValidations
|
||||
from petstore_api.model.object_interface import ObjectInterface
|
||||
from petstore_api.model.object_model_with_ref_props import ObjectModelWithRefProps
|
||||
from petstore_api.model.object_with_all_of_with_req_test_prop_from_unset_add_prop import ObjectWithAllOfWithReqTestPropFromUnsetAddProp
|
||||
from petstore_api.model.object_with_decimal_properties import ObjectWithDecimalProperties
|
||||
from petstore_api.model.object_with_difficultly_named_props import ObjectWithDifficultlyNamedProps
|
||||
from petstore_api.model.object_with_inline_composition_property import ObjectWithInlineCompositionProperty
|
||||
from petstore_api.model.object_with_invalid_named_refed_properties import ObjectWithInvalidNamedRefedProperties
|
||||
from petstore_api.model.object_with_optional_test_prop import ObjectWithOptionalTestProp
|
||||
from petstore_api.model.object_with_validations import ObjectWithValidations
|
||||
from petstore_api.model.order import Order
|
||||
from petstore_api.model.parent_pet import ParentPet
|
||||
|
||||
@@ -148,6 +148,7 @@ class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _group_parameters_oapg(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
query_params: RequestQueryParams = frozendict.frozendict(),
|
||||
header_params: RequestHeaderParams = frozendict.frozendict(),
|
||||
stream: bool = False,
|
||||
@@ -255,6 +256,7 @@ class GroupParameters(BaseApi):
|
||||
@typing.overload
|
||||
def group_parameters(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
query_params: RequestQueryParams = frozendict.frozendict(),
|
||||
header_params: RequestHeaderParams = frozendict.frozendict(),
|
||||
stream: bool = False,
|
||||
@@ -309,6 +311,7 @@ class ApiFordelete(BaseApi):
|
||||
@typing.overload
|
||||
def delete(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
query_params: RequestQueryParams = frozendict.frozendict(),
|
||||
header_params: RequestHeaderParams = frozendict.frozendict(),
|
||||
stream: bool = False,
|
||||
|
||||
@@ -140,6 +140,7 @@ class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _group_parameters_oapg(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
query_params: RequestQueryParams = frozendict.frozendict(),
|
||||
header_params: RequestHeaderParams = frozendict.frozendict(),
|
||||
stream: bool = False,
|
||||
@@ -247,6 +248,7 @@ class GroupParameters(BaseApi):
|
||||
@typing.overload
|
||||
def group_parameters(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
query_params: RequestQueryParams = frozendict.frozendict(),
|
||||
header_params: RequestHeaderParams = frozendict.frozendict(),
|
||||
stream: bool = False,
|
||||
@@ -301,6 +303,7 @@ class ApiFordelete(BaseApi):
|
||||
@typing.overload
|
||||
def delete(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
query_params: RequestQueryParams = frozendict.frozendict(),
|
||||
header_params: RequestHeaderParams = frozendict.frozendict(),
|
||||
stream: bool = False,
|
||||
|
||||
@@ -103,6 +103,7 @@ class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _case_sensitive_params_oapg(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
query_params: RequestQueryParams = frozendict.frozendict(),
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
@@ -190,6 +191,7 @@ class CaseSensitiveParams(BaseApi):
|
||||
@typing.overload
|
||||
def case_sensitive_params(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
query_params: RequestQueryParams = frozendict.frozendict(),
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
@@ -239,6 +241,7 @@ class ApiForput(BaseApi):
|
||||
@typing.overload
|
||||
def put(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
query_params: RequestQueryParams = frozendict.frozendict(),
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
|
||||
@@ -98,6 +98,7 @@ class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _case_sensitive_params_oapg(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
query_params: RequestQueryParams = frozendict.frozendict(),
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
@@ -185,6 +186,7 @@ class CaseSensitiveParams(BaseApi):
|
||||
@typing.overload
|
||||
def case_sensitive_params(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
query_params: RequestQueryParams = frozendict.frozendict(),
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
@@ -234,6 +236,7 @@ class ApiForput(BaseApi):
|
||||
@typing.overload
|
||||
def put(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
query_params: RequestQueryParams = frozendict.frozendict(),
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
|
||||
@@ -98,6 +98,7 @@ class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _delete_coffee_oapg(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
path_params: RequestPathParams = frozendict.frozendict(),
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
@@ -190,6 +191,7 @@ class DeleteCoffee(BaseApi):
|
||||
@typing.overload
|
||||
def delete_coffee(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
path_params: RequestPathParams = frozendict.frozendict(),
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
@@ -241,6 +243,7 @@ class ApiFordelete(BaseApi):
|
||||
@typing.overload
|
||||
def delete(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
path_params: RequestPathParams = frozendict.frozendict(),
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
|
||||
@@ -92,6 +92,7 @@ class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _delete_coffee_oapg(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
path_params: RequestPathParams = frozendict.frozendict(),
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
@@ -184,6 +185,7 @@ class DeleteCoffee(BaseApi):
|
||||
@typing.overload
|
||||
def delete_coffee(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
path_params: RequestPathParams = frozendict.frozendict(),
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
@@ -235,6 +237,7 @@ class ApiFordelete(BaseApi):
|
||||
@typing.overload
|
||||
def delete(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
path_params: RequestPathParams = frozendict.frozendict(),
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
|
||||
@@ -71,6 +71,7 @@ class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _fake_health_get_oapg(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
@@ -149,6 +150,7 @@ class FakeHealthGet(BaseApi):
|
||||
@typing.overload
|
||||
def fake_health_get(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
@@ -198,6 +200,7 @@ class ApiForget(BaseApi):
|
||||
@typing.overload
|
||||
def get(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
|
||||
@@ -66,6 +66,7 @@ class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _fake_health_get_oapg(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
@@ -144,6 +145,7 @@ class FakeHealthGet(BaseApi):
|
||||
@typing.overload
|
||||
def fake_health_get(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
@@ -193,6 +195,7 @@ class ApiForget(BaseApi):
|
||||
@typing.overload
|
||||
def get(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
|
||||
@@ -133,6 +133,7 @@ class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _object_in_query_oapg(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
query_params: RequestQueryParams = frozendict.frozendict(),
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
@@ -219,6 +220,7 @@ class ObjectInQuery(BaseApi):
|
||||
@typing.overload
|
||||
def object_in_query(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
query_params: RequestQueryParams = frozendict.frozendict(),
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
@@ -268,6 +270,7 @@ class ApiForget(BaseApi):
|
||||
@typing.overload
|
||||
def get(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
query_params: RequestQueryParams = frozendict.frozendict(),
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
|
||||
@@ -128,6 +128,7 @@ class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _object_in_query_oapg(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
query_params: RequestQueryParams = frozendict.frozendict(),
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
@@ -214,6 +215,7 @@ class ObjectInQuery(BaseApi):
|
||||
@typing.overload
|
||||
def object_in_query(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
query_params: RequestQueryParams = frozendict.frozendict(),
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
@@ -263,6 +265,7 @@ class ApiForget(BaseApi):
|
||||
@typing.overload
|
||||
def get(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
query_params: RequestQueryParams = frozendict.frozendict(),
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
|
||||
@@ -97,6 +97,7 @@ class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _query_param_with_json_content_type_oapg(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
query_params: RequestQueryParams = frozendict.frozendict(),
|
||||
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
|
||||
stream: bool = False,
|
||||
@@ -193,6 +194,7 @@ class QueryParamWithJsonContentType(BaseApi):
|
||||
@typing.overload
|
||||
def query_param_with_json_content_type(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
query_params: RequestQueryParams = frozendict.frozendict(),
|
||||
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
|
||||
stream: bool = False,
|
||||
@@ -247,6 +249,7 @@ class ApiForget(BaseApi):
|
||||
@typing.overload
|
||||
def get(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
query_params: RequestQueryParams = frozendict.frozendict(),
|
||||
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
|
||||
stream: bool = False,
|
||||
|
||||
@@ -92,6 +92,7 @@ class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _query_param_with_json_content_type_oapg(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
query_params: RequestQueryParams = frozendict.frozendict(),
|
||||
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
|
||||
stream: bool = False,
|
||||
@@ -188,6 +189,7 @@ class QueryParamWithJsonContentType(BaseApi):
|
||||
@typing.overload
|
||||
def query_param_with_json_content_type(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
query_params: RequestQueryParams = frozendict.frozendict(),
|
||||
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
|
||||
stream: bool = False,
|
||||
@@ -242,6 +244,7 @@ class ApiForget(BaseApi):
|
||||
@typing.overload
|
||||
def get(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
query_params: RequestQueryParams = frozendict.frozendict(),
|
||||
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
|
||||
stream: bool = False,
|
||||
|
||||
@@ -86,6 +86,7 @@ class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _ref_object_in_query_oapg(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
query_params: RequestQueryParams = frozendict.frozendict(),
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
@@ -172,6 +173,7 @@ class RefObjectInQuery(BaseApi):
|
||||
@typing.overload
|
||||
def ref_object_in_query(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
query_params: RequestQueryParams = frozendict.frozendict(),
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
@@ -221,6 +223,7 @@ class ApiForget(BaseApi):
|
||||
@typing.overload
|
||||
def get(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
query_params: RequestQueryParams = frozendict.frozendict(),
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
|
||||
@@ -81,6 +81,7 @@ class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _ref_object_in_query_oapg(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
query_params: RequestQueryParams = frozendict.frozendict(),
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
@@ -167,6 +168,7 @@ class RefObjectInQuery(BaseApi):
|
||||
@typing.overload
|
||||
def ref_object_in_query(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
query_params: RequestQueryParams = frozendict.frozendict(),
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
@@ -216,6 +218,7 @@ class ApiForget(BaseApi):
|
||||
@typing.overload
|
||||
def get(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
query_params: RequestQueryParams = frozendict.frozendict(),
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
|
||||
@@ -70,6 +70,7 @@ class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _response_without_schema_oapg(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
@@ -148,6 +149,7 @@ class ResponseWithoutSchema(BaseApi):
|
||||
@typing.overload
|
||||
def response_without_schema(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
@@ -197,6 +199,7 @@ class ApiForget(BaseApi):
|
||||
@typing.overload
|
||||
def get(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
|
||||
@@ -65,6 +65,7 @@ class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _response_without_schema_oapg(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
@@ -143,6 +144,7 @@ class ResponseWithoutSchema(BaseApi):
|
||||
@typing.overload
|
||||
def response_without_schema(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
@@ -192,6 +194,7 @@ class ApiForget(BaseApi):
|
||||
@typing.overload
|
||||
def get(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
|
||||
@@ -239,6 +239,7 @@ class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _query_parameter_collection_format_oapg(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
query_params: RequestQueryParams = frozendict.frozendict(),
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
@@ -329,6 +330,7 @@ class QueryParameterCollectionFormat(BaseApi):
|
||||
@typing.overload
|
||||
def query_parameter_collection_format(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
query_params: RequestQueryParams = frozendict.frozendict(),
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
@@ -378,6 +380,7 @@ class ApiForput(BaseApi):
|
||||
@typing.overload
|
||||
def put(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
query_params: RequestQueryParams = frozendict.frozendict(),
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
|
||||
@@ -234,6 +234,7 @@ class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _query_parameter_collection_format_oapg(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
query_params: RequestQueryParams = frozendict.frozendict(),
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
@@ -324,6 +325,7 @@ class QueryParameterCollectionFormat(BaseApi):
|
||||
@typing.overload
|
||||
def query_parameter_collection_format(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
query_params: RequestQueryParams = frozendict.frozendict(),
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
@@ -373,6 +375,7 @@ class ApiForput(BaseApi):
|
||||
@typing.overload
|
||||
def put(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
query_params: RequestQueryParams = frozendict.frozendict(),
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
|
||||
@@ -123,6 +123,7 @@ class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _foo_get_oapg(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
@@ -204,6 +205,7 @@ class FooGet(BaseApi):
|
||||
@typing.overload
|
||||
def foo_get(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
@@ -253,6 +255,7 @@ class ApiForget(BaseApi):
|
||||
@typing.overload
|
||||
def get(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
|
||||
@@ -118,6 +118,7 @@ class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _foo_get_oapg(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
@@ -199,6 +200,7 @@ class FooGet(BaseApi):
|
||||
@typing.overload
|
||||
def foo_get(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
@@ -248,6 +250,7 @@ class ApiForget(BaseApi):
|
||||
@typing.overload
|
||||
def get(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
|
||||
@@ -217,6 +217,7 @@ class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _find_pets_by_status_oapg(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
query_params: RequestQueryParams = frozendict.frozendict(),
|
||||
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
|
||||
stream: bool = False,
|
||||
@@ -314,6 +315,7 @@ class FindPetsByStatus(BaseApi):
|
||||
@typing.overload
|
||||
def find_pets_by_status(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
query_params: RequestQueryParams = frozendict.frozendict(),
|
||||
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
|
||||
stream: bool = False,
|
||||
@@ -368,6 +370,7 @@ class ApiForget(BaseApi):
|
||||
@typing.overload
|
||||
def get(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
query_params: RequestQueryParams = frozendict.frozendict(),
|
||||
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
|
||||
stream: bool = False,
|
||||
|
||||
@@ -199,6 +199,7 @@ class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _find_pets_by_status_oapg(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
query_params: RequestQueryParams = frozendict.frozendict(),
|
||||
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
|
||||
stream: bool = False,
|
||||
@@ -296,6 +297,7 @@ class FindPetsByStatus(BaseApi):
|
||||
@typing.overload
|
||||
def find_pets_by_status(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
query_params: RequestQueryParams = frozendict.frozendict(),
|
||||
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
|
||||
stream: bool = False,
|
||||
@@ -350,6 +352,7 @@ class ApiForget(BaseApi):
|
||||
@typing.overload
|
||||
def get(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
query_params: RequestQueryParams = frozendict.frozendict(),
|
||||
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
|
||||
stream: bool = False,
|
||||
|
||||
@@ -192,6 +192,7 @@ class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _find_pets_by_tags_oapg(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
query_params: RequestQueryParams = frozendict.frozendict(),
|
||||
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
|
||||
stream: bool = False,
|
||||
@@ -289,6 +290,7 @@ class FindPetsByTags(BaseApi):
|
||||
@typing.overload
|
||||
def find_pets_by_tags(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
query_params: RequestQueryParams = frozendict.frozendict(),
|
||||
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
|
||||
stream: bool = False,
|
||||
@@ -343,6 +345,7 @@ class ApiForget(BaseApi):
|
||||
@typing.overload
|
||||
def get(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
query_params: RequestQueryParams = frozendict.frozendict(),
|
||||
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
|
||||
stream: bool = False,
|
||||
|
||||
@@ -182,6 +182,7 @@ class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _find_pets_by_tags_oapg(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
query_params: RequestQueryParams = frozendict.frozendict(),
|
||||
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
|
||||
stream: bool = False,
|
||||
@@ -279,6 +280,7 @@ class FindPetsByTags(BaseApi):
|
||||
@typing.overload
|
||||
def find_pets_by_tags(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
query_params: RequestQueryParams = frozendict.frozendict(),
|
||||
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
|
||||
stream: bool = False,
|
||||
@@ -333,6 +335,7 @@ class ApiForget(BaseApi):
|
||||
@typing.overload
|
||||
def get(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
query_params: RequestQueryParams = frozendict.frozendict(),
|
||||
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
|
||||
stream: bool = False,
|
||||
|
||||
@@ -111,6 +111,7 @@ class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _delete_pet_oapg(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
header_params: RequestHeaderParams = frozendict.frozendict(),
|
||||
path_params: RequestPathParams = frozendict.frozendict(),
|
||||
stream: bool = False,
|
||||
@@ -210,6 +211,7 @@ class DeletePet(BaseApi):
|
||||
@typing.overload
|
||||
def delete_pet(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
header_params: RequestHeaderParams = frozendict.frozendict(),
|
||||
path_params: RequestPathParams = frozendict.frozendict(),
|
||||
stream: bool = False,
|
||||
@@ -260,6 +262,7 @@ class ApiFordelete(BaseApi):
|
||||
@typing.overload
|
||||
def delete(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
header_params: RequestHeaderParams = frozendict.frozendict(),
|
||||
path_params: RequestPathParams = frozendict.frozendict(),
|
||||
stream: bool = False,
|
||||
|
||||
@@ -103,6 +103,7 @@ class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _delete_pet_oapg(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
header_params: RequestHeaderParams = frozendict.frozendict(),
|
||||
path_params: RequestPathParams = frozendict.frozendict(),
|
||||
stream: bool = False,
|
||||
@@ -202,6 +203,7 @@ class DeletePet(BaseApi):
|
||||
@typing.overload
|
||||
def delete_pet(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
header_params: RequestHeaderParams = frozendict.frozendict(),
|
||||
path_params: RequestPathParams = frozendict.frozendict(),
|
||||
stream: bool = False,
|
||||
@@ -252,6 +254,7 @@ class ApiFordelete(BaseApi):
|
||||
@typing.overload
|
||||
def delete(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
header_params: RequestHeaderParams = frozendict.frozendict(),
|
||||
path_params: RequestPathParams = frozendict.frozendict(),
|
||||
stream: bool = False,
|
||||
|
||||
@@ -132,6 +132,7 @@ class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _get_pet_by_id_oapg(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
path_params: RequestPathParams = frozendict.frozendict(),
|
||||
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
|
||||
stream: bool = False,
|
||||
@@ -229,6 +230,7 @@ class GetPetById(BaseApi):
|
||||
@typing.overload
|
||||
def get_pet_by_id(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
path_params: RequestPathParams = frozendict.frozendict(),
|
||||
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
|
||||
stream: bool = False,
|
||||
@@ -283,6 +285,7 @@ class ApiForget(BaseApi):
|
||||
@typing.overload
|
||||
def get(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
path_params: RequestPathParams = frozendict.frozendict(),
|
||||
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
|
||||
stream: bool = False,
|
||||
|
||||
@@ -122,6 +122,7 @@ class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _get_pet_by_id_oapg(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
path_params: RequestPathParams = frozendict.frozendict(),
|
||||
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
|
||||
stream: bool = False,
|
||||
@@ -219,6 +220,7 @@ class GetPetById(BaseApi):
|
||||
@typing.overload
|
||||
def get_pet_by_id(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
path_params: RequestPathParams = frozendict.frozendict(),
|
||||
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
|
||||
stream: bool = False,
|
||||
@@ -273,6 +275,7 @@ class ApiForget(BaseApi):
|
||||
@typing.overload
|
||||
def get(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
path_params: RequestPathParams = frozendict.frozendict(),
|
||||
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
|
||||
stream: bool = False,
|
||||
|
||||
@@ -100,6 +100,7 @@ class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _get_inventory_oapg(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
@@ -179,6 +180,7 @@ class GetInventory(BaseApi):
|
||||
@typing.overload
|
||||
def get_inventory(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
@@ -228,6 +230,7 @@ class ApiForget(BaseApi):
|
||||
@typing.overload
|
||||
def get(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
|
||||
@@ -92,6 +92,7 @@ class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _get_inventory_oapg(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
@@ -171,6 +172,7 @@ class GetInventory(BaseApi):
|
||||
@typing.overload
|
||||
def get_inventory(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
@@ -220,6 +222,7 @@ class ApiForget(BaseApi):
|
||||
@typing.overload
|
||||
def get(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
|
||||
@@ -94,6 +94,7 @@ class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _delete_order_oapg(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
path_params: RequestPathParams = frozendict.frozendict(),
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
@@ -176,6 +177,7 @@ class DeleteOrder(BaseApi):
|
||||
@typing.overload
|
||||
def delete_order(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
path_params: RequestPathParams = frozendict.frozendict(),
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
@@ -221,6 +223,7 @@ class ApiFordelete(BaseApi):
|
||||
@typing.overload
|
||||
def delete(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
path_params: RequestPathParams = frozendict.frozendict(),
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
|
||||
@@ -88,6 +88,7 @@ class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _delete_order_oapg(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
path_params: RequestPathParams = frozendict.frozendict(),
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
@@ -170,6 +171,7 @@ class DeleteOrder(BaseApi):
|
||||
@typing.overload
|
||||
def delete_order(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
path_params: RequestPathParams = frozendict.frozendict(),
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
@@ -215,6 +217,7 @@ class ApiFordelete(BaseApi):
|
||||
@typing.overload
|
||||
def delete(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
path_params: RequestPathParams = frozendict.frozendict(),
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
|
||||
@@ -139,6 +139,7 @@ class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _get_order_by_id_oapg(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
path_params: RequestPathParams = frozendict.frozendict(),
|
||||
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
|
||||
stream: bool = False,
|
||||
@@ -235,6 +236,7 @@ class GetOrderById(BaseApi):
|
||||
@typing.overload
|
||||
def get_order_by_id(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
path_params: RequestPathParams = frozendict.frozendict(),
|
||||
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
|
||||
stream: bool = False,
|
||||
@@ -289,6 +291,7 @@ class ApiForget(BaseApi):
|
||||
@typing.overload
|
||||
def get(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
path_params: RequestPathParams = frozendict.frozendict(),
|
||||
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
|
||||
stream: bool = False,
|
||||
|
||||
@@ -127,6 +127,7 @@ class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _get_order_by_id_oapg(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
path_params: RequestPathParams = frozendict.frozendict(),
|
||||
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
|
||||
stream: bool = False,
|
||||
@@ -223,6 +224,7 @@ class GetOrderById(BaseApi):
|
||||
@typing.overload
|
||||
def get_order_by_id(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
path_params: RequestPathParams = frozendict.frozendict(),
|
||||
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
|
||||
stream: bool = False,
|
||||
@@ -277,6 +279,7 @@ class ApiForget(BaseApi):
|
||||
@typing.overload
|
||||
def get(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
path_params: RequestPathParams = frozendict.frozendict(),
|
||||
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
|
||||
stream: bool = False,
|
||||
|
||||
@@ -147,6 +147,7 @@ class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _login_user_oapg(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
query_params: RequestQueryParams = frozendict.frozendict(),
|
||||
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
|
||||
stream: bool = False,
|
||||
@@ -244,6 +245,7 @@ class LoginUser(BaseApi):
|
||||
@typing.overload
|
||||
def login_user(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
query_params: RequestQueryParams = frozendict.frozendict(),
|
||||
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
|
||||
stream: bool = False,
|
||||
@@ -298,6 +300,7 @@ class ApiForget(BaseApi):
|
||||
@typing.overload
|
||||
def get(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
query_params: RequestQueryParams = frozendict.frozendict(),
|
||||
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
|
||||
stream: bool = False,
|
||||
|
||||
@@ -131,6 +131,7 @@ class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _login_user_oapg(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
query_params: RequestQueryParams = frozendict.frozendict(),
|
||||
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
|
||||
stream: bool = False,
|
||||
@@ -228,6 +229,7 @@ class LoginUser(BaseApi):
|
||||
@typing.overload
|
||||
def login_user(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
query_params: RequestQueryParams = frozendict.frozendict(),
|
||||
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
|
||||
stream: bool = False,
|
||||
@@ -282,6 +284,7 @@ class ApiForget(BaseApi):
|
||||
@typing.overload
|
||||
def get(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
query_params: RequestQueryParams = frozendict.frozendict(),
|
||||
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
|
||||
stream: bool = False,
|
||||
|
||||
@@ -57,6 +57,7 @@ class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _logout_user_oapg(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
@@ -129,6 +130,7 @@ class LogoutUser(BaseApi):
|
||||
@typing.overload
|
||||
def logout_user(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
@@ -173,6 +175,7 @@ class ApiForget(BaseApi):
|
||||
@typing.overload
|
||||
def get(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@@ -52,6 +52,7 @@ class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _logout_user_oapg(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
@@ -124,6 +125,7 @@ class LogoutUser(BaseApi):
|
||||
@typing.overload
|
||||
def logout_user(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
@@ -168,6 +170,7 @@ class ApiForget(BaseApi):
|
||||
@typing.overload
|
||||
def get(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
) -> api_client.ApiResponseWithoutDeserialization: ...
|
||||
|
||||
@@ -97,6 +97,7 @@ class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _delete_user_oapg(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
path_params: RequestPathParams = frozendict.frozendict(),
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
@@ -183,6 +184,7 @@ class DeleteUser(BaseApi):
|
||||
@typing.overload
|
||||
def delete_user(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
path_params: RequestPathParams = frozendict.frozendict(),
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
@@ -232,6 +234,7 @@ class ApiFordelete(BaseApi):
|
||||
@typing.overload
|
||||
def delete(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
path_params: RequestPathParams = frozendict.frozendict(),
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
|
||||
@@ -91,6 +91,7 @@ class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _delete_user_oapg(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
path_params: RequestPathParams = frozendict.frozendict(),
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
@@ -177,6 +178,7 @@ class DeleteUser(BaseApi):
|
||||
@typing.overload
|
||||
def delete_user(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
path_params: RequestPathParams = frozendict.frozendict(),
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
@@ -226,6 +228,7 @@ class ApiFordelete(BaseApi):
|
||||
@typing.overload
|
||||
def delete(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
path_params: RequestPathParams = frozendict.frozendict(),
|
||||
stream: bool = False,
|
||||
timeout: typing.Optional[typing.Union[int, typing.Tuple]] = None,
|
||||
|
||||
@@ -129,6 +129,7 @@ class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _get_user_by_name_oapg(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
path_params: RequestPathParams = frozendict.frozendict(),
|
||||
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
|
||||
stream: bool = False,
|
||||
@@ -225,6 +226,7 @@ class GetUserByName(BaseApi):
|
||||
@typing.overload
|
||||
def get_user_by_name(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
path_params: RequestPathParams = frozendict.frozendict(),
|
||||
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
|
||||
stream: bool = False,
|
||||
@@ -279,6 +281,7 @@ class ApiForget(BaseApi):
|
||||
@typing.overload
|
||||
def get(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
path_params: RequestPathParams = frozendict.frozendict(),
|
||||
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
|
||||
stream: bool = False,
|
||||
|
||||
@@ -122,6 +122,7 @@ class BaseApi(api_client.Api):
|
||||
@typing.overload
|
||||
def _get_user_by_name_oapg(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
path_params: RequestPathParams = frozendict.frozendict(),
|
||||
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
|
||||
stream: bool = False,
|
||||
@@ -218,6 +219,7 @@ class GetUserByName(BaseApi):
|
||||
@typing.overload
|
||||
def get_user_by_name(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
path_params: RequestPathParams = frozendict.frozendict(),
|
||||
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
|
||||
stream: bool = False,
|
||||
@@ -272,6 +274,7 @@ class ApiForget(BaseApi):
|
||||
@typing.overload
|
||||
def get(
|
||||
self,
|
||||
skip_deserialization: typing_extensions.Literal[True],
|
||||
path_params: RequestPathParams = frozendict.frozendict(),
|
||||
accept_content_types: typing.Tuple[str] = _all_accept_content_types,
|
||||
stream: bool = False,
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
# coding: utf-8
|
||||
|
||||
"""
|
||||
OpenAPI Petstore
|
||||
|
||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
import unittest
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.model.object_with_all_of_with_req_test_prop_from_unset_add_prop import ObjectWithAllOfWithReqTestPropFromUnsetAddProp
|
||||
from petstore_api import configuration
|
||||
|
||||
|
||||
class TestObjectWithAllOfWithReqTestPropFromUnsetAddProp(unittest.TestCase):
|
||||
"""ObjectWithAllOfWithReqTestPropFromUnsetAddProp unit test stubs"""
|
||||
_configuration = configuration.Configuration()
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
@@ -0,0 +1,25 @@
|
||||
# coding: utf-8
|
||||
|
||||
"""
|
||||
OpenAPI Petstore
|
||||
|
||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
import unittest
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.model.object_with_optional_test_prop import ObjectWithOptionalTestProp
|
||||
from petstore_api import configuration
|
||||
|
||||
|
||||
class TestObjectWithOptionalTestProp(unittest.TestCase):
|
||||
"""ObjectWithOptionalTestProp unit test stubs"""
|
||||
_configuration = configuration.Configuration()
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
@@ -0,0 +1,34 @@
|
||||
# coding: utf-8
|
||||
|
||||
"""
|
||||
OpenAPI Petstore
|
||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by: https://openapi-generator.tech
|
||||
"""
|
||||
|
||||
import unittest
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.model.object_with_all_of_with_req_test_prop_from_unset_add_prop import ObjectWithAllOfWithReqTestPropFromUnsetAddProp
|
||||
from petstore_api import configuration
|
||||
|
||||
|
||||
class TestObjectWithAllOfWithReqTestPropFromUnsetAddProp(unittest.TestCase):
|
||||
"""ObjectWithAllOfWithReqTestPropFromUnsetAddProp unit test stubs"""
|
||||
|
||||
def test_model_instantiation(self):
|
||||
inst = ObjectWithAllOfWithReqTestPropFromUnsetAddProp(
|
||||
test='a'
|
||||
)
|
||||
assert inst == {'test': 'a'}
|
||||
|
||||
# without the required test property an execption is thrown
|
||||
with self.assertRaises(petstore_api.exceptions.ApiTypeError):
|
||||
ObjectWithAllOfWithReqTestPropFromUnsetAddProp(
|
||||
name='a'
|
||||
)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
Reference in New Issue
Block a user