mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-18 21:27:10 +00:00
Python-exp clean up model classnames (#7054)
* Adds lazy_import, removes python-exp java class renaming code, partial removal of getPythonClassName call sites Fixes PythonClientExperimentalTest.java Python-exp smaples regeneration Revers makefile Reverst pom.xml Fixes model imports in models.__init__ Updates docstring, omits lazy import in additional properties if we dont need it Improves additional_properties_type assignment if None Removes getPythonClassName Fixes python-exp tests * Removes unused makefiles
This commit is contained in:
@@ -50,7 +50,7 @@ import time
|
||||
import petstore_api
|
||||
from pprint import pprint
|
||||
from petstore_api.api import another_fake_api
|
||||
from petstore_api.model import client
|
||||
from petstore_api.model.client import Client
|
||||
# Defining the host is optional and defaults to http://petstore.swagger.io:80/v2
|
||||
# See configuration.py for a list of all supported configuration parameters.
|
||||
configuration = petstore_api.Configuration(
|
||||
@@ -63,7 +63,7 @@ configuration = petstore_api.Configuration(
|
||||
with petstore_api.ApiClient(configuration) as api_client:
|
||||
# Create an instance of the API class
|
||||
api_instance = another_fake_api.AnotherFakeApi(api_client)
|
||||
body = client.Client() # client.Client | client model
|
||||
body = Client() # Client | client model
|
||||
|
||||
try:
|
||||
# To test special tags
|
||||
@@ -122,69 +122,69 @@ Class | Method | HTTP request | Description
|
||||
|
||||
## Documentation For Models
|
||||
|
||||
- [additional_properties_any_type.AdditionalPropertiesAnyType](docs/AdditionalPropertiesAnyType.md)
|
||||
- [additional_properties_array.AdditionalPropertiesArray](docs/AdditionalPropertiesArray.md)
|
||||
- [additional_properties_boolean.AdditionalPropertiesBoolean](docs/AdditionalPropertiesBoolean.md)
|
||||
- [additional_properties_class.AdditionalPropertiesClass](docs/AdditionalPropertiesClass.md)
|
||||
- [additional_properties_integer.AdditionalPropertiesInteger](docs/AdditionalPropertiesInteger.md)
|
||||
- [additional_properties_number.AdditionalPropertiesNumber](docs/AdditionalPropertiesNumber.md)
|
||||
- [additional_properties_object.AdditionalPropertiesObject](docs/AdditionalPropertiesObject.md)
|
||||
- [additional_properties_string.AdditionalPropertiesString](docs/AdditionalPropertiesString.md)
|
||||
- [animal.Animal](docs/Animal.md)
|
||||
- [animal_farm.AnimalFarm](docs/AnimalFarm.md)
|
||||
- [api_response.ApiResponse](docs/ApiResponse.md)
|
||||
- [array_of_array_of_number_only.ArrayOfArrayOfNumberOnly](docs/ArrayOfArrayOfNumberOnly.md)
|
||||
- [array_of_number_only.ArrayOfNumberOnly](docs/ArrayOfNumberOnly.md)
|
||||
- [array_test.ArrayTest](docs/ArrayTest.md)
|
||||
- [capitalization.Capitalization](docs/Capitalization.md)
|
||||
- [cat.Cat](docs/Cat.md)
|
||||
- [cat_all_of.CatAllOf](docs/CatAllOf.md)
|
||||
- [category.Category](docs/Category.md)
|
||||
- [child.Child](docs/Child.md)
|
||||
- [child_all_of.ChildAllOf](docs/ChildAllOf.md)
|
||||
- [child_cat.ChildCat](docs/ChildCat.md)
|
||||
- [child_cat_all_of.ChildCatAllOf](docs/ChildCatAllOf.md)
|
||||
- [child_dog.ChildDog](docs/ChildDog.md)
|
||||
- [child_dog_all_of.ChildDogAllOf](docs/ChildDogAllOf.md)
|
||||
- [child_lizard.ChildLizard](docs/ChildLizard.md)
|
||||
- [child_lizard_all_of.ChildLizardAllOf](docs/ChildLizardAllOf.md)
|
||||
- [class_model.ClassModel](docs/ClassModel.md)
|
||||
- [client.Client](docs/Client.md)
|
||||
- [dog.Dog](docs/Dog.md)
|
||||
- [dog_all_of.DogAllOf](docs/DogAllOf.md)
|
||||
- [enum_arrays.EnumArrays](docs/EnumArrays.md)
|
||||
- [enum_class.EnumClass](docs/EnumClass.md)
|
||||
- [enum_test.EnumTest](docs/EnumTest.md)
|
||||
- [file.File](docs/File.md)
|
||||
- [file_schema_test_class.FileSchemaTestClass](docs/FileSchemaTestClass.md)
|
||||
- [format_test.FormatTest](docs/FormatTest.md)
|
||||
- [grandparent.Grandparent](docs/Grandparent.md)
|
||||
- [grandparent_animal.GrandparentAnimal](docs/GrandparentAnimal.md)
|
||||
- [has_only_read_only.HasOnlyReadOnly](docs/HasOnlyReadOnly.md)
|
||||
- [list.List](docs/List.md)
|
||||
- [map_test.MapTest](docs/MapTest.md)
|
||||
- [mixed_properties_and_additional_properties_class.MixedPropertiesAndAdditionalPropertiesClass](docs/MixedPropertiesAndAdditionalPropertiesClass.md)
|
||||
- [model200_response.Model200Response](docs/Model200Response.md)
|
||||
- [model_return.ModelReturn](docs/ModelReturn.md)
|
||||
- [name.Name](docs/Name.md)
|
||||
- [number_only.NumberOnly](docs/NumberOnly.md)
|
||||
- [number_with_validations.NumberWithValidations](docs/NumberWithValidations.md)
|
||||
- [object_model_with_ref_props.ObjectModelWithRefProps](docs/ObjectModelWithRefProps.md)
|
||||
- [order.Order](docs/Order.md)
|
||||
- [parent.Parent](docs/Parent.md)
|
||||
- [parent_all_of.ParentAllOf](docs/ParentAllOf.md)
|
||||
- [parent_pet.ParentPet](docs/ParentPet.md)
|
||||
- [pet.Pet](docs/Pet.md)
|
||||
- [player.Player](docs/Player.md)
|
||||
- [read_only_first.ReadOnlyFirst](docs/ReadOnlyFirst.md)
|
||||
- [special_model_name.SpecialModelName](docs/SpecialModelName.md)
|
||||
- [string_boolean_map.StringBooleanMap](docs/StringBooleanMap.md)
|
||||
- [string_enum.StringEnum](docs/StringEnum.md)
|
||||
- [tag.Tag](docs/Tag.md)
|
||||
- [type_holder_default.TypeHolderDefault](docs/TypeHolderDefault.md)
|
||||
- [type_holder_example.TypeHolderExample](docs/TypeHolderExample.md)
|
||||
- [user.User](docs/User.md)
|
||||
- [xml_item.XmlItem](docs/XmlItem.md)
|
||||
- [AdditionalPropertiesAnyType](docs/AdditionalPropertiesAnyType.md)
|
||||
- [AdditionalPropertiesArray](docs/AdditionalPropertiesArray.md)
|
||||
- [AdditionalPropertiesBoolean](docs/AdditionalPropertiesBoolean.md)
|
||||
- [AdditionalPropertiesClass](docs/AdditionalPropertiesClass.md)
|
||||
- [AdditionalPropertiesInteger](docs/AdditionalPropertiesInteger.md)
|
||||
- [AdditionalPropertiesNumber](docs/AdditionalPropertiesNumber.md)
|
||||
- [AdditionalPropertiesObject](docs/AdditionalPropertiesObject.md)
|
||||
- [AdditionalPropertiesString](docs/AdditionalPropertiesString.md)
|
||||
- [Animal](docs/Animal.md)
|
||||
- [AnimalFarm](docs/AnimalFarm.md)
|
||||
- [ApiResponse](docs/ApiResponse.md)
|
||||
- [ArrayOfArrayOfNumberOnly](docs/ArrayOfArrayOfNumberOnly.md)
|
||||
- [ArrayOfNumberOnly](docs/ArrayOfNumberOnly.md)
|
||||
- [ArrayTest](docs/ArrayTest.md)
|
||||
- [Capitalization](docs/Capitalization.md)
|
||||
- [Cat](docs/Cat.md)
|
||||
- [CatAllOf](docs/CatAllOf.md)
|
||||
- [Category](docs/Category.md)
|
||||
- [Child](docs/Child.md)
|
||||
- [ChildAllOf](docs/ChildAllOf.md)
|
||||
- [ChildCat](docs/ChildCat.md)
|
||||
- [ChildCatAllOf](docs/ChildCatAllOf.md)
|
||||
- [ChildDog](docs/ChildDog.md)
|
||||
- [ChildDogAllOf](docs/ChildDogAllOf.md)
|
||||
- [ChildLizard](docs/ChildLizard.md)
|
||||
- [ChildLizardAllOf](docs/ChildLizardAllOf.md)
|
||||
- [ClassModel](docs/ClassModel.md)
|
||||
- [Client](docs/Client.md)
|
||||
- [Dog](docs/Dog.md)
|
||||
- [DogAllOf](docs/DogAllOf.md)
|
||||
- [EnumArrays](docs/EnumArrays.md)
|
||||
- [EnumClass](docs/EnumClass.md)
|
||||
- [EnumTest](docs/EnumTest.md)
|
||||
- [File](docs/File.md)
|
||||
- [FileSchemaTestClass](docs/FileSchemaTestClass.md)
|
||||
- [FormatTest](docs/FormatTest.md)
|
||||
- [Grandparent](docs/Grandparent.md)
|
||||
- [GrandparentAnimal](docs/GrandparentAnimal.md)
|
||||
- [HasOnlyReadOnly](docs/HasOnlyReadOnly.md)
|
||||
- [List](docs/List.md)
|
||||
- [MapTest](docs/MapTest.md)
|
||||
- [MixedPropertiesAndAdditionalPropertiesClass](docs/MixedPropertiesAndAdditionalPropertiesClass.md)
|
||||
- [Model200Response](docs/Model200Response.md)
|
||||
- [ModelReturn](docs/ModelReturn.md)
|
||||
- [Name](docs/Name.md)
|
||||
- [NumberOnly](docs/NumberOnly.md)
|
||||
- [NumberWithValidations](docs/NumberWithValidations.md)
|
||||
- [ObjectModelWithRefProps](docs/ObjectModelWithRefProps.md)
|
||||
- [Order](docs/Order.md)
|
||||
- [Parent](docs/Parent.md)
|
||||
- [ParentAllOf](docs/ParentAllOf.md)
|
||||
- [ParentPet](docs/ParentPet.md)
|
||||
- [Pet](docs/Pet.md)
|
||||
- [Player](docs/Player.md)
|
||||
- [ReadOnlyFirst](docs/ReadOnlyFirst.md)
|
||||
- [SpecialModelName](docs/SpecialModelName.md)
|
||||
- [StringBooleanMap](docs/StringBooleanMap.md)
|
||||
- [StringEnum](docs/StringEnum.md)
|
||||
- [Tag](docs/Tag.md)
|
||||
- [TypeHolderDefault](docs/TypeHolderDefault.md)
|
||||
- [TypeHolderExample](docs/TypeHolderExample.md)
|
||||
- [User](docs/User.md)
|
||||
- [XmlItem](docs/XmlItem.md)
|
||||
|
||||
|
||||
## Documentation For Authorization
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# additional_properties_any_type.AdditionalPropertiesAnyType
|
||||
# AdditionalPropertiesAnyType
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# additional_properties_array.AdditionalPropertiesArray
|
||||
# AdditionalPropertiesArray
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# additional_properties_boolean.AdditionalPropertiesBoolean
|
||||
# AdditionalPropertiesBoolean
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# additional_properties_class.AdditionalPropertiesClass
|
||||
# AdditionalPropertiesClass
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# additional_properties_integer.AdditionalPropertiesInteger
|
||||
# AdditionalPropertiesInteger
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# additional_properties_number.AdditionalPropertiesNumber
|
||||
# AdditionalPropertiesNumber
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# additional_properties_object.AdditionalPropertiesObject
|
||||
# AdditionalPropertiesObject
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# additional_properties_string.AdditionalPropertiesString
|
||||
# AdditionalPropertiesString
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# animal.Animal
|
||||
# Animal
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
# animal_farm.AnimalFarm
|
||||
# AnimalFarm
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**value** | [**[animal.Animal]**](Animal.md) | |
|
||||
**value** | [**[Animal]**](Animal.md) | |
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ Method | HTTP request | Description
|
||||
|
||||
|
||||
# **call_123_test_special_tags**
|
||||
> client.Client call_123_test_special_tags(body)
|
||||
> Client call_123_test_special_tags(body)
|
||||
|
||||
To test special tags
|
||||
|
||||
@@ -20,7 +20,7 @@ To test special tags and operation ID starting with number
|
||||
import time
|
||||
import petstore_api
|
||||
from petstore_api.api import another_fake_api
|
||||
from petstore_api.model import client
|
||||
from petstore_api.model.client import Client
|
||||
from pprint import pprint
|
||||
# Defining the host is optional and defaults to http://petstore.swagger.io:80/v2
|
||||
# See configuration.py for a list of all supported configuration parameters.
|
||||
@@ -33,7 +33,7 @@ configuration = petstore_api.Configuration(
|
||||
with petstore_api.ApiClient() as api_client:
|
||||
# Create an instance of the API class
|
||||
api_instance = another_fake_api.AnotherFakeApi(api_client)
|
||||
body = client.Client() # client.Client | client model
|
||||
body = Client() # Client | client model
|
||||
|
||||
# example passing only required values which don't have defaults set
|
||||
try:
|
||||
@@ -48,11 +48,11 @@ with petstore_api.ApiClient() as api_client:
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**body** | [**client.Client**](Client.md)| client model |
|
||||
**body** | [**Client**](Client.md)| client model |
|
||||
|
||||
### Return type
|
||||
|
||||
[**client.Client**](Client.md)
|
||||
[**Client**](Client.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# api_response.ApiResponse
|
||||
# ApiResponse
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# array_of_array_of_number_only.ArrayOfArrayOfNumberOnly
|
||||
# ArrayOfArrayOfNumberOnly
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# array_of_number_only.ArrayOfNumberOnly
|
||||
# ArrayOfNumberOnly
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
# array_test.ArrayTest
|
||||
# ArrayTest
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**array_of_string** | **[str]** | | [optional]
|
||||
**array_array_of_integer** | **[[int]]** | | [optional]
|
||||
**array_array_of_model** | [**[[read_only_first.ReadOnlyFirst]]**](ReadOnlyFirst.md) | | [optional]
|
||||
**array_array_of_model** | [**[[ReadOnlyFirst]]**](ReadOnlyFirst.md) | | [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)
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# capitalization.Capitalization
|
||||
# Capitalization
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# cat.Cat
|
||||
# Cat
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# cat_all_of.CatAllOf
|
||||
# CatAllOf
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# category.Category
|
||||
# Category
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# child.Child
|
||||
# Child
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# child_all_of.ChildAllOf
|
||||
# ChildAllOf
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# child_cat.ChildCat
|
||||
# ChildCat
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# child_cat_all_of.ChildCatAllOf
|
||||
# ChildCatAllOf
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# child_dog.ChildDog
|
||||
# ChildDog
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# child_dog_all_of.ChildDogAllOf
|
||||
# ChildDogAllOf
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# child_lizard.ChildLizard
|
||||
# ChildLizard
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# child_lizard_all_of.ChildLizardAllOf
|
||||
# ChildLizardAllOf
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# class_model.ClassModel
|
||||
# ClassModel
|
||||
|
||||
Model for testing model with \"_class\" property
|
||||
## Properties
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# client.Client
|
||||
# Client
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# dog.Dog
|
||||
# Dog
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# dog_all_of.DogAllOf
|
||||
# DogAllOf
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# enum_arrays.EnumArrays
|
||||
# EnumArrays
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# enum_class.EnumClass
|
||||
# EnumClass
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# enum_test.EnumTest
|
||||
# EnumTest
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
|
||||
**enum_string** | **str** | | [optional]
|
||||
**enum_integer** | **int** | | [optional]
|
||||
**enum_number** | **float** | | [optional]
|
||||
**string_enum** | [**string_enum.StringEnum**](StringEnum.md) | | [optional]
|
||||
**string_enum** | [**StringEnum**](StringEnum.md) | | [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)
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ Method | HTTP request | Description
|
||||
|
||||
|
||||
# **array_model**
|
||||
> animal_farm.AnimalFarm array_model()
|
||||
> AnimalFarm array_model()
|
||||
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ Test serialization of ArrayModel
|
||||
import time
|
||||
import petstore_api
|
||||
from petstore_api.api import fake_api
|
||||
from petstore_api.model import animal_farm
|
||||
from petstore_api.model.animal_farm import AnimalFarm
|
||||
from pprint import pprint
|
||||
# Defining the host is optional and defaults to http://petstore.swagger.io:80/v2
|
||||
# See configuration.py for a list of all supported configuration parameters.
|
||||
@@ -48,7 +48,7 @@ configuration = petstore_api.Configuration(
|
||||
with petstore_api.ApiClient() as api_client:
|
||||
# Create an instance of the API class
|
||||
api_instance = fake_api.FakeApi(api_client)
|
||||
body = animal_farm.AnimalFarm() # animal_farm.AnimalFarm | Input model (optional)
|
||||
body = AnimalFarm() # AnimalFarm | Input model (optional)
|
||||
|
||||
# example passing only required values which don't have defaults set
|
||||
# and optional values
|
||||
@@ -63,11 +63,11 @@ with petstore_api.ApiClient() as api_client:
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**body** | [**animal_farm.AnimalFarm**](AnimalFarm.md)| Input model | [optional]
|
||||
**body** | [**AnimalFarm**](AnimalFarm.md)| Input model | [optional]
|
||||
|
||||
### Return type
|
||||
|
||||
[**animal_farm.AnimalFarm**](AnimalFarm.md)
|
||||
[**AnimalFarm**](AnimalFarm.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
@@ -160,7 +160,7 @@ this route creates an XmlItem
|
||||
import time
|
||||
import petstore_api
|
||||
from petstore_api.api import fake_api
|
||||
from petstore_api.model import xml_item
|
||||
from petstore_api.model.xml_item import XmlItem
|
||||
from pprint import pprint
|
||||
# Defining the host is optional and defaults to http://petstore.swagger.io:80/v2
|
||||
# See configuration.py for a list of all supported configuration parameters.
|
||||
@@ -173,7 +173,7 @@ configuration = petstore_api.Configuration(
|
||||
with petstore_api.ApiClient() as api_client:
|
||||
# Create an instance of the API class
|
||||
api_instance = fake_api.FakeApi(api_client)
|
||||
xml_item = xml_item.XmlItem() # xml_item.XmlItem | XmlItem Body
|
||||
xml_item = XmlItem() # XmlItem | XmlItem Body
|
||||
|
||||
# example passing only required values which don't have defaults set
|
||||
try:
|
||||
@@ -187,7 +187,7 @@ with petstore_api.ApiClient() as api_client:
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**xml_item** | [**xml_item.XmlItem**](XmlItem.md)| XmlItem Body |
|
||||
**xml_item** | [**XmlItem**](XmlItem.md)| XmlItem Body |
|
||||
|
||||
### Return type
|
||||
|
||||
@@ -210,7 +210,7 @@ No authorization required
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
# **number_with_validations**
|
||||
> number_with_validations.NumberWithValidations number_with_validations()
|
||||
> NumberWithValidations number_with_validations()
|
||||
|
||||
|
||||
|
||||
@@ -222,7 +222,7 @@ Test serialization of outer number types
|
||||
import time
|
||||
import petstore_api
|
||||
from petstore_api.api import fake_api
|
||||
from petstore_api.model import number_with_validations
|
||||
from petstore_api.model.number_with_validations import NumberWithValidations
|
||||
from pprint import pprint
|
||||
# Defining the host is optional and defaults to http://petstore.swagger.io:80/v2
|
||||
# See configuration.py for a list of all supported configuration parameters.
|
||||
@@ -235,7 +235,7 @@ configuration = petstore_api.Configuration(
|
||||
with petstore_api.ApiClient() as api_client:
|
||||
# Create an instance of the API class
|
||||
api_instance = fake_api.FakeApi(api_client)
|
||||
body = number_with_validations.NumberWithValidations(3.4) # number_with_validations.NumberWithValidations | Input number as post body (optional)
|
||||
body = NumberWithValidations(3.4) # NumberWithValidations | Input number as post body (optional)
|
||||
|
||||
# example passing only required values which don't have defaults set
|
||||
# and optional values
|
||||
@@ -250,11 +250,11 @@ with petstore_api.ApiClient() as api_client:
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**body** | [**number_with_validations.NumberWithValidations**](NumberWithValidations.md)| Input number as post body | [optional]
|
||||
**body** | [**NumberWithValidations**](NumberWithValidations.md)| Input number as post body | [optional]
|
||||
|
||||
### Return type
|
||||
|
||||
[**number_with_validations.NumberWithValidations**](NumberWithValidations.md)
|
||||
[**NumberWithValidations**](NumberWithValidations.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
@@ -273,7 +273,7 @@ No authorization required
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
# **object_model_with_ref_props**
|
||||
> object_model_with_ref_props.ObjectModelWithRefProps object_model_with_ref_props()
|
||||
> ObjectModelWithRefProps object_model_with_ref_props()
|
||||
|
||||
|
||||
|
||||
@@ -285,7 +285,7 @@ Test serialization of object with $refed properties
|
||||
import time
|
||||
import petstore_api
|
||||
from petstore_api.api import fake_api
|
||||
from petstore_api.model import object_model_with_ref_props
|
||||
from petstore_api.model.object_model_with_ref_props import ObjectModelWithRefProps
|
||||
from pprint import pprint
|
||||
# Defining the host is optional and defaults to http://petstore.swagger.io:80/v2
|
||||
# See configuration.py for a list of all supported configuration parameters.
|
||||
@@ -298,7 +298,7 @@ configuration = petstore_api.Configuration(
|
||||
with petstore_api.ApiClient() as api_client:
|
||||
# Create an instance of the API class
|
||||
api_instance = fake_api.FakeApi(api_client)
|
||||
body = object_model_with_ref_props.ObjectModelWithRefProps() # object_model_with_ref_props.ObjectModelWithRefProps | Input model (optional)
|
||||
body = ObjectModelWithRefProps() # ObjectModelWithRefProps | Input model (optional)
|
||||
|
||||
# example passing only required values which don't have defaults set
|
||||
# and optional values
|
||||
@@ -313,11 +313,11 @@ with petstore_api.ApiClient() as api_client:
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**body** | [**object_model_with_ref_props.ObjectModelWithRefProps**](ObjectModelWithRefProps.md)| Input model | [optional]
|
||||
**body** | [**ObjectModelWithRefProps**](ObjectModelWithRefProps.md)| Input model | [optional]
|
||||
|
||||
### Return type
|
||||
|
||||
[**object_model_with_ref_props.ObjectModelWithRefProps**](ObjectModelWithRefProps.md)
|
||||
[**ObjectModelWithRefProps**](ObjectModelWithRefProps.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
@@ -398,7 +398,7 @@ No authorization required
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
# **string_enum**
|
||||
> string_enum.StringEnum string_enum()
|
||||
> StringEnum string_enum()
|
||||
|
||||
|
||||
|
||||
@@ -410,7 +410,7 @@ Test serialization of outer enum
|
||||
import time
|
||||
import petstore_api
|
||||
from petstore_api.api import fake_api
|
||||
from petstore_api.model import string_enum
|
||||
from petstore_api.model.string_enum import StringEnum
|
||||
from pprint import pprint
|
||||
# Defining the host is optional and defaults to http://petstore.swagger.io:80/v2
|
||||
# See configuration.py for a list of all supported configuration parameters.
|
||||
@@ -423,7 +423,7 @@ configuration = petstore_api.Configuration(
|
||||
with petstore_api.ApiClient() as api_client:
|
||||
# Create an instance of the API class
|
||||
api_instance = fake_api.FakeApi(api_client)
|
||||
body = string_enum.StringEnum("placed") # string_enum.StringEnum | Input enum (optional)
|
||||
body = StringEnum("placed") # StringEnum | Input enum (optional)
|
||||
|
||||
# example passing only required values which don't have defaults set
|
||||
# and optional values
|
||||
@@ -438,11 +438,11 @@ with petstore_api.ApiClient() as api_client:
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**body** | [**string_enum.StringEnum**](StringEnum.md)| Input enum | [optional]
|
||||
**body** | [**StringEnum**](StringEnum.md)| Input enum | [optional]
|
||||
|
||||
### Return type
|
||||
|
||||
[**string_enum.StringEnum**](StringEnum.md)
|
||||
[**StringEnum**](StringEnum.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
@@ -473,7 +473,7 @@ For this test, the body for this request much reference a schema named `File`.
|
||||
import time
|
||||
import petstore_api
|
||||
from petstore_api.api import fake_api
|
||||
from petstore_api.model import file_schema_test_class
|
||||
from petstore_api.model.file_schema_test_class import FileSchemaTestClass
|
||||
from pprint import pprint
|
||||
# Defining the host is optional and defaults to http://petstore.swagger.io:80/v2
|
||||
# See configuration.py for a list of all supported configuration parameters.
|
||||
@@ -486,7 +486,7 @@ configuration = petstore_api.Configuration(
|
||||
with petstore_api.ApiClient() as api_client:
|
||||
# Create an instance of the API class
|
||||
api_instance = fake_api.FakeApi(api_client)
|
||||
body = file_schema_test_class.FileSchemaTestClass() # file_schema_test_class.FileSchemaTestClass |
|
||||
body = FileSchemaTestClass() # FileSchemaTestClass |
|
||||
|
||||
# example passing only required values which don't have defaults set
|
||||
try:
|
||||
@@ -499,7 +499,7 @@ with petstore_api.ApiClient() as api_client:
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**body** | [**file_schema_test_class.FileSchemaTestClass**](FileSchemaTestClass.md)| |
|
||||
**body** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| |
|
||||
|
||||
### Return type
|
||||
|
||||
@@ -532,7 +532,7 @@ No authorization required
|
||||
import time
|
||||
import petstore_api
|
||||
from petstore_api.api import fake_api
|
||||
from petstore_api.model import user
|
||||
from petstore_api.model.user import User
|
||||
from pprint import pprint
|
||||
# Defining the host is optional and defaults to http://petstore.swagger.io:80/v2
|
||||
# See configuration.py for a list of all supported configuration parameters.
|
||||
@@ -546,7 +546,7 @@ with petstore_api.ApiClient() as api_client:
|
||||
# Create an instance of the API class
|
||||
api_instance = fake_api.FakeApi(api_client)
|
||||
query = 'query_example' # str |
|
||||
body = user.User() # user.User |
|
||||
body = User() # User |
|
||||
|
||||
# example passing only required values which don't have defaults set
|
||||
try:
|
||||
@@ -560,7 +560,7 @@ with petstore_api.ApiClient() as api_client:
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**query** | **str**| |
|
||||
**body** | [**user.User**](User.md)| |
|
||||
**body** | [**User**](User.md)| |
|
||||
|
||||
### Return type
|
||||
|
||||
@@ -583,7 +583,7 @@ No authorization required
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
# **test_client_model**
|
||||
> client.Client test_client_model(body)
|
||||
> Client test_client_model(body)
|
||||
|
||||
To test \"client\" model
|
||||
|
||||
@@ -595,7 +595,7 @@ To test \"client\" model
|
||||
import time
|
||||
import petstore_api
|
||||
from petstore_api.api import fake_api
|
||||
from petstore_api.model import client
|
||||
from petstore_api.model.client import Client
|
||||
from pprint import pprint
|
||||
# Defining the host is optional and defaults to http://petstore.swagger.io:80/v2
|
||||
# See configuration.py for a list of all supported configuration parameters.
|
||||
@@ -608,7 +608,7 @@ configuration = petstore_api.Configuration(
|
||||
with petstore_api.ApiClient() as api_client:
|
||||
# Create an instance of the API class
|
||||
api_instance = fake_api.FakeApi(api_client)
|
||||
body = client.Client() # client.Client | client model
|
||||
body = Client() # Client | client model
|
||||
|
||||
# example passing only required values which don't have defaults set
|
||||
try:
|
||||
@@ -623,11 +623,11 @@ with petstore_api.ApiClient() as api_client:
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**body** | [**client.Client**](Client.md)| client model |
|
||||
**body** | [**Client**](Client.md)| client model |
|
||||
|
||||
### Return type
|
||||
|
||||
[**client.Client**](Client.md)
|
||||
[**Client**](Client.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ Method | HTTP request | Description
|
||||
|
||||
|
||||
# **test_classname**
|
||||
> client.Client test_classname(body)
|
||||
> Client test_classname(body)
|
||||
|
||||
To test class name in snake case
|
||||
|
||||
@@ -21,7 +21,7 @@ To test class name in snake case
|
||||
import time
|
||||
import petstore_api
|
||||
from petstore_api.api import fake_classname_tags_123_api
|
||||
from petstore_api.model import client
|
||||
from petstore_api.model.client import Client
|
||||
from pprint import pprint
|
||||
# Defining the host is optional and defaults to http://petstore.swagger.io:80/v2
|
||||
# See configuration.py for a list of all supported configuration parameters.
|
||||
@@ -48,7 +48,7 @@ configuration = petstore_api.Configuration(
|
||||
with petstore_api.ApiClient(configuration) as api_client:
|
||||
# Create an instance of the API class
|
||||
api_instance = fake_classname_tags_123_api.FakeClassnameTags123Api(api_client)
|
||||
body = client.Client() # client.Client | client model
|
||||
body = Client() # Client | client model
|
||||
|
||||
# example passing only required values which don't have defaults set
|
||||
try:
|
||||
@@ -63,11 +63,11 @@ with petstore_api.ApiClient(configuration) as api_client:
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**body** | [**client.Client**](Client.md)| client model |
|
||||
**body** | [**Client**](Client.md)| client model |
|
||||
|
||||
### Return type
|
||||
|
||||
[**client.Client**](Client.md)
|
||||
[**Client**](Client.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# file.File
|
||||
# File
|
||||
|
||||
Must be named `File` for test.
|
||||
## Properties
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
# file_schema_test_class.FileSchemaTestClass
|
||||
# FileSchemaTestClass
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**file** | [**file.File**](File.md) | | [optional]
|
||||
**files** | [**[file.File]**](File.md) | | [optional]
|
||||
**file** | [**File**](File.md) | | [optional]
|
||||
**files** | [**[File]**](File.md) | | [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)
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# format_test.FormatTest
|
||||
# FormatTest
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# grandparent.Grandparent
|
||||
# Grandparent
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# grandparent_animal.GrandparentAnimal
|
||||
# GrandparentAnimal
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# has_only_read_only.HasOnlyReadOnly
|
||||
# HasOnlyReadOnly
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# list.List
|
||||
# List
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# map_test.MapTest
|
||||
# MapTest
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
|
||||
**map_map_of_string** | **{str: ({str: (str,)},)}** | | [optional]
|
||||
**map_of_enum_string** | **{str: (str,)}** | | [optional]
|
||||
**direct_map** | **{str: (bool,)}** | | [optional]
|
||||
**indirect_map** | [**string_boolean_map.StringBooleanMap**](StringBooleanMap.md) | | [optional]
|
||||
**indirect_map** | [**StringBooleanMap**](StringBooleanMap.md) | | [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)
|
||||
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
# mixed_properties_and_additional_properties_class.MixedPropertiesAndAdditionalPropertiesClass
|
||||
# MixedPropertiesAndAdditionalPropertiesClass
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**uuid** | **str** | | [optional]
|
||||
**date_time** | **datetime** | | [optional]
|
||||
**map** | [**{str: (animal.Animal,)}**](Animal.md) | | [optional]
|
||||
**map** | [**{str: (Animal,)}**](Animal.md) | | [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)
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# model200_response.Model200Response
|
||||
# Model200Response
|
||||
|
||||
Model for testing model name starting with number
|
||||
## Properties
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# model_return.ModelReturn
|
||||
# ModelReturn
|
||||
|
||||
Model for testing reserved words
|
||||
## Properties
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# name.Name
|
||||
# Name
|
||||
|
||||
Model for testing model name same as property name
|
||||
## Properties
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# number_only.NumberOnly
|
||||
# NumberOnly
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# number_with_validations.NumberWithValidations
|
||||
# NumberWithValidations
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
# object_model_with_ref_props.ObjectModelWithRefProps
|
||||
# ObjectModelWithRefProps
|
||||
|
||||
a model that includes properties which should stay primitive (String + Boolean) and one which is defined as a class, NumberWithValidations
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**my_number** | [**number_with_validations.NumberWithValidations**](NumberWithValidations.md) | | [optional]
|
||||
**my_number** | [**NumberWithValidations**](NumberWithValidations.md) | | [optional]
|
||||
**my_string** | **str** | | [optional]
|
||||
**my_boolean** | **bool** | | [optional]
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# order.Order
|
||||
# Order
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# parent.Parent
|
||||
# Parent
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# parent_all_of.ParentAllOf
|
||||
# ParentAllOf
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# parent_pet.ParentPet
|
||||
# ParentPet
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# pet.Pet
|
||||
# Pet
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
@@ -6,8 +6,8 @@ Name | Type | Description | Notes
|
||||
**name** | **str** | |
|
||||
**photo_urls** | **[str]** | |
|
||||
**id** | **int** | | [optional]
|
||||
**category** | [**category.Category**](Category.md) | | [optional]
|
||||
**tags** | [**[tag.Tag]**](Tag.md) | | [optional]
|
||||
**category** | [**Category**](Category.md) | | [optional]
|
||||
**tags** | [**[Tag]**](Tag.md) | | [optional]
|
||||
**status** | **str** | pet status in the store | [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)
|
||||
|
||||
@@ -27,7 +27,7 @@ Add a new pet to the store
|
||||
import time
|
||||
import petstore_api
|
||||
from petstore_api.api import pet_api
|
||||
from petstore_api.model import pet
|
||||
from petstore_api.model.pet import Pet
|
||||
from pprint import pprint
|
||||
# Defining the host is optional and defaults to http://petstore.swagger.io:80/v2
|
||||
# See configuration.py for a list of all supported configuration parameters.
|
||||
@@ -50,7 +50,7 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN'
|
||||
with petstore_api.ApiClient(configuration) as api_client:
|
||||
# Create an instance of the API class
|
||||
api_instance = pet_api.PetApi(api_client)
|
||||
body = pet.Pet() # pet.Pet | Pet object that needs to be added to the store
|
||||
body = Pet() # Pet | Pet object that needs to be added to the store
|
||||
|
||||
# example passing only required values which don't have defaults set
|
||||
try:
|
||||
@@ -64,7 +64,7 @@ with petstore_api.ApiClient(configuration) as api_client:
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**body** | [**pet.Pet**](Pet.md)| Pet object that needs to be added to the store |
|
||||
**body** | [**Pet**](Pet.md)| Pet object that needs to be added to the store |
|
||||
|
||||
### Return type
|
||||
|
||||
@@ -169,7 +169,7 @@ void (empty response body)
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
# **find_pets_by_status**
|
||||
> [pet.Pet] find_pets_by_status(status)
|
||||
> [Pet] find_pets_by_status(status)
|
||||
|
||||
Finds Pets by status
|
||||
|
||||
@@ -182,7 +182,7 @@ Multiple status values can be provided with comma separated strings
|
||||
import time
|
||||
import petstore_api
|
||||
from petstore_api.api import pet_api
|
||||
from petstore_api.model import pet
|
||||
from petstore_api.model.pet import Pet
|
||||
from pprint import pprint
|
||||
# Defining the host is optional and defaults to http://petstore.swagger.io:80/v2
|
||||
# See configuration.py for a list of all supported configuration parameters.
|
||||
@@ -224,7 +224,7 @@ Name | Type | Description | Notes
|
||||
|
||||
### Return type
|
||||
|
||||
[**[pet.Pet]**](Pet.md)
|
||||
[**[Pet]**](Pet.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
@@ -244,7 +244,7 @@ Name | Type | Description | Notes
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
# **find_pets_by_tags**
|
||||
> [pet.Pet] find_pets_by_tags(tags)
|
||||
> [Pet] find_pets_by_tags(tags)
|
||||
|
||||
Finds Pets by tags
|
||||
|
||||
@@ -257,7 +257,7 @@ Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3
|
||||
import time
|
||||
import petstore_api
|
||||
from petstore_api.api import pet_api
|
||||
from petstore_api.model import pet
|
||||
from petstore_api.model.pet import Pet
|
||||
from pprint import pprint
|
||||
# Defining the host is optional and defaults to http://petstore.swagger.io:80/v2
|
||||
# See configuration.py for a list of all supported configuration parameters.
|
||||
@@ -299,7 +299,7 @@ Name | Type | Description | Notes
|
||||
|
||||
### Return type
|
||||
|
||||
[**[pet.Pet]**](Pet.md)
|
||||
[**[Pet]**](Pet.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
@@ -319,7 +319,7 @@ Name | Type | Description | Notes
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
# **get_pet_by_id**
|
||||
> pet.Pet get_pet_by_id(pet_id)
|
||||
> Pet get_pet_by_id(pet_id)
|
||||
|
||||
Find pet by ID
|
||||
|
||||
@@ -332,7 +332,7 @@ Returns a single pet
|
||||
import time
|
||||
import petstore_api
|
||||
from petstore_api.api import pet_api
|
||||
from petstore_api.model import pet
|
||||
from petstore_api.model.pet import Pet
|
||||
from pprint import pprint
|
||||
# Defining the host is optional and defaults to http://petstore.swagger.io:80/v2
|
||||
# See configuration.py for a list of all supported configuration parameters.
|
||||
@@ -378,7 +378,7 @@ Name | Type | Description | Notes
|
||||
|
||||
### Return type
|
||||
|
||||
[**pet.Pet**](Pet.md)
|
||||
[**Pet**](Pet.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
@@ -410,7 +410,7 @@ Update an existing pet
|
||||
import time
|
||||
import petstore_api
|
||||
from petstore_api.api import pet_api
|
||||
from petstore_api.model import pet
|
||||
from petstore_api.model.pet import Pet
|
||||
from pprint import pprint
|
||||
# Defining the host is optional and defaults to http://petstore.swagger.io:80/v2
|
||||
# See configuration.py for a list of all supported configuration parameters.
|
||||
@@ -433,7 +433,7 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN'
|
||||
with petstore_api.ApiClient(configuration) as api_client:
|
||||
# Create an instance of the API class
|
||||
api_instance = pet_api.PetApi(api_client)
|
||||
body = pet.Pet() # pet.Pet | Pet object that needs to be added to the store
|
||||
body = Pet() # Pet | Pet object that needs to be added to the store
|
||||
|
||||
# example passing only required values which don't have defaults set
|
||||
try:
|
||||
@@ -447,7 +447,7 @@ with petstore_api.ApiClient(configuration) as api_client:
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**body** | [**pet.Pet**](Pet.md)| Pet object that needs to be added to the store |
|
||||
**body** | [**Pet**](Pet.md)| Pet object that needs to be added to the store |
|
||||
|
||||
### Return type
|
||||
|
||||
@@ -555,7 +555,7 @@ void (empty response body)
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
# **upload_file**
|
||||
> api_response.ApiResponse upload_file(pet_id)
|
||||
> ApiResponse upload_file(pet_id)
|
||||
|
||||
uploads an image
|
||||
|
||||
@@ -566,7 +566,7 @@ uploads an image
|
||||
import time
|
||||
import petstore_api
|
||||
from petstore_api.api import pet_api
|
||||
from petstore_api.model import api_response
|
||||
from petstore_api.model.api_response import ApiResponse
|
||||
from pprint import pprint
|
||||
# Defining the host is optional and defaults to http://petstore.swagger.io:80/v2
|
||||
# See configuration.py for a list of all supported configuration parameters.
|
||||
@@ -623,7 +623,7 @@ Name | Type | Description | Notes
|
||||
|
||||
### Return type
|
||||
|
||||
[**api_response.ApiResponse**](ApiResponse.md)
|
||||
[**ApiResponse**](ApiResponse.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
@@ -642,7 +642,7 @@ Name | Type | Description | Notes
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
# **upload_file_with_required_file**
|
||||
> api_response.ApiResponse upload_file_with_required_file(pet_id, required_file)
|
||||
> ApiResponse upload_file_with_required_file(pet_id, required_file)
|
||||
|
||||
uploads an image (required)
|
||||
|
||||
@@ -653,7 +653,7 @@ uploads an image (required)
|
||||
import time
|
||||
import petstore_api
|
||||
from petstore_api.api import pet_api
|
||||
from petstore_api.model import api_response
|
||||
from petstore_api.model.api_response import ApiResponse
|
||||
from pprint import pprint
|
||||
# Defining the host is optional and defaults to http://petstore.swagger.io:80/v2
|
||||
# See configuration.py for a list of all supported configuration parameters.
|
||||
@@ -708,7 +708,7 @@ Name | Type | Description | Notes
|
||||
|
||||
### Return type
|
||||
|
||||
[**api_response.ApiResponse**](ApiResponse.md)
|
||||
[**ApiResponse**](ApiResponse.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# player.Player
|
||||
# Player
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# read_only_first.ReadOnlyFirst
|
||||
# ReadOnlyFirst
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# special_model_name.SpecialModelName
|
||||
# SpecialModelName
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
|
||||
@@ -146,7 +146,7 @@ This endpoint does not need any parameter.
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
# **get_order_by_id**
|
||||
> order.Order get_order_by_id(order_id)
|
||||
> Order get_order_by_id(order_id)
|
||||
|
||||
Find purchase order by ID
|
||||
|
||||
@@ -158,7 +158,7 @@ For valid response try integer IDs with value <= 5 or > 10. Other values will ge
|
||||
import time
|
||||
import petstore_api
|
||||
from petstore_api.api import store_api
|
||||
from petstore_api.model import order
|
||||
from petstore_api.model.order import Order
|
||||
from pprint import pprint
|
||||
# Defining the host is optional and defaults to http://petstore.swagger.io:80/v2
|
||||
# See configuration.py for a list of all supported configuration parameters.
|
||||
@@ -190,7 +190,7 @@ Name | Type | Description | Notes
|
||||
|
||||
### Return type
|
||||
|
||||
[**order.Order**](Order.md)
|
||||
[**Order**](Order.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
@@ -211,7 +211,7 @@ No authorization required
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
# **place_order**
|
||||
> order.Order place_order(body)
|
||||
> Order place_order(body)
|
||||
|
||||
Place an order for a pet
|
||||
|
||||
@@ -221,7 +221,7 @@ Place an order for a pet
|
||||
import time
|
||||
import petstore_api
|
||||
from petstore_api.api import store_api
|
||||
from petstore_api.model import order
|
||||
from petstore_api.model.order import Order
|
||||
from pprint import pprint
|
||||
# Defining the host is optional and defaults to http://petstore.swagger.io:80/v2
|
||||
# See configuration.py for a list of all supported configuration parameters.
|
||||
@@ -234,7 +234,7 @@ configuration = petstore_api.Configuration(
|
||||
with petstore_api.ApiClient() as api_client:
|
||||
# Create an instance of the API class
|
||||
api_instance = store_api.StoreApi(api_client)
|
||||
body = order.Order() # order.Order | order placed for purchasing the pet
|
||||
body = Order() # Order | order placed for purchasing the pet
|
||||
|
||||
# example passing only required values which don't have defaults set
|
||||
try:
|
||||
@@ -249,11 +249,11 @@ with petstore_api.ApiClient() as api_client:
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**body** | [**order.Order**](Order.md)| order placed for purchasing the pet |
|
||||
**body** | [**Order**](Order.md)| order placed for purchasing the pet |
|
||||
|
||||
### Return type
|
||||
|
||||
[**order.Order**](Order.md)
|
||||
[**Order**](Order.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# string_boolean_map.StringBooleanMap
|
||||
# StringBooleanMap
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# string_enum.StringEnum
|
||||
# StringEnum
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# tag.Tag
|
||||
# Tag
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# type_holder_default.TypeHolderDefault
|
||||
# TypeHolderDefault
|
||||
|
||||
a model to test optional properties with server defaults
|
||||
## Properties
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# type_holder_example.TypeHolderExample
|
||||
# TypeHolderExample
|
||||
|
||||
a model to test required properties with an example and length one enum
|
||||
## Properties
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# user.User
|
||||
# User
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
|
||||
@@ -27,7 +27,7 @@ This can only be done by the logged in user.
|
||||
import time
|
||||
import petstore_api
|
||||
from petstore_api.api import user_api
|
||||
from petstore_api.model import user
|
||||
from petstore_api.model.user import User
|
||||
from pprint import pprint
|
||||
# Defining the host is optional and defaults to http://petstore.swagger.io:80/v2
|
||||
# See configuration.py for a list of all supported configuration parameters.
|
||||
@@ -40,7 +40,7 @@ configuration = petstore_api.Configuration(
|
||||
with petstore_api.ApiClient() as api_client:
|
||||
# Create an instance of the API class
|
||||
api_instance = user_api.UserApi(api_client)
|
||||
body = user.User() # user.User | Created user object
|
||||
body = User() # User | Created user object
|
||||
|
||||
# example passing only required values which don't have defaults set
|
||||
try:
|
||||
@@ -54,7 +54,7 @@ with petstore_api.ApiClient() as api_client:
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**body** | [**user.User**](User.md)| Created user object |
|
||||
**body** | [**User**](User.md)| Created user object |
|
||||
|
||||
### Return type
|
||||
|
||||
@@ -87,7 +87,7 @@ Creates list of users with given input array
|
||||
import time
|
||||
import petstore_api
|
||||
from petstore_api.api import user_api
|
||||
from petstore_api.model import user
|
||||
from petstore_api.model.user import User
|
||||
from pprint import pprint
|
||||
# Defining the host is optional and defaults to http://petstore.swagger.io:80/v2
|
||||
# See configuration.py for a list of all supported configuration parameters.
|
||||
@@ -100,7 +100,7 @@ configuration = petstore_api.Configuration(
|
||||
with petstore_api.ApiClient() as api_client:
|
||||
# Create an instance of the API class
|
||||
api_instance = user_api.UserApi(api_client)
|
||||
body = [user.User()] # [user.User] | List of user object
|
||||
body = [User()] # [User] | List of user object
|
||||
|
||||
# example passing only required values which don't have defaults set
|
||||
try:
|
||||
@@ -114,7 +114,7 @@ with petstore_api.ApiClient() as api_client:
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**body** | [**[user.User]**](User.md)| List of user object |
|
||||
**body** | [**[User]**](User.md)| List of user object |
|
||||
|
||||
### Return type
|
||||
|
||||
@@ -147,7 +147,7 @@ Creates list of users with given input array
|
||||
import time
|
||||
import petstore_api
|
||||
from petstore_api.api import user_api
|
||||
from petstore_api.model import user
|
||||
from petstore_api.model.user import User
|
||||
from pprint import pprint
|
||||
# Defining the host is optional and defaults to http://petstore.swagger.io:80/v2
|
||||
# See configuration.py for a list of all supported configuration parameters.
|
||||
@@ -160,7 +160,7 @@ configuration = petstore_api.Configuration(
|
||||
with petstore_api.ApiClient() as api_client:
|
||||
# Create an instance of the API class
|
||||
api_instance = user_api.UserApi(api_client)
|
||||
body = [user.User()] # [user.User] | List of user object
|
||||
body = [User()] # [User] | List of user object
|
||||
|
||||
# example passing only required values which don't have defaults set
|
||||
try:
|
||||
@@ -174,7 +174,7 @@ with petstore_api.ApiClient() as api_client:
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**body** | [**[user.User]**](User.md)| List of user object |
|
||||
**body** | [**[User]**](User.md)| List of user object |
|
||||
|
||||
### Return type
|
||||
|
||||
@@ -259,7 +259,7 @@ No authorization required
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
# **get_user_by_name**
|
||||
> user.User get_user_by_name(username)
|
||||
> User get_user_by_name(username)
|
||||
|
||||
Get user by user name
|
||||
|
||||
@@ -269,7 +269,7 @@ Get user by user name
|
||||
import time
|
||||
import petstore_api
|
||||
from petstore_api.api import user_api
|
||||
from petstore_api.model import user
|
||||
from petstore_api.model.user import User
|
||||
from pprint import pprint
|
||||
# Defining the host is optional and defaults to http://petstore.swagger.io:80/v2
|
||||
# See configuration.py for a list of all supported configuration parameters.
|
||||
@@ -301,7 +301,7 @@ Name | Type | Description | Notes
|
||||
|
||||
### Return type
|
||||
|
||||
[**user.User**](User.md)
|
||||
[**User**](User.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
@@ -452,7 +452,7 @@ This can only be done by the logged in user.
|
||||
import time
|
||||
import petstore_api
|
||||
from petstore_api.api import user_api
|
||||
from petstore_api.model import user
|
||||
from petstore_api.model.user import User
|
||||
from pprint import pprint
|
||||
# Defining the host is optional and defaults to http://petstore.swagger.io:80/v2
|
||||
# See configuration.py for a list of all supported configuration parameters.
|
||||
@@ -466,7 +466,7 @@ with petstore_api.ApiClient() as api_client:
|
||||
# Create an instance of the API class
|
||||
api_instance = user_api.UserApi(api_client)
|
||||
username = 'username_example' # str | name that need to be deleted
|
||||
body = user.User() # user.User | Updated user object
|
||||
body = User() # User | Updated user object
|
||||
|
||||
# example passing only required values which don't have defaults set
|
||||
try:
|
||||
@@ -481,7 +481,7 @@ with petstore_api.ApiClient() as api_client:
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**username** | **str**| name that need to be deleted |
|
||||
**body** | [**user.User**](User.md)| Updated user object |
|
||||
**body** | [**User**](User.md)| Updated user object |
|
||||
|
||||
### Return type
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# xml_item.XmlItem
|
||||
# XmlItem
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
|
||||
@@ -23,7 +23,7 @@ from petstore_api.model_utils import ( # noqa: F401
|
||||
none_type,
|
||||
validate_and_convert_types
|
||||
)
|
||||
from petstore_api.model import client
|
||||
from petstore_api.model.client import Client
|
||||
|
||||
|
||||
class AnotherFakeApi(object):
|
||||
@@ -53,7 +53,7 @@ class AnotherFakeApi(object):
|
||||
>>> result = thread.get()
|
||||
|
||||
Args:
|
||||
body (client.Client): client model
|
||||
body (Client): client model
|
||||
|
||||
Keyword Args:
|
||||
_return_http_data_only (bool): response data without head status
|
||||
@@ -77,7 +77,7 @@ class AnotherFakeApi(object):
|
||||
async_req (bool): execute request asynchronously
|
||||
|
||||
Returns:
|
||||
client.Client
|
||||
Client
|
||||
If the method is called asynchronously, returns the request
|
||||
thread.
|
||||
"""
|
||||
@@ -106,7 +106,7 @@ class AnotherFakeApi(object):
|
||||
|
||||
self.call_123_test_special_tags = Endpoint(
|
||||
settings={
|
||||
'response_type': (client.Client,),
|
||||
'response_type': (Client,),
|
||||
'auth': [],
|
||||
'endpoint_path': '/another-fake/dummy',
|
||||
'operation_id': 'call_123_test_special_tags',
|
||||
@@ -134,7 +134,7 @@ class AnotherFakeApi(object):
|
||||
},
|
||||
'openapi_types': {
|
||||
'body':
|
||||
(client.Client,),
|
||||
(Client,),
|
||||
},
|
||||
'attribute_map': {
|
||||
},
|
||||
|
||||
@@ -23,14 +23,14 @@ from petstore_api.model_utils import ( # noqa: F401
|
||||
none_type,
|
||||
validate_and_convert_types
|
||||
)
|
||||
from petstore_api.model import animal_farm
|
||||
from petstore_api.model import xml_item
|
||||
from petstore_api.model import number_with_validations
|
||||
from petstore_api.model import object_model_with_ref_props
|
||||
from petstore_api.model import string_enum
|
||||
from petstore_api.model import file_schema_test_class
|
||||
from petstore_api.model import user
|
||||
from petstore_api.model import client
|
||||
from petstore_api.model.animal_farm import AnimalFarm
|
||||
from petstore_api.model.client import Client
|
||||
from petstore_api.model.file_schema_test_class import FileSchemaTestClass
|
||||
from petstore_api.model.number_with_validations import NumberWithValidations
|
||||
from petstore_api.model.object_model_with_ref_props import ObjectModelWithRefProps
|
||||
from petstore_api.model.string_enum import StringEnum
|
||||
from petstore_api.model.user import User
|
||||
from petstore_api.model.xml_item import XmlItem
|
||||
|
||||
|
||||
class FakeApi(object):
|
||||
@@ -60,7 +60,7 @@ class FakeApi(object):
|
||||
|
||||
|
||||
Keyword Args:
|
||||
body (animal_farm.AnimalFarm): Input model. [optional]
|
||||
body (AnimalFarm): Input model. [optional]
|
||||
_return_http_data_only (bool): response data without head status
|
||||
code and headers. Default is True.
|
||||
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
||||
@@ -82,7 +82,7 @@ class FakeApi(object):
|
||||
async_req (bool): execute request asynchronously
|
||||
|
||||
Returns:
|
||||
animal_farm.AnimalFarm
|
||||
AnimalFarm
|
||||
If the method is called asynchronously, returns the request
|
||||
thread.
|
||||
"""
|
||||
@@ -109,7 +109,7 @@ class FakeApi(object):
|
||||
|
||||
self.array_model = Endpoint(
|
||||
settings={
|
||||
'response_type': (animal_farm.AnimalFarm,),
|
||||
'response_type': (AnimalFarm,),
|
||||
'auth': [],
|
||||
'endpoint_path': '/fake/refs/arraymodel',
|
||||
'operation_id': 'array_model',
|
||||
@@ -135,7 +135,7 @@ class FakeApi(object):
|
||||
},
|
||||
'openapi_types': {
|
||||
'body':
|
||||
(animal_farm.AnimalFarm,),
|
||||
(AnimalFarm,),
|
||||
},
|
||||
'attribute_map': {
|
||||
},
|
||||
@@ -280,7 +280,7 @@ class FakeApi(object):
|
||||
>>> result = thread.get()
|
||||
|
||||
Args:
|
||||
xml_item (xml_item.XmlItem): XmlItem Body
|
||||
xml_item (XmlItem): XmlItem Body
|
||||
|
||||
Keyword Args:
|
||||
_return_http_data_only (bool): response data without head status
|
||||
@@ -361,7 +361,7 @@ class FakeApi(object):
|
||||
},
|
||||
'openapi_types': {
|
||||
'xml_item':
|
||||
(xml_item.XmlItem,),
|
||||
(XmlItem,),
|
||||
},
|
||||
'attribute_map': {
|
||||
},
|
||||
@@ -401,7 +401,7 @@ class FakeApi(object):
|
||||
|
||||
|
||||
Keyword Args:
|
||||
body (number_with_validations.NumberWithValidations): Input number as post body. [optional]
|
||||
body (NumberWithValidations): Input number as post body. [optional]
|
||||
_return_http_data_only (bool): response data without head status
|
||||
code and headers. Default is True.
|
||||
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
||||
@@ -423,7 +423,7 @@ class FakeApi(object):
|
||||
async_req (bool): execute request asynchronously
|
||||
|
||||
Returns:
|
||||
number_with_validations.NumberWithValidations
|
||||
NumberWithValidations
|
||||
If the method is called asynchronously, returns the request
|
||||
thread.
|
||||
"""
|
||||
@@ -450,7 +450,7 @@ class FakeApi(object):
|
||||
|
||||
self.number_with_validations = Endpoint(
|
||||
settings={
|
||||
'response_type': (number_with_validations.NumberWithValidations,),
|
||||
'response_type': (NumberWithValidations,),
|
||||
'auth': [],
|
||||
'endpoint_path': '/fake/refs/number',
|
||||
'operation_id': 'number_with_validations',
|
||||
@@ -476,7 +476,7 @@ class FakeApi(object):
|
||||
},
|
||||
'openapi_types': {
|
||||
'body':
|
||||
(number_with_validations.NumberWithValidations,),
|
||||
(NumberWithValidations,),
|
||||
},
|
||||
'attribute_map': {
|
||||
},
|
||||
@@ -511,7 +511,7 @@ class FakeApi(object):
|
||||
|
||||
|
||||
Keyword Args:
|
||||
body (object_model_with_ref_props.ObjectModelWithRefProps): Input model. [optional]
|
||||
body (ObjectModelWithRefProps): Input model. [optional]
|
||||
_return_http_data_only (bool): response data without head status
|
||||
code and headers. Default is True.
|
||||
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
||||
@@ -533,7 +533,7 @@ class FakeApi(object):
|
||||
async_req (bool): execute request asynchronously
|
||||
|
||||
Returns:
|
||||
object_model_with_ref_props.ObjectModelWithRefProps
|
||||
ObjectModelWithRefProps
|
||||
If the method is called asynchronously, returns the request
|
||||
thread.
|
||||
"""
|
||||
@@ -560,7 +560,7 @@ class FakeApi(object):
|
||||
|
||||
self.object_model_with_ref_props = Endpoint(
|
||||
settings={
|
||||
'response_type': (object_model_with_ref_props.ObjectModelWithRefProps,),
|
||||
'response_type': (ObjectModelWithRefProps,),
|
||||
'auth': [],
|
||||
'endpoint_path': '/fake/refs/object_model_with_ref_props',
|
||||
'operation_id': 'object_model_with_ref_props',
|
||||
@@ -586,7 +586,7 @@ class FakeApi(object):
|
||||
},
|
||||
'openapi_types': {
|
||||
'body':
|
||||
(object_model_with_ref_props.ObjectModelWithRefProps,),
|
||||
(ObjectModelWithRefProps,),
|
||||
},
|
||||
'attribute_map': {
|
||||
},
|
||||
@@ -731,7 +731,7 @@ class FakeApi(object):
|
||||
|
||||
|
||||
Keyword Args:
|
||||
body (string_enum.StringEnum): Input enum. [optional]
|
||||
body (StringEnum): Input enum. [optional]
|
||||
_return_http_data_only (bool): response data without head status
|
||||
code and headers. Default is True.
|
||||
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
||||
@@ -753,7 +753,7 @@ class FakeApi(object):
|
||||
async_req (bool): execute request asynchronously
|
||||
|
||||
Returns:
|
||||
string_enum.StringEnum
|
||||
StringEnum
|
||||
If the method is called asynchronously, returns the request
|
||||
thread.
|
||||
"""
|
||||
@@ -780,7 +780,7 @@ class FakeApi(object):
|
||||
|
||||
self.string_enum = Endpoint(
|
||||
settings={
|
||||
'response_type': (string_enum.StringEnum,),
|
||||
'response_type': (StringEnum,),
|
||||
'auth': [],
|
||||
'endpoint_path': '/fake/refs/enum',
|
||||
'operation_id': 'string_enum',
|
||||
@@ -806,7 +806,7 @@ class FakeApi(object):
|
||||
},
|
||||
'openapi_types': {
|
||||
'body':
|
||||
(string_enum.StringEnum,),
|
||||
(StringEnum,),
|
||||
},
|
||||
'attribute_map': {
|
||||
},
|
||||
@@ -841,7 +841,7 @@ class FakeApi(object):
|
||||
>>> result = thread.get()
|
||||
|
||||
Args:
|
||||
body (file_schema_test_class.FileSchemaTestClass):
|
||||
body (FileSchemaTestClass):
|
||||
|
||||
Keyword Args:
|
||||
_return_http_data_only (bool): response data without head status
|
||||
@@ -922,7 +922,7 @@ class FakeApi(object):
|
||||
},
|
||||
'openapi_types': {
|
||||
'body':
|
||||
(file_schema_test_class.FileSchemaTestClass,),
|
||||
(FileSchemaTestClass,),
|
||||
},
|
||||
'attribute_map': {
|
||||
},
|
||||
@@ -958,7 +958,7 @@ class FakeApi(object):
|
||||
|
||||
Args:
|
||||
query (str):
|
||||
body (user.User):
|
||||
body (User):
|
||||
|
||||
Keyword Args:
|
||||
_return_http_data_only (bool): response data without head status
|
||||
@@ -1045,7 +1045,7 @@ class FakeApi(object):
|
||||
'query':
|
||||
(str,),
|
||||
'body':
|
||||
(user.User,),
|
||||
(User,),
|
||||
},
|
||||
'attribute_map': {
|
||||
'query': 'query',
|
||||
@@ -1082,7 +1082,7 @@ class FakeApi(object):
|
||||
>>> result = thread.get()
|
||||
|
||||
Args:
|
||||
body (client.Client): client model
|
||||
body (Client): client model
|
||||
|
||||
Keyword Args:
|
||||
_return_http_data_only (bool): response data without head status
|
||||
@@ -1106,7 +1106,7 @@ class FakeApi(object):
|
||||
async_req (bool): execute request asynchronously
|
||||
|
||||
Returns:
|
||||
client.Client
|
||||
Client
|
||||
If the method is called asynchronously, returns the request
|
||||
thread.
|
||||
"""
|
||||
@@ -1135,7 +1135,7 @@ class FakeApi(object):
|
||||
|
||||
self.test_client_model = Endpoint(
|
||||
settings={
|
||||
'response_type': (client.Client,),
|
||||
'response_type': (Client,),
|
||||
'auth': [],
|
||||
'endpoint_path': '/fake',
|
||||
'operation_id': 'test_client_model',
|
||||
@@ -1163,7 +1163,7 @@ class FakeApi(object):
|
||||
},
|
||||
'openapi_types': {
|
||||
'body':
|
||||
(client.Client,),
|
||||
(Client,),
|
||||
},
|
||||
'attribute_map': {
|
||||
},
|
||||
|
||||
@@ -23,7 +23,7 @@ from petstore_api.model_utils import ( # noqa: F401
|
||||
none_type,
|
||||
validate_and_convert_types
|
||||
)
|
||||
from petstore_api.model import client
|
||||
from petstore_api.model.client import Client
|
||||
|
||||
|
||||
class FakeClassnameTags123Api(object):
|
||||
@@ -53,7 +53,7 @@ class FakeClassnameTags123Api(object):
|
||||
>>> result = thread.get()
|
||||
|
||||
Args:
|
||||
body (client.Client): client model
|
||||
body (Client): client model
|
||||
|
||||
Keyword Args:
|
||||
_return_http_data_only (bool): response data without head status
|
||||
@@ -77,7 +77,7 @@ class FakeClassnameTags123Api(object):
|
||||
async_req (bool): execute request asynchronously
|
||||
|
||||
Returns:
|
||||
client.Client
|
||||
Client
|
||||
If the method is called asynchronously, returns the request
|
||||
thread.
|
||||
"""
|
||||
@@ -106,7 +106,7 @@ class FakeClassnameTags123Api(object):
|
||||
|
||||
self.test_classname = Endpoint(
|
||||
settings={
|
||||
'response_type': (client.Client,),
|
||||
'response_type': (Client,),
|
||||
'auth': [
|
||||
'api_key_query'
|
||||
],
|
||||
@@ -136,7 +136,7 @@ class FakeClassnameTags123Api(object):
|
||||
},
|
||||
'openapi_types': {
|
||||
'body':
|
||||
(client.Client,),
|
||||
(Client,),
|
||||
},
|
||||
'attribute_map': {
|
||||
},
|
||||
|
||||
@@ -23,8 +23,8 @@ from petstore_api.model_utils import ( # noqa: F401
|
||||
none_type,
|
||||
validate_and_convert_types
|
||||
)
|
||||
from petstore_api.model import pet
|
||||
from petstore_api.model import api_response
|
||||
from petstore_api.model.api_response import ApiResponse
|
||||
from petstore_api.model.pet import Pet
|
||||
|
||||
|
||||
class PetApi(object):
|
||||
@@ -53,7 +53,7 @@ class PetApi(object):
|
||||
>>> result = thread.get()
|
||||
|
||||
Args:
|
||||
body (pet.Pet): Pet object that needs to be added to the store
|
||||
body (Pet): Pet object that needs to be added to the store
|
||||
|
||||
Keyword Args:
|
||||
_return_http_data_only (bool): response data without head status
|
||||
@@ -136,7 +136,7 @@ class PetApi(object):
|
||||
},
|
||||
'openapi_types': {
|
||||
'body':
|
||||
(pet.Pet,),
|
||||
(Pet,),
|
||||
},
|
||||
'attribute_map': {
|
||||
},
|
||||
@@ -318,7 +318,7 @@ class PetApi(object):
|
||||
async_req (bool): execute request asynchronously
|
||||
|
||||
Returns:
|
||||
[pet.Pet]
|
||||
[Pet]
|
||||
If the method is called asynchronously, returns the request
|
||||
thread.
|
||||
"""
|
||||
@@ -347,7 +347,7 @@ class PetApi(object):
|
||||
|
||||
self.find_pets_by_status = Endpoint(
|
||||
settings={
|
||||
'response_type': ([pet.Pet],),
|
||||
'response_type': ([Pet],),
|
||||
'auth': [
|
||||
'petstore_auth'
|
||||
],
|
||||
@@ -446,7 +446,7 @@ class PetApi(object):
|
||||
async_req (bool): execute request asynchronously
|
||||
|
||||
Returns:
|
||||
[pet.Pet]
|
||||
[Pet]
|
||||
If the method is called asynchronously, returns the request
|
||||
thread.
|
||||
"""
|
||||
@@ -475,7 +475,7 @@ class PetApi(object):
|
||||
|
||||
self.find_pets_by_tags = Endpoint(
|
||||
settings={
|
||||
'response_type': ([pet.Pet],),
|
||||
'response_type': ([Pet],),
|
||||
'auth': [
|
||||
'petstore_auth'
|
||||
],
|
||||
@@ -567,7 +567,7 @@ class PetApi(object):
|
||||
async_req (bool): execute request asynchronously
|
||||
|
||||
Returns:
|
||||
pet.Pet
|
||||
Pet
|
||||
If the method is called asynchronously, returns the request
|
||||
thread.
|
||||
"""
|
||||
@@ -596,7 +596,7 @@ class PetApi(object):
|
||||
|
||||
self.get_pet_by_id = Endpoint(
|
||||
settings={
|
||||
'response_type': (pet.Pet,),
|
||||
'response_type': (Pet,),
|
||||
'auth': [
|
||||
'api_key'
|
||||
],
|
||||
@@ -662,7 +662,7 @@ class PetApi(object):
|
||||
>>> result = thread.get()
|
||||
|
||||
Args:
|
||||
body (pet.Pet): Pet object that needs to be added to the store
|
||||
body (Pet): Pet object that needs to be added to the store
|
||||
|
||||
Keyword Args:
|
||||
_return_http_data_only (bool): response data without head status
|
||||
@@ -745,7 +745,7 @@ class PetApi(object):
|
||||
},
|
||||
'openapi_types': {
|
||||
'body':
|
||||
(pet.Pet,),
|
||||
(Pet,),
|
||||
},
|
||||
'attribute_map': {
|
||||
},
|
||||
@@ -937,7 +937,7 @@ class PetApi(object):
|
||||
async_req (bool): execute request asynchronously
|
||||
|
||||
Returns:
|
||||
api_response.ApiResponse
|
||||
ApiResponse
|
||||
If the method is called asynchronously, returns the request
|
||||
thread.
|
||||
"""
|
||||
@@ -966,7 +966,7 @@ class PetApi(object):
|
||||
|
||||
self.upload_file = Endpoint(
|
||||
settings={
|
||||
'response_type': (api_response.ApiResponse,),
|
||||
'response_type': (ApiResponse,),
|
||||
'auth': [
|
||||
'petstore_auth'
|
||||
],
|
||||
@@ -1076,7 +1076,7 @@ class PetApi(object):
|
||||
async_req (bool): execute request asynchronously
|
||||
|
||||
Returns:
|
||||
api_response.ApiResponse
|
||||
ApiResponse
|
||||
If the method is called asynchronously, returns the request
|
||||
thread.
|
||||
"""
|
||||
@@ -1107,7 +1107,7 @@ class PetApi(object):
|
||||
|
||||
self.upload_file_with_required_file = Endpoint(
|
||||
settings={
|
||||
'response_type': (api_response.ApiResponse,),
|
||||
'response_type': (ApiResponse,),
|
||||
'auth': [
|
||||
'petstore_auth'
|
||||
],
|
||||
|
||||
@@ -23,7 +23,7 @@ from petstore_api.model_utils import ( # noqa: F401
|
||||
none_type,
|
||||
validate_and_convert_types
|
||||
)
|
||||
from petstore_api.model import order
|
||||
from petstore_api.model.order import Order
|
||||
|
||||
|
||||
class StoreApi(object):
|
||||
@@ -299,7 +299,7 @@ class StoreApi(object):
|
||||
async_req (bool): execute request asynchronously
|
||||
|
||||
Returns:
|
||||
order.Order
|
||||
Order
|
||||
If the method is called asynchronously, returns the request
|
||||
thread.
|
||||
"""
|
||||
@@ -328,7 +328,7 @@ class StoreApi(object):
|
||||
|
||||
self.get_order_by_id = Endpoint(
|
||||
settings={
|
||||
'response_type': (order.Order,),
|
||||
'response_type': (Order,),
|
||||
'auth': [],
|
||||
'endpoint_path': '/store/order/{order_id}',
|
||||
'operation_id': 'get_order_by_id',
|
||||
@@ -398,7 +398,7 @@ class StoreApi(object):
|
||||
>>> result = thread.get()
|
||||
|
||||
Args:
|
||||
body (order.Order): order placed for purchasing the pet
|
||||
body (Order): order placed for purchasing the pet
|
||||
|
||||
Keyword Args:
|
||||
_return_http_data_only (bool): response data without head status
|
||||
@@ -422,7 +422,7 @@ class StoreApi(object):
|
||||
async_req (bool): execute request asynchronously
|
||||
|
||||
Returns:
|
||||
order.Order
|
||||
Order
|
||||
If the method is called asynchronously, returns the request
|
||||
thread.
|
||||
"""
|
||||
@@ -451,7 +451,7 @@ class StoreApi(object):
|
||||
|
||||
self.place_order = Endpoint(
|
||||
settings={
|
||||
'response_type': (order.Order,),
|
||||
'response_type': (Order,),
|
||||
'auth': [],
|
||||
'endpoint_path': '/store/order',
|
||||
'operation_id': 'place_order',
|
||||
@@ -479,7 +479,7 @@ class StoreApi(object):
|
||||
},
|
||||
'openapi_types': {
|
||||
'body':
|
||||
(order.Order,),
|
||||
(Order,),
|
||||
},
|
||||
'attribute_map': {
|
||||
},
|
||||
|
||||
@@ -23,7 +23,7 @@ from petstore_api.model_utils import ( # noqa: F401
|
||||
none_type,
|
||||
validate_and_convert_types
|
||||
)
|
||||
from petstore_api.model import user
|
||||
from petstore_api.model.user import User
|
||||
|
||||
|
||||
class UserApi(object):
|
||||
@@ -53,7 +53,7 @@ class UserApi(object):
|
||||
>>> result = thread.get()
|
||||
|
||||
Args:
|
||||
body (user.User): Created user object
|
||||
body (User): Created user object
|
||||
|
||||
Keyword Args:
|
||||
_return_http_data_only (bool): response data without head status
|
||||
@@ -134,7 +134,7 @@ class UserApi(object):
|
||||
},
|
||||
'openapi_types': {
|
||||
'body':
|
||||
(user.User,),
|
||||
(User,),
|
||||
},
|
||||
'attribute_map': {
|
||||
},
|
||||
@@ -166,7 +166,7 @@ class UserApi(object):
|
||||
>>> result = thread.get()
|
||||
|
||||
Args:
|
||||
body ([user.User]): List of user object
|
||||
body ([User]): List of user object
|
||||
|
||||
Keyword Args:
|
||||
_return_http_data_only (bool): response data without head status
|
||||
@@ -247,7 +247,7 @@ class UserApi(object):
|
||||
},
|
||||
'openapi_types': {
|
||||
'body':
|
||||
([user.User],),
|
||||
([User],),
|
||||
},
|
||||
'attribute_map': {
|
||||
},
|
||||
@@ -279,7 +279,7 @@ class UserApi(object):
|
||||
>>> result = thread.get()
|
||||
|
||||
Args:
|
||||
body ([user.User]): List of user object
|
||||
body ([User]): List of user object
|
||||
|
||||
Keyword Args:
|
||||
_return_http_data_only (bool): response data without head status
|
||||
@@ -360,7 +360,7 @@ class UserApi(object):
|
||||
},
|
||||
'openapi_types': {
|
||||
'body':
|
||||
([user.User],),
|
||||
([User],),
|
||||
},
|
||||
'attribute_map': {
|
||||
},
|
||||
@@ -531,7 +531,7 @@ class UserApi(object):
|
||||
async_req (bool): execute request asynchronously
|
||||
|
||||
Returns:
|
||||
user.User
|
||||
User
|
||||
If the method is called asynchronously, returns the request
|
||||
thread.
|
||||
"""
|
||||
@@ -560,7 +560,7 @@ class UserApi(object):
|
||||
|
||||
self.get_user_by_name = Endpoint(
|
||||
settings={
|
||||
'response_type': (user.User,),
|
||||
'response_type': (User,),
|
||||
'auth': [],
|
||||
'endpoint_path': '/user/{username}',
|
||||
'operation_id': 'get_user_by_name',
|
||||
@@ -856,7 +856,7 @@ class UserApi(object):
|
||||
|
||||
Args:
|
||||
username (str): name that need to be deleted
|
||||
body (user.User): Updated user object
|
||||
body (User): Updated user object
|
||||
|
||||
Keyword Args:
|
||||
_return_http_data_only (bool): response data without head status
|
||||
@@ -943,7 +943,7 @@ class UserApi(object):
|
||||
'username':
|
||||
(str,),
|
||||
'body':
|
||||
(user.User,),
|
||||
(User,),
|
||||
},
|
||||
'attribute_map': {
|
||||
'username': 'username',
|
||||
|
||||
@@ -61,15 +61,21 @@ class AdditionalPropertiesAnyType(ModelNormal):
|
||||
validations = {
|
||||
}
|
||||
|
||||
additional_properties_type = (bool, date, datetime, dict, float, int, list, str,) # noqa: E501
|
||||
@cached_property
|
||||
def additional_properties_type():
|
||||
"""
|
||||
This must be a method because a model may have properties that are
|
||||
of type self, this must run after the class is loaded
|
||||
"""
|
||||
return (bool, date, datetime, dict, float, int, list, str,) # noqa: E501
|
||||
|
||||
_nullable = False
|
||||
|
||||
@cached_property
|
||||
def openapi_types():
|
||||
"""
|
||||
This must be a class method so a model may have properties that are
|
||||
of type self, this ensures that we don't create a cyclic import
|
||||
This must be a method because a model may have properties that are
|
||||
of type self, this must run after the class is loaded
|
||||
|
||||
Returns
|
||||
openapi_types (dict): The key is attribute name
|
||||
@@ -83,6 +89,7 @@ class AdditionalPropertiesAnyType(ModelNormal):
|
||||
def discriminator():
|
||||
return None
|
||||
|
||||
|
||||
attribute_map = {
|
||||
'name': 'name', # noqa: E501
|
||||
}
|
||||
@@ -100,7 +107,7 @@ class AdditionalPropertiesAnyType(ModelNormal):
|
||||
|
||||
@convert_js_args_to_python_args
|
||||
def __init__(self, *args, **kwargs): # noqa: E501
|
||||
"""additional_properties_any_type.AdditionalPropertiesAnyType - a model defined in OpenAPI
|
||||
"""AdditionalPropertiesAnyType - a model defined in OpenAPI
|
||||
|
||||
Keyword Args:
|
||||
_check_type (bool): if True, values for parameters in openapi_types
|
||||
|
||||
@@ -61,15 +61,21 @@ class AdditionalPropertiesArray(ModelNormal):
|
||||
validations = {
|
||||
}
|
||||
|
||||
additional_properties_type = ([bool, date, datetime, dict, float, int, list, str],) # noqa: E501
|
||||
@cached_property
|
||||
def additional_properties_type():
|
||||
"""
|
||||
This must be a method because a model may have properties that are
|
||||
of type self, this must run after the class is loaded
|
||||
"""
|
||||
return ([bool, date, datetime, dict, float, int, list, str],) # noqa: E501
|
||||
|
||||
_nullable = False
|
||||
|
||||
@cached_property
|
||||
def openapi_types():
|
||||
"""
|
||||
This must be a class method so a model may have properties that are
|
||||
of type self, this ensures that we don't create a cyclic import
|
||||
This must be a method because a model may have properties that are
|
||||
of type self, this must run after the class is loaded
|
||||
|
||||
Returns
|
||||
openapi_types (dict): The key is attribute name
|
||||
@@ -83,6 +89,7 @@ class AdditionalPropertiesArray(ModelNormal):
|
||||
def discriminator():
|
||||
return None
|
||||
|
||||
|
||||
attribute_map = {
|
||||
'name': 'name', # noqa: E501
|
||||
}
|
||||
@@ -100,7 +107,7 @@ class AdditionalPropertiesArray(ModelNormal):
|
||||
|
||||
@convert_js_args_to_python_args
|
||||
def __init__(self, *args, **kwargs): # noqa: E501
|
||||
"""additional_properties_array.AdditionalPropertiesArray - a model defined in OpenAPI
|
||||
"""AdditionalPropertiesArray - a model defined in OpenAPI
|
||||
|
||||
Keyword Args:
|
||||
_check_type (bool): if True, values for parameters in openapi_types
|
||||
|
||||
@@ -61,15 +61,21 @@ class AdditionalPropertiesBoolean(ModelNormal):
|
||||
validations = {
|
||||
}
|
||||
|
||||
additional_properties_type = (bool,) # noqa: E501
|
||||
@cached_property
|
||||
def additional_properties_type():
|
||||
"""
|
||||
This must be a method because a model may have properties that are
|
||||
of type self, this must run after the class is loaded
|
||||
"""
|
||||
return (bool,) # noqa: E501
|
||||
|
||||
_nullable = False
|
||||
|
||||
@cached_property
|
||||
def openapi_types():
|
||||
"""
|
||||
This must be a class method so a model may have properties that are
|
||||
of type self, this ensures that we don't create a cyclic import
|
||||
This must be a method because a model may have properties that are
|
||||
of type self, this must run after the class is loaded
|
||||
|
||||
Returns
|
||||
openapi_types (dict): The key is attribute name
|
||||
@@ -83,6 +89,7 @@ class AdditionalPropertiesBoolean(ModelNormal):
|
||||
def discriminator():
|
||||
return None
|
||||
|
||||
|
||||
attribute_map = {
|
||||
'name': 'name', # noqa: E501
|
||||
}
|
||||
@@ -100,7 +107,7 @@ class AdditionalPropertiesBoolean(ModelNormal):
|
||||
|
||||
@convert_js_args_to_python_args
|
||||
def __init__(self, *args, **kwargs): # noqa: E501
|
||||
"""additional_properties_boolean.AdditionalPropertiesBoolean - a model defined in OpenAPI
|
||||
"""AdditionalPropertiesBoolean - a model defined in OpenAPI
|
||||
|
||||
Keyword Args:
|
||||
_check_type (bool): if True, values for parameters in openapi_types
|
||||
|
||||
@@ -68,8 +68,8 @@ class AdditionalPropertiesClass(ModelNormal):
|
||||
@cached_property
|
||||
def openapi_types():
|
||||
"""
|
||||
This must be a class method so a model may have properties that are
|
||||
of type self, this ensures that we don't create a cyclic import
|
||||
This must be a method because a model may have properties that are
|
||||
of type self, this must run after the class is loaded
|
||||
|
||||
Returns
|
||||
openapi_types (dict): The key is attribute name
|
||||
@@ -93,6 +93,7 @@ class AdditionalPropertiesClass(ModelNormal):
|
||||
def discriminator():
|
||||
return None
|
||||
|
||||
|
||||
attribute_map = {
|
||||
'map_string': 'map_string', # noqa: E501
|
||||
'map_number': 'map_number', # noqa: E501
|
||||
@@ -120,7 +121,7 @@ class AdditionalPropertiesClass(ModelNormal):
|
||||
|
||||
@convert_js_args_to_python_args
|
||||
def __init__(self, *args, **kwargs): # noqa: E501
|
||||
"""additional_properties_class.AdditionalPropertiesClass - a model defined in OpenAPI
|
||||
"""AdditionalPropertiesClass - a model defined in OpenAPI
|
||||
|
||||
Keyword Args:
|
||||
_check_type (bool): if True, values for parameters in openapi_types
|
||||
|
||||
@@ -61,15 +61,21 @@ class AdditionalPropertiesInteger(ModelNormal):
|
||||
validations = {
|
||||
}
|
||||
|
||||
additional_properties_type = (int,) # noqa: E501
|
||||
@cached_property
|
||||
def additional_properties_type():
|
||||
"""
|
||||
This must be a method because a model may have properties that are
|
||||
of type self, this must run after the class is loaded
|
||||
"""
|
||||
return (int,) # noqa: E501
|
||||
|
||||
_nullable = False
|
||||
|
||||
@cached_property
|
||||
def openapi_types():
|
||||
"""
|
||||
This must be a class method so a model may have properties that are
|
||||
of type self, this ensures that we don't create a cyclic import
|
||||
This must be a method because a model may have properties that are
|
||||
of type self, this must run after the class is loaded
|
||||
|
||||
Returns
|
||||
openapi_types (dict): The key is attribute name
|
||||
@@ -83,6 +89,7 @@ class AdditionalPropertiesInteger(ModelNormal):
|
||||
def discriminator():
|
||||
return None
|
||||
|
||||
|
||||
attribute_map = {
|
||||
'name': 'name', # noqa: E501
|
||||
}
|
||||
@@ -100,7 +107,7 @@ class AdditionalPropertiesInteger(ModelNormal):
|
||||
|
||||
@convert_js_args_to_python_args
|
||||
def __init__(self, *args, **kwargs): # noqa: E501
|
||||
"""additional_properties_integer.AdditionalPropertiesInteger - a model defined in OpenAPI
|
||||
"""AdditionalPropertiesInteger - a model defined in OpenAPI
|
||||
|
||||
Keyword Args:
|
||||
_check_type (bool): if True, values for parameters in openapi_types
|
||||
|
||||
@@ -61,15 +61,21 @@ class AdditionalPropertiesNumber(ModelNormal):
|
||||
validations = {
|
||||
}
|
||||
|
||||
additional_properties_type = (float,) # noqa: E501
|
||||
@cached_property
|
||||
def additional_properties_type():
|
||||
"""
|
||||
This must be a method because a model may have properties that are
|
||||
of type self, this must run after the class is loaded
|
||||
"""
|
||||
return (float,) # noqa: E501
|
||||
|
||||
_nullable = False
|
||||
|
||||
@cached_property
|
||||
def openapi_types():
|
||||
"""
|
||||
This must be a class method so a model may have properties that are
|
||||
of type self, this ensures that we don't create a cyclic import
|
||||
This must be a method because a model may have properties that are
|
||||
of type self, this must run after the class is loaded
|
||||
|
||||
Returns
|
||||
openapi_types (dict): The key is attribute name
|
||||
@@ -83,6 +89,7 @@ class AdditionalPropertiesNumber(ModelNormal):
|
||||
def discriminator():
|
||||
return None
|
||||
|
||||
|
||||
attribute_map = {
|
||||
'name': 'name', # noqa: E501
|
||||
}
|
||||
@@ -100,7 +107,7 @@ class AdditionalPropertiesNumber(ModelNormal):
|
||||
|
||||
@convert_js_args_to_python_args
|
||||
def __init__(self, *args, **kwargs): # noqa: E501
|
||||
"""additional_properties_number.AdditionalPropertiesNumber - a model defined in OpenAPI
|
||||
"""AdditionalPropertiesNumber - a model defined in OpenAPI
|
||||
|
||||
Keyword Args:
|
||||
_check_type (bool): if True, values for parameters in openapi_types
|
||||
|
||||
@@ -61,15 +61,21 @@ class AdditionalPropertiesObject(ModelNormal):
|
||||
validations = {
|
||||
}
|
||||
|
||||
additional_properties_type = ({str: (bool, date, datetime, dict, float, int, list, str,)},) # noqa: E501
|
||||
@cached_property
|
||||
def additional_properties_type():
|
||||
"""
|
||||
This must be a method because a model may have properties that are
|
||||
of type self, this must run after the class is loaded
|
||||
"""
|
||||
return ({str: (bool, date, datetime, dict, float, int, list, str,)},) # noqa: E501
|
||||
|
||||
_nullable = False
|
||||
|
||||
@cached_property
|
||||
def openapi_types():
|
||||
"""
|
||||
This must be a class method so a model may have properties that are
|
||||
of type self, this ensures that we don't create a cyclic import
|
||||
This must be a method because a model may have properties that are
|
||||
of type self, this must run after the class is loaded
|
||||
|
||||
Returns
|
||||
openapi_types (dict): The key is attribute name
|
||||
@@ -83,6 +89,7 @@ class AdditionalPropertiesObject(ModelNormal):
|
||||
def discriminator():
|
||||
return None
|
||||
|
||||
|
||||
attribute_map = {
|
||||
'name': 'name', # noqa: E501
|
||||
}
|
||||
@@ -100,7 +107,7 @@ class AdditionalPropertiesObject(ModelNormal):
|
||||
|
||||
@convert_js_args_to_python_args
|
||||
def __init__(self, *args, **kwargs): # noqa: E501
|
||||
"""additional_properties_object.AdditionalPropertiesObject - a model defined in OpenAPI
|
||||
"""AdditionalPropertiesObject - a model defined in OpenAPI
|
||||
|
||||
Keyword Args:
|
||||
_check_type (bool): if True, values for parameters in openapi_types
|
||||
|
||||
@@ -61,15 +61,21 @@ class AdditionalPropertiesString(ModelNormal):
|
||||
validations = {
|
||||
}
|
||||
|
||||
additional_properties_type = (str,) # noqa: E501
|
||||
@cached_property
|
||||
def additional_properties_type():
|
||||
"""
|
||||
This must be a method because a model may have properties that are
|
||||
of type self, this must run after the class is loaded
|
||||
"""
|
||||
return (str,) # noqa: E501
|
||||
|
||||
_nullable = False
|
||||
|
||||
@cached_property
|
||||
def openapi_types():
|
||||
"""
|
||||
This must be a class method so a model may have properties that are
|
||||
of type self, this ensures that we don't create a cyclic import
|
||||
This must be a method because a model may have properties that are
|
||||
of type self, this must run after the class is loaded
|
||||
|
||||
Returns
|
||||
openapi_types (dict): The key is attribute name
|
||||
@@ -83,6 +89,7 @@ class AdditionalPropertiesString(ModelNormal):
|
||||
def discriminator():
|
||||
return None
|
||||
|
||||
|
||||
attribute_map = {
|
||||
'name': 'name', # noqa: E501
|
||||
}
|
||||
@@ -100,7 +107,7 @@ class AdditionalPropertiesString(ModelNormal):
|
||||
|
||||
@convert_js_args_to_python_args
|
||||
def __init__(self, *args, **kwargs): # noqa: E501
|
||||
"""additional_properties_string.AdditionalPropertiesString - a model defined in OpenAPI
|
||||
"""AdditionalPropertiesString - a model defined in OpenAPI
|
||||
|
||||
Keyword Args:
|
||||
_check_type (bool): if True, values for parameters in openapi_types
|
||||
|
||||
@@ -29,16 +29,12 @@ from petstore_api.model_utils import ( # noqa: F401
|
||||
none_type,
|
||||
validate_get_composed_info,
|
||||
)
|
||||
try:
|
||||
from petstore_api.model import cat
|
||||
except ImportError:
|
||||
cat = sys.modules[
|
||||
'petstore_api.model.cat']
|
||||
try:
|
||||
from petstore_api.model import dog
|
||||
except ImportError:
|
||||
dog = sys.modules[
|
||||
'petstore_api.model.dog']
|
||||
|
||||
def lazy_import():
|
||||
from petstore_api.model.cat import Cat
|
||||
from petstore_api.model.dog import Dog
|
||||
globals()['Cat'] = Cat
|
||||
globals()['Dog'] = Dog
|
||||
|
||||
|
||||
class Animal(ModelNormal):
|
||||
@@ -78,13 +74,14 @@ class Animal(ModelNormal):
|
||||
@cached_property
|
||||
def openapi_types():
|
||||
"""
|
||||
This must be a class method so a model may have properties that are
|
||||
of type self, this ensures that we don't create a cyclic import
|
||||
This must be a method because a model may have properties that are
|
||||
of type self, this must run after the class is loaded
|
||||
|
||||
Returns
|
||||
openapi_types (dict): The key is attribute name
|
||||
and the value is attribute type.
|
||||
"""
|
||||
lazy_import()
|
||||
return {
|
||||
'class_name': (str,), # noqa: E501
|
||||
'color': (str,), # noqa: E501
|
||||
@@ -92,9 +89,10 @@ class Animal(ModelNormal):
|
||||
|
||||
@cached_property
|
||||
def discriminator():
|
||||
lazy_import()
|
||||
val = {
|
||||
'Cat': cat.Cat,
|
||||
'Dog': dog.Dog,
|
||||
'Cat': Cat,
|
||||
'Dog': Dog,
|
||||
}
|
||||
if not val:
|
||||
return None
|
||||
@@ -118,7 +116,7 @@ class Animal(ModelNormal):
|
||||
|
||||
@convert_js_args_to_python_args
|
||||
def __init__(self, class_name, *args, **kwargs): # noqa: E501
|
||||
"""animal.Animal - a model defined in OpenAPI
|
||||
"""Animal - a model defined in OpenAPI
|
||||
|
||||
Args:
|
||||
class_name (str):
|
||||
|
||||
@@ -29,11 +29,10 @@ from petstore_api.model_utils import ( # noqa: F401
|
||||
none_type,
|
||||
validate_get_composed_info,
|
||||
)
|
||||
try:
|
||||
from petstore_api.model import animal
|
||||
except ImportError:
|
||||
animal = sys.modules[
|
||||
'petstore_api.model.animal']
|
||||
|
||||
def lazy_import():
|
||||
from petstore_api.model.animal import Animal
|
||||
globals()['Animal'] = Animal
|
||||
|
||||
|
||||
class AnimalFarm(ModelSimple):
|
||||
@@ -69,21 +68,23 @@ class AnimalFarm(ModelSimple):
|
||||
@cached_property
|
||||
def openapi_types():
|
||||
"""
|
||||
This must be a class method so a model may have properties that are
|
||||
of type self, this ensures that we don't create a cyclic import
|
||||
This must be a method because a model may have properties that are
|
||||
of type self, this must run after the class is loaded
|
||||
|
||||
Returns
|
||||
openapi_types (dict): The key is attribute name
|
||||
and the value is attribute type.
|
||||
"""
|
||||
lazy_import()
|
||||
return {
|
||||
'value': ([animal.Animal],),
|
||||
'value': ([Animal],),
|
||||
}
|
||||
|
||||
@cached_property
|
||||
def discriminator():
|
||||
return None
|
||||
|
||||
|
||||
attribute_map = {}
|
||||
|
||||
_composed_schemas = None
|
||||
@@ -99,10 +100,10 @@ class AnimalFarm(ModelSimple):
|
||||
|
||||
@convert_js_args_to_python_args
|
||||
def __init__(self, value, *args, **kwargs):
|
||||
"""animal_farm.AnimalFarm - a model defined in OpenAPI
|
||||
"""AnimalFarm - a model defined in OpenAPI
|
||||
|
||||
Args:
|
||||
value ([animal.Animal]): # noqa: E501
|
||||
value ([Animal]): # noqa: E501
|
||||
|
||||
Keyword Args:
|
||||
_check_type (bool): if True, values for parameters in openapi_types
|
||||
|
||||
@@ -68,8 +68,8 @@ class ApiResponse(ModelNormal):
|
||||
@cached_property
|
||||
def openapi_types():
|
||||
"""
|
||||
This must be a class method so a model may have properties that are
|
||||
of type self, this ensures that we don't create a cyclic import
|
||||
This must be a method because a model may have properties that are
|
||||
of type self, this must run after the class is loaded
|
||||
|
||||
Returns
|
||||
openapi_types (dict): The key is attribute name
|
||||
@@ -85,6 +85,7 @@ class ApiResponse(ModelNormal):
|
||||
def discriminator():
|
||||
return None
|
||||
|
||||
|
||||
attribute_map = {
|
||||
'code': 'code', # noqa: E501
|
||||
'type': 'type', # noqa: E501
|
||||
@@ -104,7 +105,7 @@ class ApiResponse(ModelNormal):
|
||||
|
||||
@convert_js_args_to_python_args
|
||||
def __init__(self, *args, **kwargs): # noqa: E501
|
||||
"""api_response.ApiResponse - a model defined in OpenAPI
|
||||
"""ApiResponse - a model defined in OpenAPI
|
||||
|
||||
Keyword Args:
|
||||
_check_type (bool): if True, values for parameters in openapi_types
|
||||
|
||||
@@ -68,8 +68,8 @@ class ArrayOfArrayOfNumberOnly(ModelNormal):
|
||||
@cached_property
|
||||
def openapi_types():
|
||||
"""
|
||||
This must be a class method so a model may have properties that are
|
||||
of type self, this ensures that we don't create a cyclic import
|
||||
This must be a method because a model may have properties that are
|
||||
of type self, this must run after the class is loaded
|
||||
|
||||
Returns
|
||||
openapi_types (dict): The key is attribute name
|
||||
@@ -83,6 +83,7 @@ class ArrayOfArrayOfNumberOnly(ModelNormal):
|
||||
def discriminator():
|
||||
return None
|
||||
|
||||
|
||||
attribute_map = {
|
||||
'array_array_number': 'ArrayArrayNumber', # noqa: E501
|
||||
}
|
||||
@@ -100,7 +101,7 @@ class ArrayOfArrayOfNumberOnly(ModelNormal):
|
||||
|
||||
@convert_js_args_to_python_args
|
||||
def __init__(self, *args, **kwargs): # noqa: E501
|
||||
"""array_of_array_of_number_only.ArrayOfArrayOfNumberOnly - a model defined in OpenAPI
|
||||
"""ArrayOfArrayOfNumberOnly - a model defined in OpenAPI
|
||||
|
||||
Keyword Args:
|
||||
_check_type (bool): if True, values for parameters in openapi_types
|
||||
|
||||
@@ -68,8 +68,8 @@ class ArrayOfNumberOnly(ModelNormal):
|
||||
@cached_property
|
||||
def openapi_types():
|
||||
"""
|
||||
This must be a class method so a model may have properties that are
|
||||
of type self, this ensures that we don't create a cyclic import
|
||||
This must be a method because a model may have properties that are
|
||||
of type self, this must run after the class is loaded
|
||||
|
||||
Returns
|
||||
openapi_types (dict): The key is attribute name
|
||||
@@ -83,6 +83,7 @@ class ArrayOfNumberOnly(ModelNormal):
|
||||
def discriminator():
|
||||
return None
|
||||
|
||||
|
||||
attribute_map = {
|
||||
'array_number': 'ArrayNumber', # noqa: E501
|
||||
}
|
||||
@@ -100,7 +101,7 @@ class ArrayOfNumberOnly(ModelNormal):
|
||||
|
||||
@convert_js_args_to_python_args
|
||||
def __init__(self, *args, **kwargs): # noqa: E501
|
||||
"""array_of_number_only.ArrayOfNumberOnly - a model defined in OpenAPI
|
||||
"""ArrayOfNumberOnly - a model defined in OpenAPI
|
||||
|
||||
Keyword Args:
|
||||
_check_type (bool): if True, values for parameters in openapi_types
|
||||
|
||||
@@ -29,11 +29,10 @@ from petstore_api.model_utils import ( # noqa: F401
|
||||
none_type,
|
||||
validate_get_composed_info,
|
||||
)
|
||||
try:
|
||||
from petstore_api.model import read_only_first
|
||||
except ImportError:
|
||||
read_only_first = sys.modules[
|
||||
'petstore_api.model.read_only_first']
|
||||
|
||||
def lazy_import():
|
||||
from petstore_api.model.read_only_first import ReadOnlyFirst
|
||||
globals()['ReadOnlyFirst'] = ReadOnlyFirst
|
||||
|
||||
|
||||
class ArrayTest(ModelNormal):
|
||||
@@ -73,23 +72,25 @@ class ArrayTest(ModelNormal):
|
||||
@cached_property
|
||||
def openapi_types():
|
||||
"""
|
||||
This must be a class method so a model may have properties that are
|
||||
of type self, this ensures that we don't create a cyclic import
|
||||
This must be a method because a model may have properties that are
|
||||
of type self, this must run after the class is loaded
|
||||
|
||||
Returns
|
||||
openapi_types (dict): The key is attribute name
|
||||
and the value is attribute type.
|
||||
"""
|
||||
lazy_import()
|
||||
return {
|
||||
'array_of_string': ([str],), # noqa: E501
|
||||
'array_array_of_integer': ([[int]],), # noqa: E501
|
||||
'array_array_of_model': ([[read_only_first.ReadOnlyFirst]],), # noqa: E501
|
||||
'array_array_of_model': ([[ReadOnlyFirst]],), # noqa: E501
|
||||
}
|
||||
|
||||
@cached_property
|
||||
def discriminator():
|
||||
return None
|
||||
|
||||
|
||||
attribute_map = {
|
||||
'array_of_string': 'array_of_string', # noqa: E501
|
||||
'array_array_of_integer': 'array_array_of_integer', # noqa: E501
|
||||
@@ -109,7 +110,7 @@ class ArrayTest(ModelNormal):
|
||||
|
||||
@convert_js_args_to_python_args
|
||||
def __init__(self, *args, **kwargs): # noqa: E501
|
||||
"""array_test.ArrayTest - a model defined in OpenAPI
|
||||
"""ArrayTest - a model defined in OpenAPI
|
||||
|
||||
Keyword Args:
|
||||
_check_type (bool): if True, values for parameters in openapi_types
|
||||
@@ -144,7 +145,7 @@ class ArrayTest(ModelNormal):
|
||||
_visited_composed_classes = (Animal,)
|
||||
array_of_string ([str]): [optional] # noqa: E501
|
||||
array_array_of_integer ([[int]]): [optional] # noqa: E501
|
||||
array_array_of_model ([[read_only_first.ReadOnlyFirst]]): [optional] # noqa: E501
|
||||
array_array_of_model ([[ReadOnlyFirst]]): [optional] # noqa: E501
|
||||
"""
|
||||
|
||||
_check_type = kwargs.pop('_check_type', True)
|
||||
|
||||
@@ -68,8 +68,8 @@ class Capitalization(ModelNormal):
|
||||
@cached_property
|
||||
def openapi_types():
|
||||
"""
|
||||
This must be a class method so a model may have properties that are
|
||||
of type self, this ensures that we don't create a cyclic import
|
||||
This must be a method because a model may have properties that are
|
||||
of type self, this must run after the class is loaded
|
||||
|
||||
Returns
|
||||
openapi_types (dict): The key is attribute name
|
||||
@@ -88,6 +88,7 @@ class Capitalization(ModelNormal):
|
||||
def discriminator():
|
||||
return None
|
||||
|
||||
|
||||
attribute_map = {
|
||||
'small_camel': 'smallCamel', # noqa: E501
|
||||
'capital_camel': 'CapitalCamel', # noqa: E501
|
||||
@@ -110,7 +111,7 @@ class Capitalization(ModelNormal):
|
||||
|
||||
@convert_js_args_to_python_args
|
||||
def __init__(self, *args, **kwargs): # noqa: E501
|
||||
"""capitalization.Capitalization - a model defined in OpenAPI
|
||||
"""Capitalization - a model defined in OpenAPI
|
||||
|
||||
Keyword Args:
|
||||
_check_type (bool): if True, values for parameters in openapi_types
|
||||
|
||||
@@ -29,16 +29,12 @@ from petstore_api.model_utils import ( # noqa: F401
|
||||
none_type,
|
||||
validate_get_composed_info,
|
||||
)
|
||||
try:
|
||||
from petstore_api.model import animal
|
||||
except ImportError:
|
||||
animal = sys.modules[
|
||||
'petstore_api.model.animal']
|
||||
try:
|
||||
from petstore_api.model import cat_all_of
|
||||
except ImportError:
|
||||
cat_all_of = sys.modules[
|
||||
'petstore_api.model.cat_all_of']
|
||||
|
||||
def lazy_import():
|
||||
from petstore_api.model.animal import Animal
|
||||
from petstore_api.model.cat_all_of import CatAllOf
|
||||
globals()['Animal'] = Animal
|
||||
globals()['CatAllOf'] = CatAllOf
|
||||
|
||||
|
||||
class Cat(ModelComposed):
|
||||
@@ -78,13 +74,14 @@ class Cat(ModelComposed):
|
||||
@cached_property
|
||||
def openapi_types():
|
||||
"""
|
||||
This must be a class method so a model may have properties that are
|
||||
of type self, this ensures that we don't create a cyclic import
|
||||
This must be a method because a model may have properties that are
|
||||
of type self, this must run after the class is loaded
|
||||
|
||||
Returns
|
||||
openapi_types (dict): The key is attribute name
|
||||
and the value is attribute type.
|
||||
"""
|
||||
lazy_import()
|
||||
return {
|
||||
'class_name': (str,), # noqa: E501
|
||||
'declawed': (bool,), # noqa: E501
|
||||
@@ -119,7 +116,7 @@ class Cat(ModelComposed):
|
||||
|
||||
@convert_js_args_to_python_args
|
||||
def __init__(self, class_name, *args, **kwargs): # noqa: E501
|
||||
"""cat.Cat - a model defined in OpenAPI
|
||||
"""Cat - a model defined in OpenAPI
|
||||
|
||||
Args:
|
||||
class_name (str):
|
||||
@@ -227,12 +224,13 @@ class Cat(ModelComposed):
|
||||
# code would be run when this module is imported, and these composed
|
||||
# classes don't exist yet because their module has not finished
|
||||
# loading
|
||||
lazy_import()
|
||||
return {
|
||||
'anyOf': [
|
||||
],
|
||||
'allOf': [
|
||||
animal.Animal,
|
||||
cat_all_of.CatAllOf,
|
||||
Animal,
|
||||
CatAllOf,
|
||||
],
|
||||
'oneOf': [
|
||||
],
|
||||
|
||||
@@ -68,8 +68,8 @@ class CatAllOf(ModelNormal):
|
||||
@cached_property
|
||||
def openapi_types():
|
||||
"""
|
||||
This must be a class method so a model may have properties that are
|
||||
of type self, this ensures that we don't create a cyclic import
|
||||
This must be a method because a model may have properties that are
|
||||
of type self, this must run after the class is loaded
|
||||
|
||||
Returns
|
||||
openapi_types (dict): The key is attribute name
|
||||
@@ -83,6 +83,7 @@ class CatAllOf(ModelNormal):
|
||||
def discriminator():
|
||||
return None
|
||||
|
||||
|
||||
attribute_map = {
|
||||
'declawed': 'declawed', # noqa: E501
|
||||
}
|
||||
@@ -100,7 +101,7 @@ class CatAllOf(ModelNormal):
|
||||
|
||||
@convert_js_args_to_python_args
|
||||
def __init__(self, *args, **kwargs): # noqa: E501
|
||||
"""cat_all_of.CatAllOf - a model defined in OpenAPI
|
||||
"""CatAllOf - a model defined in OpenAPI
|
||||
|
||||
Keyword Args:
|
||||
_check_type (bool): if True, values for parameters in openapi_types
|
||||
|
||||
@@ -68,8 +68,8 @@ class Category(ModelNormal):
|
||||
@cached_property
|
||||
def openapi_types():
|
||||
"""
|
||||
This must be a class method so a model may have properties that are
|
||||
of type self, this ensures that we don't create a cyclic import
|
||||
This must be a method because a model may have properties that are
|
||||
of type self, this must run after the class is loaded
|
||||
|
||||
Returns
|
||||
openapi_types (dict): The key is attribute name
|
||||
@@ -84,6 +84,7 @@ class Category(ModelNormal):
|
||||
def discriminator():
|
||||
return None
|
||||
|
||||
|
||||
attribute_map = {
|
||||
'name': 'name', # noqa: E501
|
||||
'id': 'id', # noqa: E501
|
||||
@@ -102,7 +103,7 @@ class Category(ModelNormal):
|
||||
|
||||
@convert_js_args_to_python_args
|
||||
def __init__(self, *args, **kwargs): # noqa: E501
|
||||
"""category.Category - a model defined in OpenAPI
|
||||
"""Category - a model defined in OpenAPI
|
||||
|
||||
Args:
|
||||
|
||||
|
||||
@@ -29,16 +29,12 @@ from petstore_api.model_utils import ( # noqa: F401
|
||||
none_type,
|
||||
validate_get_composed_info,
|
||||
)
|
||||
try:
|
||||
from petstore_api.model import child_all_of
|
||||
except ImportError:
|
||||
child_all_of = sys.modules[
|
||||
'petstore_api.model.child_all_of']
|
||||
try:
|
||||
from petstore_api.model import parent
|
||||
except ImportError:
|
||||
parent = sys.modules[
|
||||
'petstore_api.model.parent']
|
||||
|
||||
def lazy_import():
|
||||
from petstore_api.model.child_all_of import ChildAllOf
|
||||
from petstore_api.model.parent import Parent
|
||||
globals()['ChildAllOf'] = ChildAllOf
|
||||
globals()['Parent'] = Parent
|
||||
|
||||
|
||||
class Child(ModelComposed):
|
||||
@@ -78,13 +74,14 @@ class Child(ModelComposed):
|
||||
@cached_property
|
||||
def openapi_types():
|
||||
"""
|
||||
This must be a class method so a model may have properties that are
|
||||
of type self, this ensures that we don't create a cyclic import
|
||||
This must be a method because a model may have properties that are
|
||||
of type self, this must run after the class is loaded
|
||||
|
||||
Returns
|
||||
openapi_types (dict): The key is attribute name
|
||||
and the value is attribute type.
|
||||
"""
|
||||
lazy_import()
|
||||
return {
|
||||
'radio_waves': (bool,), # noqa: E501
|
||||
'tele_vision': (bool,), # noqa: E501
|
||||
@@ -95,6 +92,7 @@ class Child(ModelComposed):
|
||||
def discriminator():
|
||||
return None
|
||||
|
||||
|
||||
attribute_map = {
|
||||
'radio_waves': 'radioWaves', # noqa: E501
|
||||
'tele_vision': 'teleVision', # noqa: E501
|
||||
@@ -115,7 +113,7 @@ class Child(ModelComposed):
|
||||
|
||||
@convert_js_args_to_python_args
|
||||
def __init__(self, *args, **kwargs): # noqa: E501
|
||||
"""child.Child - a model defined in OpenAPI
|
||||
"""Child - a model defined in OpenAPI
|
||||
|
||||
Keyword Args:
|
||||
_check_type (bool): if True, values for parameters in openapi_types
|
||||
@@ -220,12 +218,13 @@ class Child(ModelComposed):
|
||||
# code would be run when this module is imported, and these composed
|
||||
# classes don't exist yet because their module has not finished
|
||||
# loading
|
||||
lazy_import()
|
||||
return {
|
||||
'anyOf': [
|
||||
],
|
||||
'allOf': [
|
||||
child_all_of.ChildAllOf,
|
||||
parent.Parent,
|
||||
ChildAllOf,
|
||||
Parent,
|
||||
],
|
||||
'oneOf': [
|
||||
],
|
||||
|
||||
@@ -68,8 +68,8 @@ class ChildAllOf(ModelNormal):
|
||||
@cached_property
|
||||
def openapi_types():
|
||||
"""
|
||||
This must be a class method so a model may have properties that are
|
||||
of type self, this ensures that we don't create a cyclic import
|
||||
This must be a method because a model may have properties that are
|
||||
of type self, this must run after the class is loaded
|
||||
|
||||
Returns
|
||||
openapi_types (dict): The key is attribute name
|
||||
@@ -83,6 +83,7 @@ class ChildAllOf(ModelNormal):
|
||||
def discriminator():
|
||||
return None
|
||||
|
||||
|
||||
attribute_map = {
|
||||
'inter_net': 'interNet', # noqa: E501
|
||||
}
|
||||
@@ -100,7 +101,7 @@ class ChildAllOf(ModelNormal):
|
||||
|
||||
@convert_js_args_to_python_args
|
||||
def __init__(self, *args, **kwargs): # noqa: E501
|
||||
"""child_all_of.ChildAllOf - a model defined in OpenAPI
|
||||
"""ChildAllOf - a model defined in OpenAPI
|
||||
|
||||
Keyword Args:
|
||||
_check_type (bool): if True, values for parameters in openapi_types
|
||||
|
||||
@@ -29,16 +29,12 @@ from petstore_api.model_utils import ( # noqa: F401
|
||||
none_type,
|
||||
validate_get_composed_info,
|
||||
)
|
||||
try:
|
||||
from petstore_api.model import child_cat_all_of
|
||||
except ImportError:
|
||||
child_cat_all_of = sys.modules[
|
||||
'petstore_api.model.child_cat_all_of']
|
||||
try:
|
||||
from petstore_api.model import parent_pet
|
||||
except ImportError:
|
||||
parent_pet = sys.modules[
|
||||
'petstore_api.model.parent_pet']
|
||||
|
||||
def lazy_import():
|
||||
from petstore_api.model.child_cat_all_of import ChildCatAllOf
|
||||
from petstore_api.model.parent_pet import ParentPet
|
||||
globals()['ChildCatAllOf'] = ChildCatAllOf
|
||||
globals()['ParentPet'] = ParentPet
|
||||
|
||||
|
||||
class ChildCat(ModelComposed):
|
||||
@@ -78,13 +74,14 @@ class ChildCat(ModelComposed):
|
||||
@cached_property
|
||||
def openapi_types():
|
||||
"""
|
||||
This must be a class method so a model may have properties that are
|
||||
of type self, this ensures that we don't create a cyclic import
|
||||
This must be a method because a model may have properties that are
|
||||
of type self, this must run after the class is loaded
|
||||
|
||||
Returns
|
||||
openapi_types (dict): The key is attribute name
|
||||
and the value is attribute type.
|
||||
"""
|
||||
lazy_import()
|
||||
return {
|
||||
'pet_type': (str,), # noqa: E501
|
||||
'name': (str,), # noqa: E501
|
||||
@@ -117,7 +114,7 @@ class ChildCat(ModelComposed):
|
||||
|
||||
@convert_js_args_to_python_args
|
||||
def __init__(self, pet_type, *args, **kwargs): # noqa: E501
|
||||
"""child_cat.ChildCat - a model defined in OpenAPI
|
||||
"""ChildCat - a model defined in OpenAPI
|
||||
|
||||
Args:
|
||||
pet_type (str):
|
||||
@@ -224,12 +221,13 @@ class ChildCat(ModelComposed):
|
||||
# code would be run when this module is imported, and these composed
|
||||
# classes don't exist yet because their module has not finished
|
||||
# loading
|
||||
lazy_import()
|
||||
return {
|
||||
'anyOf': [
|
||||
],
|
||||
'allOf': [
|
||||
child_cat_all_of.ChildCatAllOf,
|
||||
parent_pet.ParentPet,
|
||||
ChildCatAllOf,
|
||||
ParentPet,
|
||||
],
|
||||
'oneOf': [
|
||||
],
|
||||
|
||||
@@ -68,8 +68,8 @@ class ChildCatAllOf(ModelNormal):
|
||||
@cached_property
|
||||
def openapi_types():
|
||||
"""
|
||||
This must be a class method so a model may have properties that are
|
||||
of type self, this ensures that we don't create a cyclic import
|
||||
This must be a method because a model may have properties that are
|
||||
of type self, this must run after the class is loaded
|
||||
|
||||
Returns
|
||||
openapi_types (dict): The key is attribute name
|
||||
@@ -83,6 +83,7 @@ class ChildCatAllOf(ModelNormal):
|
||||
def discriminator():
|
||||
return None
|
||||
|
||||
|
||||
attribute_map = {
|
||||
'name': 'name', # noqa: E501
|
||||
}
|
||||
@@ -100,7 +101,7 @@ class ChildCatAllOf(ModelNormal):
|
||||
|
||||
@convert_js_args_to_python_args
|
||||
def __init__(self, *args, **kwargs): # noqa: E501
|
||||
"""child_cat_all_of.ChildCatAllOf - a model defined in OpenAPI
|
||||
"""ChildCatAllOf - a model defined in OpenAPI
|
||||
|
||||
Keyword Args:
|
||||
_check_type (bool): if True, values for parameters in openapi_types
|
||||
|
||||
@@ -29,16 +29,12 @@ from petstore_api.model_utils import ( # noqa: F401
|
||||
none_type,
|
||||
validate_get_composed_info,
|
||||
)
|
||||
try:
|
||||
from petstore_api.model import child_dog_all_of
|
||||
except ImportError:
|
||||
child_dog_all_of = sys.modules[
|
||||
'petstore_api.model.child_dog_all_of']
|
||||
try:
|
||||
from petstore_api.model import parent_pet
|
||||
except ImportError:
|
||||
parent_pet = sys.modules[
|
||||
'petstore_api.model.parent_pet']
|
||||
|
||||
def lazy_import():
|
||||
from petstore_api.model.child_dog_all_of import ChildDogAllOf
|
||||
from petstore_api.model.parent_pet import ParentPet
|
||||
globals()['ChildDogAllOf'] = ChildDogAllOf
|
||||
globals()['ParentPet'] = ParentPet
|
||||
|
||||
|
||||
class ChildDog(ModelComposed):
|
||||
@@ -78,13 +74,14 @@ class ChildDog(ModelComposed):
|
||||
@cached_property
|
||||
def openapi_types():
|
||||
"""
|
||||
This must be a class method so a model may have properties that are
|
||||
of type self, this ensures that we don't create a cyclic import
|
||||
This must be a method because a model may have properties that are
|
||||
of type self, this must run after the class is loaded
|
||||
|
||||
Returns
|
||||
openapi_types (dict): The key is attribute name
|
||||
and the value is attribute type.
|
||||
"""
|
||||
lazy_import()
|
||||
return {
|
||||
'pet_type': (str,), # noqa: E501
|
||||
'bark': (str,), # noqa: E501
|
||||
@@ -117,7 +114,7 @@ class ChildDog(ModelComposed):
|
||||
|
||||
@convert_js_args_to_python_args
|
||||
def __init__(self, pet_type, *args, **kwargs): # noqa: E501
|
||||
"""child_dog.ChildDog - a model defined in OpenAPI
|
||||
"""ChildDog - a model defined in OpenAPI
|
||||
|
||||
Args:
|
||||
pet_type (str):
|
||||
@@ -224,12 +221,13 @@ class ChildDog(ModelComposed):
|
||||
# code would be run when this module is imported, and these composed
|
||||
# classes don't exist yet because their module has not finished
|
||||
# loading
|
||||
lazy_import()
|
||||
return {
|
||||
'anyOf': [
|
||||
],
|
||||
'allOf': [
|
||||
child_dog_all_of.ChildDogAllOf,
|
||||
parent_pet.ParentPet,
|
||||
ChildDogAllOf,
|
||||
ParentPet,
|
||||
],
|
||||
'oneOf': [
|
||||
],
|
||||
|
||||
@@ -68,8 +68,8 @@ class ChildDogAllOf(ModelNormal):
|
||||
@cached_property
|
||||
def openapi_types():
|
||||
"""
|
||||
This must be a class method so a model may have properties that are
|
||||
of type self, this ensures that we don't create a cyclic import
|
||||
This must be a method because a model may have properties that are
|
||||
of type self, this must run after the class is loaded
|
||||
|
||||
Returns
|
||||
openapi_types (dict): The key is attribute name
|
||||
@@ -83,6 +83,7 @@ class ChildDogAllOf(ModelNormal):
|
||||
def discriminator():
|
||||
return None
|
||||
|
||||
|
||||
attribute_map = {
|
||||
'bark': 'bark', # noqa: E501
|
||||
}
|
||||
@@ -100,7 +101,7 @@ class ChildDogAllOf(ModelNormal):
|
||||
|
||||
@convert_js_args_to_python_args
|
||||
def __init__(self, *args, **kwargs): # noqa: E501
|
||||
"""child_dog_all_of.ChildDogAllOf - a model defined in OpenAPI
|
||||
"""ChildDogAllOf - a model defined in OpenAPI
|
||||
|
||||
Keyword Args:
|
||||
_check_type (bool): if True, values for parameters in openapi_types
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user