mirror of
https://github.com/valitydev/openapi-generator.git
synced 2024-11-07 02:55:19 +00:00
Update python default value (#360)
* update pythong default value * fix example, update python sample * update python petstore sample (asyncio, tornado)
This commit is contained in:
parent
d08e31ae76
commit
14c241fbce
@ -146,7 +146,7 @@ public class PythonClientCodegen extends DefaultCodegen implements CodegenConfig
|
|||||||
|
|
||||||
cliOptions.clear();
|
cliOptions.clear();
|
||||||
cliOptions.add(new CliOption(CodegenConstants.PACKAGE_NAME, "python package name (convention: snake_case).")
|
cliOptions.add(new CliOption(CodegenConstants.PACKAGE_NAME, "python package name (convention: snake_case).")
|
||||||
.defaultValue("swagger_client"));
|
.defaultValue("openapi_client"));
|
||||||
cliOptions.add(new CliOption(CodegenConstants.PROJECT_NAME, "python project name in setup.py (e.g. petstore-api)."));
|
cliOptions.add(new CliOption(CodegenConstants.PROJECT_NAME, "python project name in setup.py (e.g. petstore-api)."));
|
||||||
cliOptions.add(new CliOption(CodegenConstants.PACKAGE_VERSION, "python package version.")
|
cliOptions.add(new CliOption(CodegenConstants.PACKAGE_VERSION, "python package version.")
|
||||||
.defaultValue("1.0.0"));
|
.defaultValue("1.0.0"));
|
||||||
@ -177,7 +177,7 @@ public class PythonClientCodegen extends DefaultCodegen implements CodegenConfig
|
|||||||
if (additionalProperties.containsKey(CodegenConstants.PACKAGE_NAME)) {
|
if (additionalProperties.containsKey(CodegenConstants.PACKAGE_NAME)) {
|
||||||
setPackageName((String) additionalProperties.get(CodegenConstants.PACKAGE_NAME));
|
setPackageName((String) additionalProperties.get(CodegenConstants.PACKAGE_NAME));
|
||||||
} else {
|
} else {
|
||||||
setPackageName("swagger_client");
|
setPackageName("openapi_client");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (additionalProperties.containsKey(CodegenConstants.PROJECT_NAME)) {
|
if (additionalProperties.containsKey(CodegenConstants.PROJECT_NAME)) {
|
||||||
@ -277,7 +277,7 @@ public class PythonClientCodegen extends DefaultCodegen implements CodegenConfig
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The swagger pattern spec follows the Perl convention and style of modifiers. Python
|
* The OpenAPI pattern spec follows the Perl convention and style of modifiers. Python
|
||||||
* does not support this in as natural a way so it needs to convert it. See
|
* does not support this in as natural a way so it needs to convert it. See
|
||||||
* https://docs.python.org/2/howto/regex.html#compilation-flags for details.
|
* https://docs.python.org/2/howto/regex.html#compilation-flags for details.
|
||||||
*/
|
*/
|
||||||
@ -386,15 +386,15 @@ public class PythonClientCodegen extends DefaultCodegen implements CodegenConfig
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getSchemaType(Schema p) {
|
public String getSchemaType(Schema p) {
|
||||||
String swaggerType = super.getSchemaType(p);
|
String openAPIType = super.getSchemaType(p);
|
||||||
String type = null;
|
String type = null;
|
||||||
if (typeMapping.containsKey(swaggerType)) {
|
if (typeMapping.containsKey(openAPIType)) {
|
||||||
type = typeMapping.get(swaggerType);
|
type = typeMapping.get(openAPIType);
|
||||||
if (languageSpecificPrimitives.contains(type)) {
|
if (languageSpecificPrimitives.contains(type)) {
|
||||||
return type;
|
return type;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
type = toModelName(swaggerType);
|
type = toModelName(openAPIType);
|
||||||
}
|
}
|
||||||
return type;
|
return type;
|
||||||
}
|
}
|
||||||
@ -561,7 +561,7 @@ public class PythonClientCodegen extends DefaultCodegen implements CodegenConfig
|
|||||||
/**
|
/**
|
||||||
* Return the default value of the property
|
* Return the default value of the property
|
||||||
*
|
*
|
||||||
* @param p Swagger property object
|
* @param p OpenAPI property object
|
||||||
* @return string presentation of the default value of the property
|
* @return string presentation of the default value of the property
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
@ -604,7 +604,8 @@ public class PythonClientCodegen extends DefaultCodegen implements CodegenConfig
|
|||||||
if (p.defaultValue == null) {
|
if (p.defaultValue == null) {
|
||||||
example = p.example;
|
example = p.example;
|
||||||
} else {
|
} else {
|
||||||
example = p.defaultValue;
|
p.example = p.defaultValue;
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
String type = p.baseType;
|
String type = p.baseType;
|
||||||
|
@ -17,7 +17,6 @@ class {{classname}}(object):
|
|||||||
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
|
||||||
Do not edit the class manually.
|
Do not edit the class manually.
|
||||||
Ref: https://openapi-generator.tech
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self, api_client=None):
|
def __init__(self, api_client=None):
|
||||||
|
@ -23,15 +23,14 @@ from {{packageName}} import rest
|
|||||||
|
|
||||||
|
|
||||||
class ApiClient(object):
|
class ApiClient(object):
|
||||||
"""Generic API client for Swagger client library builds.
|
"""Generic API client for OpenAPI client library builds.
|
||||||
|
|
||||||
Swagger generic API client. This client handles the client-
|
OpenAPI generic API client. This client handles the client-
|
||||||
server communication, and is invariant across implementations. Specifics of
|
server communication, and is invariant across implementations. Specifics of
|
||||||
the methods and models for each application are generated from the Swagger
|
the methods and models for each application are generated from the OpenAPI
|
||||||
templates.
|
templates.
|
||||||
|
|
||||||
NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
Ref: https://openapi-generator.tech
|
|
||||||
Do not edit the class manually.
|
Do not edit the class manually.
|
||||||
|
|
||||||
:param configuration: .Configuration object for this client
|
:param configuration: .Configuration object for this client
|
||||||
@ -183,7 +182,7 @@ class ApiClient(object):
|
|||||||
convert to string in iso8601 format.
|
convert to string in iso8601 format.
|
||||||
If obj is list, sanitize each element in the list.
|
If obj is list, sanitize each element in the list.
|
||||||
If obj is dict, return the dict.
|
If obj is dict, return the dict.
|
||||||
If obj is swagger model, return the properties dict.
|
If obj is OpenAPI model, return the properties dict.
|
||||||
|
|
||||||
:param obj: The data to serialize.
|
:param obj: The data to serialize.
|
||||||
:return: The serialized form of data.
|
:return: The serialized form of data.
|
||||||
@ -205,12 +204,12 @@ class ApiClient(object):
|
|||||||
obj_dict = obj
|
obj_dict = obj
|
||||||
else:
|
else:
|
||||||
# Convert model obj to dict except
|
# Convert model obj to dict except
|
||||||
# attributes `swagger_types`, `attribute_map`
|
# attributes `openapi_types`, `attribute_map`
|
||||||
# and attributes which value is not None.
|
# and attributes which value is not None.
|
||||||
# Convert attribute name to json key in
|
# Convert attribute name to json key in
|
||||||
# model definition for request.
|
# model definition for request.
|
||||||
obj_dict = {obj.attribute_map[attr]: getattr(obj, attr)
|
obj_dict = {obj.attribute_map[attr]: getattr(obj, attr)
|
||||||
for attr, _ in six.iteritems(obj.swagger_types)
|
for attr, _ in six.iteritems(obj.openapi_types)
|
||||||
if getattr(obj, attr) is not None}
|
if getattr(obj, attr) is not None}
|
||||||
|
|
||||||
return {key: self.sanitize_for_serialization(val)
|
return {key: self.sanitize_for_serialization(val)
|
||||||
@ -605,13 +604,13 @@ class ApiClient(object):
|
|||||||
:return: model object.
|
:return: model object.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
if not klass.swagger_types and not hasattr(klass,
|
if not klass.openapi_types and not hasattr(klass,
|
||||||
'get_real_child_model'):
|
'get_real_child_model'):
|
||||||
return data
|
return data
|
||||||
|
|
||||||
kwargs = {}
|
kwargs = {}
|
||||||
if klass.swagger_types is not None:
|
if klass.openapi_types is not None:
|
||||||
for attr, attr_type in six.iteritems(klass.swagger_types):
|
for attr, attr_type in six.iteritems(klass.openapi_types):
|
||||||
if (data is not None and
|
if (data is not None and
|
||||||
klass.attribute_map[attr] in data and
|
klass.attribute_map[attr] in data and
|
||||||
isinstance(data, (list, dict))):
|
isinstance(data, (list, dict))):
|
||||||
|
@ -30,12 +30,12 @@ class {{classname}}(object):
|
|||||||
|
|
||||||
"""
|
"""
|
||||||
Attributes:
|
Attributes:
|
||||||
swagger_types (dict): The key is attribute name
|
openapi_types (dict): The key is attribute name
|
||||||
and the value is attribute type.
|
and the value is attribute type.
|
||||||
attribute_map (dict): The key is attribute name
|
attribute_map (dict): The key is attribute name
|
||||||
and the value is json key in definition.
|
and the value is json key in definition.
|
||||||
"""
|
"""
|
||||||
swagger_types = {
|
openapi_types = {
|
||||||
{{#vars}}
|
{{#vars}}
|
||||||
'{{name}}': '{{{datatype}}}'{{#hasMore}},{{/hasMore}}
|
'{{name}}': '{{{datatype}}}'{{#hasMore}},{{/hasMore}}
|
||||||
{{/vars}}
|
{{/vars}}
|
||||||
@ -55,7 +55,7 @@ class {{classname}}(object):
|
|||||||
{{/discriminator}}
|
{{/discriminator}}
|
||||||
|
|
||||||
def __init__(self{{#vars}}, {{name}}={{#defaultValue}}{{{defaultValue}}}{{/defaultValue}}{{^defaultValue}}None{{/defaultValue}}{{/vars}}): # noqa: E501
|
def __init__(self{{#vars}}, {{name}}={{#defaultValue}}{{{defaultValue}}}{{/defaultValue}}{{^defaultValue}}None{{/defaultValue}}{{/vars}}): # noqa: E501
|
||||||
"""{{classname}} - a model defined in Swagger""" # noqa: E501
|
"""{{classname}} - a model defined in OpenAPI""" # noqa: E501
|
||||||
{{#vars}}{{#-first}}
|
{{#vars}}{{#-first}}
|
||||||
{{/-first}}
|
{{/-first}}
|
||||||
self._{{name}} = None
|
self._{{name}} = None
|
||||||
@ -177,7 +177,7 @@ class {{classname}}(object):
|
|||||||
"""Returns the model properties as a dict"""
|
"""Returns the model properties as a dict"""
|
||||||
result = {}
|
result = {}
|
||||||
|
|
||||||
for attr, _ in six.iteritems(self.swagger_types):
|
for attr, _ in six.iteritems(self.openapi_types):
|
||||||
value = getattr(self, attr)
|
value = getattr(self, attr)
|
||||||
if isinstance(value, list):
|
if isinstance(value, list):
|
||||||
result[attr] = list(map(
|
result[attr] = list(map(
|
||||||
|
@ -7,7 +7,11 @@
|
|||||||
{{{appDescription}}} # noqa: E501
|
{{{appDescription}}} # noqa: E501
|
||||||
{{/appDescription}}
|
{{/appDescription}}
|
||||||
|
|
||||||
{{#version}}OpenAPI spec version: {{{version}}}{{/version}}
|
{{#version}}
|
||||||
{{#infoEmail}}Contact: {{{infoEmail}}}{{/infoEmail}}
|
OpenAPI spec version: {{{version}}}
|
||||||
|
{{/version}}
|
||||||
|
{{#infoEmail}}
|
||||||
|
Contact: {{{infoEmail}}}
|
||||||
|
{{/infoEmail}}
|
||||||
Generated by: https://openapi-generator.tech
|
Generated by: https://openapi-generator.tech
|
||||||
"""
|
"""
|
||||||
|
@ -18,7 +18,7 @@ from six.moves.urllib.parse import urlencode
|
|||||||
try:
|
try:
|
||||||
import urllib3
|
import urllib3
|
||||||
except ImportError:
|
except ImportError:
|
||||||
raise ImportError('Swagger python client requires urllib3.')
|
raise ImportError('OpenAPI Python client requires urllib3.')
|
||||||
|
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
@ -30,7 +30,7 @@ setup(
|
|||||||
description="{{appName}}",
|
description="{{appName}}",
|
||||||
author_email="{{infoEmail}}",
|
author_email="{{infoEmail}}",
|
||||||
url="{{packageUrl}}",
|
url="{{packageUrl}}",
|
||||||
keywords=["Swagger", "{{appName}}"],
|
keywords=["OpenAPI", "OpenAPI-Generator", "{{{appName}}}"],
|
||||||
install_requires=REQUIRES,
|
install_requires=REQUIRES,
|
||||||
packages=find_packages(),
|
packages=find_packages(),
|
||||||
include_package_data=True,
|
include_package_data=True,
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
# petstore-api
|
# petstore-api
|
||||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
|
||||||
This Python package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
|
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
||||||
|
|
||||||
- API version: 1.0.0
|
- API version: 1.0.0
|
||||||
- Package version: 1.0.0
|
- Package version: 1.0.0
|
||||||
@ -50,8 +50,9 @@ import time
|
|||||||
import petstore_api
|
import petstore_api
|
||||||
from petstore_api.rest import ApiException
|
from petstore_api.rest import ApiException
|
||||||
from pprint import pprint
|
from pprint import pprint
|
||||||
|
|
||||||
# create an instance of the API class
|
# create an instance of the API class
|
||||||
api_instance = petstore_api.AnotherFakeApi()
|
api_instance = petstore_api.AnotherFakeApi(petstore_api.ApiClient(configuration))
|
||||||
client = petstore_api.Client() # Client | client model
|
client = petstore_api.Client() # Client | client model
|
||||||
|
|
||||||
try:
|
try:
|
||||||
@ -131,11 +132,8 @@ Class | Method | HTTP request | Description
|
|||||||
- [Name](docs/Name.md)
|
- [Name](docs/Name.md)
|
||||||
- [NumberOnly](docs/NumberOnly.md)
|
- [NumberOnly](docs/NumberOnly.md)
|
||||||
- [Order](docs/Order.md)
|
- [Order](docs/Order.md)
|
||||||
- [OuterBoolean](docs/OuterBoolean.md)
|
|
||||||
- [OuterComposite](docs/OuterComposite.md)
|
- [OuterComposite](docs/OuterComposite.md)
|
||||||
- [OuterEnum](docs/OuterEnum.md)
|
- [OuterEnum](docs/OuterEnum.md)
|
||||||
- [OuterNumber](docs/OuterNumber.md)
|
|
||||||
- [OuterString](docs/OuterString.md)
|
|
||||||
- [Pet](docs/Pet.md)
|
- [Pet](docs/Pet.md)
|
||||||
- [ReadOnlyFirst](docs/ReadOnlyFirst.md)
|
- [ReadOnlyFirst](docs/ReadOnlyFirst.md)
|
||||||
- [SpecialModelName](docs/SpecialModelName.md)
|
- [SpecialModelName](docs/SpecialModelName.md)
|
||||||
@ -174,5 +172,5 @@ Class | Method | HTTP request | Description
|
|||||||
|
|
||||||
## Author
|
## Author
|
||||||
|
|
||||||
apiteam@swagger.io
|
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@ Method | HTTP request | Description
|
|||||||
|
|
||||||
|
|
||||||
# **fake_outer_boolean_serialize**
|
# **fake_outer_boolean_serialize**
|
||||||
> OuterBoolean fake_outer_boolean_serialize(boolean_post_body=boolean_post_body)
|
> bool fake_outer_boolean_serialize(body=body)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -33,10 +33,10 @@ from pprint import pprint
|
|||||||
|
|
||||||
# create an instance of the API class
|
# create an instance of the API class
|
||||||
api_instance = petstore_api.FakeApi()
|
api_instance = petstore_api.FakeApi()
|
||||||
boolean_post_body = True # bool | Input boolean as post body (optional)
|
body = True # bool | Input boolean as post body (optional)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
api_response = api_instance.fake_outer_boolean_serialize(boolean_post_body=boolean_post_body)
|
api_response = api_instance.fake_outer_boolean_serialize(body=body)
|
||||||
pprint(api_response)
|
pprint(api_response)
|
||||||
except ApiException as e:
|
except ApiException as e:
|
||||||
print("Exception when calling FakeApi->fake_outer_boolean_serialize: %s\n" % e)
|
print("Exception when calling FakeApi->fake_outer_boolean_serialize: %s\n" % e)
|
||||||
@ -46,11 +46,11 @@ except ApiException as e:
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------- | ------------- | ------------- | -------------
|
------------- | ------------- | ------------- | -------------
|
||||||
**boolean_post_body** | **bool**| Input boolean as post body | [optional]
|
**body** | **bool**| Input boolean as post body | [optional]
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
[**OuterBoolean**](OuterBoolean.md)
|
**bool**
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
@ -111,7 +111,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)
|
[[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)
|
||||||
|
|
||||||
# **fake_outer_number_serialize**
|
# **fake_outer_number_serialize**
|
||||||
> OuterNumber fake_outer_number_serialize(body=body)
|
> float fake_outer_number_serialize(body=body)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -144,7 +144,7 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
[**OuterNumber**](OuterNumber.md)
|
**float**
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
@ -158,7 +158,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)
|
[[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)
|
||||||
|
|
||||||
# **fake_outer_string_serialize**
|
# **fake_outer_string_serialize**
|
||||||
> OuterString fake_outer_string_serialize(body=body)
|
> str fake_outer_string_serialize(body=body)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -191,7 +191,7 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
[**OuterString**](OuterString.md)
|
**str**
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
@ -394,13 +394,13 @@ from pprint import pprint
|
|||||||
# create an instance of the API class
|
# create an instance of the API class
|
||||||
api_instance = petstore_api.FakeApi()
|
api_instance = petstore_api.FakeApi()
|
||||||
enum_header_string_array = ['enum_header_string_array_example'] # list[str] | Header parameter enum test (string array) (optional)
|
enum_header_string_array = ['enum_header_string_array_example'] # list[str] | Header parameter enum test (string array) (optional)
|
||||||
enum_header_string = '-efg' # str | Header parameter enum test (string) (optional) (default to -efg)
|
enum_header_string = '-efg' # str | Header parameter enum test (string) (optional) (default to '-efg')
|
||||||
enum_query_string_array = ['enum_query_string_array_example'] # list[str] | Query parameter enum test (string array) (optional)
|
enum_query_string_array = ['enum_query_string_array_example'] # list[str] | Query parameter enum test (string array) (optional)
|
||||||
enum_query_string = '-efg' # str | Query parameter enum test (string) (optional) (default to -efg)
|
enum_query_string = '-efg' # str | Query parameter enum test (string) (optional) (default to '-efg')
|
||||||
enum_query_integer = 56 # int | Query parameter enum test (double) (optional)
|
enum_query_integer = 56 # int | Query parameter enum test (double) (optional)
|
||||||
enum_query_double = 3.4 # float | Query parameter enum test (double) (optional)
|
enum_query_double = 3.4 # float | Query parameter enum test (double) (optional)
|
||||||
enum_form_string_array = NULL # list[str] | Form parameter enum test (string array) (optional)
|
enum_form_string_array = '$' # list[str] | Form parameter enum test (string array) (optional) (default to '$')
|
||||||
enum_form_string = 'enum_form_string_example' # str | Form parameter enum test (string) (optional)
|
enum_form_string = '-efg' # str | Form parameter enum test (string) (optional) (default to '-efg')
|
||||||
|
|
||||||
try:
|
try:
|
||||||
# To test enum parameters
|
# To test enum parameters
|
||||||
@ -414,13 +414,13 @@ except ApiException as e:
|
|||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------- | ------------- | ------------- | -------------
|
------------- | ------------- | ------------- | -------------
|
||||||
**enum_header_string_array** | [**list[str]**](str.md)| Header parameter enum test (string array) | [optional]
|
**enum_header_string_array** | [**list[str]**](str.md)| Header parameter enum test (string array) | [optional]
|
||||||
**enum_header_string** | **str**| Header parameter enum test (string) | [optional] [default to -efg]
|
**enum_header_string** | **str**| Header parameter enum test (string) | [optional] [default to '-efg']
|
||||||
**enum_query_string_array** | [**list[str]**](str.md)| Query parameter enum test (string array) | [optional]
|
**enum_query_string_array** | [**list[str]**](str.md)| Query parameter enum test (string array) | [optional]
|
||||||
**enum_query_string** | **str**| Query parameter enum test (string) | [optional] [default to -efg]
|
**enum_query_string** | **str**| Query parameter enum test (string) | [optional] [default to '-efg']
|
||||||
**enum_query_integer** | **int**| Query parameter enum test (double) | [optional]
|
**enum_query_integer** | **int**| Query parameter enum test (double) | [optional]
|
||||||
**enum_query_double** | **float**| Query parameter enum test (double) | [optional]
|
**enum_query_double** | **float**| Query parameter enum test (double) | [optional]
|
||||||
**enum_form_string_array** | [**list[str]**](list.md)| Form parameter enum test (string array) | [optional]
|
**enum_form_string_array** | **list[str]**| Form parameter enum test (string array) | [optional] [default to '$']
|
||||||
**enum_form_string** | **str**| Form parameter enum test (string) | [optional]
|
**enum_form_string** | **str**| Form parameter enum test (string) | [optional] [default to '-efg']
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
@ -452,7 +452,7 @@ from pprint import pprint
|
|||||||
|
|
||||||
# create an instance of the API class
|
# create an instance of the API class
|
||||||
api_instance = petstore_api.FakeApi()
|
api_instance = petstore_api.FakeApi()
|
||||||
request_body = {'key': 'request_body_example'} # str | request body
|
request_body = {'key': 'request_body_example'} # dict(str, str) | request body
|
||||||
|
|
||||||
try:
|
try:
|
||||||
# test inline additionalProperties
|
# test inline additionalProperties
|
||||||
@ -465,7 +465,7 @@ except ApiException as e:
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------- | ------------- | ------------- | -------------
|
------------- | ------------- | ------------- | -------------
|
||||||
**request_body** | [**str**](str.md)| request body |
|
**request_body** | [**dict(str, str)**](str.md)| request body |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
|
@ -11,7 +11,7 @@ Name | Type | Description | Notes
|
|||||||
**double** | **float** | | [optional]
|
**double** | **float** | | [optional]
|
||||||
**string** | **str** | | [optional]
|
**string** | **str** | | [optional]
|
||||||
**byte** | **str** | |
|
**byte** | **str** | |
|
||||||
**binary** | [**file**](file.md) | | [optional]
|
**binary** | **file** | | [optional]
|
||||||
**date** | **date** | |
|
**date** | **date** | |
|
||||||
**date_time** | **datetime** | | [optional]
|
**date_time** | **datetime** | | [optional]
|
||||||
**uuid** | **str** | | [optional]
|
**uuid** | **str** | | [optional]
|
||||||
|
@ -3,9 +3,9 @@
|
|||||||
## Properties
|
## Properties
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**my_number** | [**OuterNumber**](OuterNumber.md) | | [optional]
|
**my_number** | **float** | | [optional]
|
||||||
**my_string** | [**OuterString**](OuterString.md) | | [optional]
|
**my_string** | **str** | | [optional]
|
||||||
**my_boolean** | [**OuterBoolean**](OuterBoolean.md) | | [optional]
|
**my_boolean** | **bool** | | [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)
|
[[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,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
|
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
|
||||||
#
|
#
|
||||||
# Usage example: /bin/sh ./git_push.sh wing328 swagger-petstore-perl "minor update"
|
# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update"
|
||||||
|
|
||||||
git_user_id=$1
|
git_user_id=$1
|
||||||
git_repo_id=$2
|
git_repo_id=$2
|
||||||
|
@ -3,13 +3,12 @@
|
|||||||
# flake8: noqa
|
# flake8: noqa
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Swagger Petstore
|
OpenAPI Petstore
|
||||||
|
|
||||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||||
|
|
||||||
OpenAPI spec version: 1.0.0
|
OpenAPI spec version: 1.0.0
|
||||||
Contact: apiteam@swagger.io
|
Generated by: https://openapi-generator.tech
|
||||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
@ -53,11 +52,8 @@ from petstore_api.models.model_return import ModelReturn
|
|||||||
from petstore_api.models.name import Name
|
from petstore_api.models.name import Name
|
||||||
from petstore_api.models.number_only import NumberOnly
|
from petstore_api.models.number_only import NumberOnly
|
||||||
from petstore_api.models.order import Order
|
from petstore_api.models.order import Order
|
||||||
from petstore_api.models.outer_boolean import OuterBoolean
|
|
||||||
from petstore_api.models.outer_composite import OuterComposite
|
from petstore_api.models.outer_composite import OuterComposite
|
||||||
from petstore_api.models.outer_enum import OuterEnum
|
from petstore_api.models.outer_enum import OuterEnum
|
||||||
from petstore_api.models.outer_number import OuterNumber
|
|
||||||
from petstore_api.models.outer_string import OuterString
|
|
||||||
from petstore_api.models.pet import Pet
|
from petstore_api.models.pet import Pet
|
||||||
from petstore_api.models.read_only_first import ReadOnlyFirst
|
from petstore_api.models.read_only_first import ReadOnlyFirst
|
||||||
from petstore_api.models.special_model_name import SpecialModelName
|
from petstore_api.models.special_model_name import SpecialModelName
|
||||||
|
@ -1,13 +1,12 @@
|
|||||||
# coding: utf-8
|
# coding: utf-8
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Swagger Petstore
|
OpenAPI Petstore
|
||||||
|
|
||||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||||
|
|
||||||
OpenAPI spec version: 1.0.0
|
OpenAPI spec version: 1.0.0
|
||||||
Contact: apiteam@swagger.io
|
Generated by: https://openapi-generator.tech
|
||||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
@ -22,10 +21,9 @@ from petstore_api.api_client import ApiClient
|
|||||||
|
|
||||||
|
|
||||||
class AnotherFakeApi(object):
|
class AnotherFakeApi(object):
|
||||||
"""NOTE: This class is auto generated by the swagger code generator program.
|
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
|
||||||
Do not edit the class manually.
|
Do not edit the class manually.
|
||||||
Ref: https://github.com/swagger-api/swagger-codegen
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self, api_client=None):
|
def __init__(self, api_client=None):
|
||||||
|
@ -1,13 +1,12 @@
|
|||||||
# coding: utf-8
|
# coding: utf-8
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Swagger Petstore
|
OpenAPI Petstore
|
||||||
|
|
||||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||||
|
|
||||||
OpenAPI spec version: 1.0.0
|
OpenAPI spec version: 1.0.0
|
||||||
Contact: apiteam@swagger.io
|
Generated by: https://openapi-generator.tech
|
||||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
@ -22,10 +21,9 @@ from petstore_api.api_client import ApiClient
|
|||||||
|
|
||||||
|
|
||||||
class FakeApi(object):
|
class FakeApi(object):
|
||||||
"""NOTE: This class is auto generated by the swagger code generator program.
|
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
|
||||||
Do not edit the class manually.
|
Do not edit the class manually.
|
||||||
Ref: https://github.com/swagger-api/swagger-codegen
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self, api_client=None):
|
def __init__(self, api_client=None):
|
||||||
@ -43,8 +41,8 @@ class FakeApi(object):
|
|||||||
>>> result = thread.get()
|
>>> result = thread.get()
|
||||||
|
|
||||||
:param async bool
|
:param async bool
|
||||||
:param bool boolean_post_body: Input boolean as post body
|
:param bool body: Input boolean as post body
|
||||||
:return: OuterBoolean
|
:return: bool
|
||||||
If the method is called asynchronously,
|
If the method is called asynchronously,
|
||||||
returns the request thread.
|
returns the request thread.
|
||||||
"""
|
"""
|
||||||
@ -65,13 +63,13 @@ class FakeApi(object):
|
|||||||
>>> result = thread.get()
|
>>> result = thread.get()
|
||||||
|
|
||||||
:param async bool
|
:param async bool
|
||||||
:param bool boolean_post_body: Input boolean as post body
|
:param bool body: Input boolean as post body
|
||||||
:return: OuterBoolean
|
:return: bool
|
||||||
If the method is called asynchronously,
|
If the method is called asynchronously,
|
||||||
returns the request thread.
|
returns the request thread.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
all_params = ['boolean_post_body'] # noqa: E501
|
all_params = ['body'] # noqa: E501
|
||||||
all_params.append('async')
|
all_params.append('async')
|
||||||
all_params.append('_return_http_data_only')
|
all_params.append('_return_http_data_only')
|
||||||
all_params.append('_preload_content')
|
all_params.append('_preload_content')
|
||||||
@ -99,8 +97,8 @@ class FakeApi(object):
|
|||||||
local_var_files = {}
|
local_var_files = {}
|
||||||
|
|
||||||
body_params = None
|
body_params = None
|
||||||
if 'boolean_post_body' in params:
|
if 'body' in params:
|
||||||
body_params = params['boolean_post_body']
|
body_params = params['body']
|
||||||
# HTTP header `Accept`
|
# HTTP header `Accept`
|
||||||
header_params['Accept'] = self.api_client.select_header_accept(
|
header_params['Accept'] = self.api_client.select_header_accept(
|
||||||
['*/*']) # noqa: E501
|
['*/*']) # noqa: E501
|
||||||
@ -116,7 +114,7 @@ class FakeApi(object):
|
|||||||
body=body_params,
|
body=body_params,
|
||||||
post_params=form_params,
|
post_params=form_params,
|
||||||
files=local_var_files,
|
files=local_var_files,
|
||||||
response_type='OuterBoolean', # noqa: E501
|
response_type='bool', # noqa: E501
|
||||||
auth_settings=auth_settings,
|
auth_settings=auth_settings,
|
||||||
async=params.get('async'),
|
async=params.get('async'),
|
||||||
_return_http_data_only=params.get('_return_http_data_only'),
|
_return_http_data_only=params.get('_return_http_data_only'),
|
||||||
@ -226,7 +224,7 @@ class FakeApi(object):
|
|||||||
|
|
||||||
:param async bool
|
:param async bool
|
||||||
:param float body: Input number as post body
|
:param float body: Input number as post body
|
||||||
:return: OuterNumber
|
:return: float
|
||||||
If the method is called asynchronously,
|
If the method is called asynchronously,
|
||||||
returns the request thread.
|
returns the request thread.
|
||||||
"""
|
"""
|
||||||
@ -248,7 +246,7 @@ class FakeApi(object):
|
|||||||
|
|
||||||
:param async bool
|
:param async bool
|
||||||
:param float body: Input number as post body
|
:param float body: Input number as post body
|
||||||
:return: OuterNumber
|
:return: float
|
||||||
If the method is called asynchronously,
|
If the method is called asynchronously,
|
||||||
returns the request thread.
|
returns the request thread.
|
||||||
"""
|
"""
|
||||||
@ -298,7 +296,7 @@ class FakeApi(object):
|
|||||||
body=body_params,
|
body=body_params,
|
||||||
post_params=form_params,
|
post_params=form_params,
|
||||||
files=local_var_files,
|
files=local_var_files,
|
||||||
response_type='OuterNumber', # noqa: E501
|
response_type='float', # noqa: E501
|
||||||
auth_settings=auth_settings,
|
auth_settings=auth_settings,
|
||||||
async=params.get('async'),
|
async=params.get('async'),
|
||||||
_return_http_data_only=params.get('_return_http_data_only'),
|
_return_http_data_only=params.get('_return_http_data_only'),
|
||||||
@ -317,7 +315,7 @@ class FakeApi(object):
|
|||||||
|
|
||||||
:param async bool
|
:param async bool
|
||||||
:param str body: Input string as post body
|
:param str body: Input string as post body
|
||||||
:return: OuterString
|
:return: str
|
||||||
If the method is called asynchronously,
|
If the method is called asynchronously,
|
||||||
returns the request thread.
|
returns the request thread.
|
||||||
"""
|
"""
|
||||||
@ -339,7 +337,7 @@ class FakeApi(object):
|
|||||||
|
|
||||||
:param async bool
|
:param async bool
|
||||||
:param str body: Input string as post body
|
:param str body: Input string as post body
|
||||||
:return: OuterString
|
:return: str
|
||||||
If the method is called asynchronously,
|
If the method is called asynchronously,
|
||||||
returns the request thread.
|
returns the request thread.
|
||||||
"""
|
"""
|
||||||
@ -389,7 +387,7 @@ class FakeApi(object):
|
|||||||
body=body_params,
|
body=body_params,
|
||||||
post_params=form_params,
|
post_params=form_params,
|
||||||
files=local_var_files,
|
files=local_var_files,
|
||||||
response_type='OuterString', # noqa: E501
|
response_type='str', # noqa: E501
|
||||||
auth_settings=auth_settings,
|
auth_settings=auth_settings,
|
||||||
async=params.get('async'),
|
async=params.get('async'),
|
||||||
_return_http_data_only=params.get('_return_http_data_only'),
|
_return_http_data_only=params.get('_return_http_data_only'),
|
||||||
@ -701,7 +699,7 @@ class FakeApi(object):
|
|||||||
raise ValueError("Invalid value for parameter `double` when calling `test_endpoint_parameters`, must be a value less than or equal to `123.4`") # noqa: E501
|
raise ValueError("Invalid value for parameter `double` when calling `test_endpoint_parameters`, must be a value less than or equal to `123.4`") # noqa: E501
|
||||||
if 'double' in params and params['double'] < 67.8: # noqa: E501
|
if 'double' in params and params['double'] < 67.8: # noqa: E501
|
||||||
raise ValueError("Invalid value for parameter `double` when calling `test_endpoint_parameters`, must be a value greater than or equal to `67.8`") # noqa: E501
|
raise ValueError("Invalid value for parameter `double` when calling `test_endpoint_parameters`, must be a value greater than or equal to `67.8`") # noqa: E501
|
||||||
if 'pattern_without_delimiter' in params and not re.search('', params['pattern_without_delimiter']): # noqa: E501
|
if 'pattern_without_delimiter' in params and not re.search('^[A-Z].*', params['pattern_without_delimiter']): # noqa: E501
|
||||||
raise ValueError("Invalid value for parameter `pattern_without_delimiter` when calling `test_endpoint_parameters`, must conform to the pattern `/^[A-Z].*/`") # noqa: E501
|
raise ValueError("Invalid value for parameter `pattern_without_delimiter` when calling `test_endpoint_parameters`, must conform to the pattern `/^[A-Z].*/`") # noqa: E501
|
||||||
if 'integer' in params and params['integer'] > 100: # noqa: E501
|
if 'integer' in params and params['integer'] > 100: # noqa: E501
|
||||||
raise ValueError("Invalid value for parameter `integer` when calling `test_endpoint_parameters`, must be a value less than or equal to `100`") # noqa: E501
|
raise ValueError("Invalid value for parameter `integer` when calling `test_endpoint_parameters`, must be a value less than or equal to `100`") # noqa: E501
|
||||||
@ -713,7 +711,7 @@ class FakeApi(object):
|
|||||||
raise ValueError("Invalid value for parameter `int32` when calling `test_endpoint_parameters`, must be a value greater than or equal to `20`") # noqa: E501
|
raise ValueError("Invalid value for parameter `int32` when calling `test_endpoint_parameters`, must be a value greater than or equal to `20`") # noqa: E501
|
||||||
if 'float' in params and params['float'] > 987.6: # noqa: E501
|
if 'float' in params and params['float'] > 987.6: # noqa: E501
|
||||||
raise ValueError("Invalid value for parameter `float` when calling `test_endpoint_parameters`, must be a value less than or equal to `987.6`") # noqa: E501
|
raise ValueError("Invalid value for parameter `float` when calling `test_endpoint_parameters`, must be a value less than or equal to `987.6`") # noqa: E501
|
||||||
if 'string' in params and not re.search('', params['string']): # noqa: E501
|
if 'string' in params and not re.search('[a-z]', params['string'], flags=re.IGNORECASE): # noqa: E501
|
||||||
raise ValueError("Invalid value for parameter `string` when calling `test_endpoint_parameters`, must conform to the pattern `/[a-z]/i`") # noqa: E501
|
raise ValueError("Invalid value for parameter `string` when calling `test_endpoint_parameters`, must conform to the pattern `/[a-z]/i`") # noqa: E501
|
||||||
if ('password' in params and
|
if ('password' in params and
|
||||||
len(params['password']) > 64):
|
len(params['password']) > 64):
|
||||||
@ -859,7 +857,7 @@ class FakeApi(object):
|
|||||||
query_params = []
|
query_params = []
|
||||||
if 'enum_query_string_array' in params:
|
if 'enum_query_string_array' in params:
|
||||||
query_params.append(('enum_query_string_array', params['enum_query_string_array'])) # noqa: E501
|
query_params.append(('enum_query_string_array', params['enum_query_string_array'])) # noqa: E501
|
||||||
collection_formats['enum_query_string_array'] = '' # noqa: E501
|
collection_formats['enum_query_string_array'] = 'csv' # noqa: E501
|
||||||
if 'enum_query_string' in params:
|
if 'enum_query_string' in params:
|
||||||
query_params.append(('enum_query_string', params['enum_query_string'])) # noqa: E501
|
query_params.append(('enum_query_string', params['enum_query_string'])) # noqa: E501
|
||||||
if 'enum_query_integer' in params:
|
if 'enum_query_integer' in params:
|
||||||
@ -870,7 +868,7 @@ class FakeApi(object):
|
|||||||
header_params = {}
|
header_params = {}
|
||||||
if 'enum_header_string_array' in params:
|
if 'enum_header_string_array' in params:
|
||||||
header_params['enum_header_string_array'] = params['enum_header_string_array'] # noqa: E501
|
header_params['enum_header_string_array'] = params['enum_header_string_array'] # noqa: E501
|
||||||
collection_formats['enum_header_string_array'] = '' # noqa: E501
|
collection_formats['enum_header_string_array'] = 'csv' # noqa: E501
|
||||||
if 'enum_header_string' in params:
|
if 'enum_header_string' in params:
|
||||||
header_params['enum_header_string'] = params['enum_header_string'] # noqa: E501
|
header_params['enum_header_string'] = params['enum_header_string'] # noqa: E501
|
||||||
|
|
||||||
@ -878,6 +876,7 @@ class FakeApi(object):
|
|||||||
local_var_files = {}
|
local_var_files = {}
|
||||||
if 'enum_form_string_array' in params:
|
if 'enum_form_string_array' in params:
|
||||||
form_params.append(('enum_form_string_array', params['enum_form_string_array'])) # noqa: E501
|
form_params.append(('enum_form_string_array', params['enum_form_string_array'])) # noqa: E501
|
||||||
|
collection_formats['enum_form_string_array'] = 'csv' # noqa: E501
|
||||||
if 'enum_form_string' in params:
|
if 'enum_form_string' in params:
|
||||||
form_params.append(('enum_form_string', params['enum_form_string'])) # noqa: E501
|
form_params.append(('enum_form_string', params['enum_form_string'])) # noqa: E501
|
||||||
|
|
||||||
@ -914,7 +913,7 @@ class FakeApi(object):
|
|||||||
>>> result = thread.get()
|
>>> result = thread.get()
|
||||||
|
|
||||||
:param async bool
|
:param async bool
|
||||||
:param str request_body: request body (required)
|
:param dict(str, str) request_body: request body (required)
|
||||||
:return: None
|
:return: None
|
||||||
If the method is called asynchronously,
|
If the method is called asynchronously,
|
||||||
returns the request thread.
|
returns the request thread.
|
||||||
@ -935,7 +934,7 @@ class FakeApi(object):
|
|||||||
>>> result = thread.get()
|
>>> result = thread.get()
|
||||||
|
|
||||||
:param async bool
|
:param async bool
|
||||||
:param str request_body: request body (required)
|
:param dict(str, str) request_body: request body (required)
|
||||||
:return: None
|
:return: None
|
||||||
If the method is called asynchronously,
|
If the method is called asynchronously,
|
||||||
returns the request thread.
|
returns the request thread.
|
||||||
|
@ -1,13 +1,12 @@
|
|||||||
# coding: utf-8
|
# coding: utf-8
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Swagger Petstore
|
OpenAPI Petstore
|
||||||
|
|
||||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||||
|
|
||||||
OpenAPI spec version: 1.0.0
|
OpenAPI spec version: 1.0.0
|
||||||
Contact: apiteam@swagger.io
|
Generated by: https://openapi-generator.tech
|
||||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
@ -22,10 +21,9 @@ from petstore_api.api_client import ApiClient
|
|||||||
|
|
||||||
|
|
||||||
class FakeClassnameTags123Api(object):
|
class FakeClassnameTags123Api(object):
|
||||||
"""NOTE: This class is auto generated by the swagger code generator program.
|
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
|
||||||
Do not edit the class manually.
|
Do not edit the class manually.
|
||||||
Ref: https://github.com/swagger-api/swagger-codegen
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self, api_client=None):
|
def __init__(self, api_client=None):
|
||||||
|
@ -1,13 +1,12 @@
|
|||||||
# coding: utf-8
|
# coding: utf-8
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Swagger Petstore
|
OpenAPI Petstore
|
||||||
|
|
||||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||||
|
|
||||||
OpenAPI spec version: 1.0.0
|
OpenAPI spec version: 1.0.0
|
||||||
Contact: apiteam@swagger.io
|
Generated by: https://openapi-generator.tech
|
||||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
@ -22,10 +21,9 @@ from petstore_api.api_client import ApiClient
|
|||||||
|
|
||||||
|
|
||||||
class PetApi(object):
|
class PetApi(object):
|
||||||
"""NOTE: This class is auto generated by the swagger code generator program.
|
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
|
||||||
Do not edit the class manually.
|
Do not edit the class manually.
|
||||||
Ref: https://github.com/swagger-api/swagger-codegen
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self, api_client=None):
|
def __init__(self, api_client=None):
|
||||||
@ -284,7 +282,7 @@ class PetApi(object):
|
|||||||
query_params = []
|
query_params = []
|
||||||
if 'status' in params:
|
if 'status' in params:
|
||||||
query_params.append(('status', params['status'])) # noqa: E501
|
query_params.append(('status', params['status'])) # noqa: E501
|
||||||
collection_formats['status'] = '' # noqa: E501
|
collection_formats['status'] = 'csv' # noqa: E501
|
||||||
|
|
||||||
header_params = {}
|
header_params = {}
|
||||||
|
|
||||||
@ -380,7 +378,7 @@ class PetApi(object):
|
|||||||
query_params = []
|
query_params = []
|
||||||
if 'tags' in params:
|
if 'tags' in params:
|
||||||
query_params.append(('tags', params['tags'])) # noqa: E501
|
query_params.append(('tags', params['tags'])) # noqa: E501
|
||||||
collection_formats['tags'] = '' # noqa: E501
|
collection_formats['tags'] = 'csv' # noqa: E501
|
||||||
|
|
||||||
header_params = {}
|
header_params = {}
|
||||||
|
|
||||||
|
@ -1,13 +1,12 @@
|
|||||||
# coding: utf-8
|
# coding: utf-8
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Swagger Petstore
|
OpenAPI Petstore
|
||||||
|
|
||||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||||
|
|
||||||
OpenAPI spec version: 1.0.0
|
OpenAPI spec version: 1.0.0
|
||||||
Contact: apiteam@swagger.io
|
Generated by: https://openapi-generator.tech
|
||||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
@ -22,10 +21,9 @@ from petstore_api.api_client import ApiClient
|
|||||||
|
|
||||||
|
|
||||||
class StoreApi(object):
|
class StoreApi(object):
|
||||||
"""NOTE: This class is auto generated by the swagger code generator program.
|
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
|
||||||
Do not edit the class manually.
|
Do not edit the class manually.
|
||||||
Ref: https://github.com/swagger-api/swagger-codegen
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self, api_client=None):
|
def __init__(self, api_client=None):
|
||||||
|
@ -1,13 +1,12 @@
|
|||||||
# coding: utf-8
|
# coding: utf-8
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Swagger Petstore
|
OpenAPI Petstore
|
||||||
|
|
||||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||||
|
|
||||||
OpenAPI spec version: 1.0.0
|
OpenAPI spec version: 1.0.0
|
||||||
Contact: apiteam@swagger.io
|
Generated by: https://openapi-generator.tech
|
||||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
@ -22,10 +21,9 @@ from petstore_api.api_client import ApiClient
|
|||||||
|
|
||||||
|
|
||||||
class UserApi(object):
|
class UserApi(object):
|
||||||
"""NOTE: This class is auto generated by the swagger code generator program.
|
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
|
||||||
Do not edit the class manually.
|
Do not edit the class manually.
|
||||||
Ref: https://github.com/swagger-api/swagger-codegen
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self, api_client=None):
|
def __init__(self, api_client=None):
|
||||||
|
@ -1,12 +1,11 @@
|
|||||||
# coding: utf-8
|
# coding: utf-8
|
||||||
"""
|
"""
|
||||||
Swagger Petstore
|
OpenAPI Petstore
|
||||||
|
|
||||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||||
|
|
||||||
OpenAPI spec version: 1.0.0
|
OpenAPI spec version: 1.0.0
|
||||||
Contact: apiteam@swagger.io
|
Generated by: https://openapi-generator.tech
|
||||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from __future__ import absolute_import
|
from __future__ import absolute_import
|
||||||
@ -29,15 +28,14 @@ from petstore_api import rest
|
|||||||
|
|
||||||
|
|
||||||
class ApiClient(object):
|
class ApiClient(object):
|
||||||
"""Generic API client for Swagger client library builds.
|
"""Generic API client for OpenAPI client library builds.
|
||||||
|
|
||||||
Swagger generic API client. This client handles the client-
|
OpenAPI generic API client. This client handles the client-
|
||||||
server communication, and is invariant across implementations. Specifics of
|
server communication, and is invariant across implementations. Specifics of
|
||||||
the methods and models for each application are generated from the Swagger
|
the methods and models for each application are generated from the OpenAPI
|
||||||
templates.
|
templates.
|
||||||
|
|
||||||
NOTE: This class is auto generated by the swagger code generator program.
|
NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
Ref: https://github.com/swagger-api/swagger-codegen
|
|
||||||
Do not edit the class manually.
|
Do not edit the class manually.
|
||||||
|
|
||||||
:param configuration: .Configuration object for this client
|
:param configuration: .Configuration object for this client
|
||||||
@ -73,7 +71,7 @@ class ApiClient(object):
|
|||||||
self.default_headers[header_name] = header_value
|
self.default_headers[header_name] = header_value
|
||||||
self.cookie = cookie
|
self.cookie = cookie
|
||||||
# Set default User-Agent.
|
# Set default User-Agent.
|
||||||
self.user_agent = 'Swagger-Codegen/1.0.0/python'
|
self.user_agent = 'OpenAPI-Generator/1.0.0/python'
|
||||||
|
|
||||||
def __del__(self):
|
def __del__(self):
|
||||||
self.pool.close()
|
self.pool.close()
|
||||||
@ -177,7 +175,7 @@ class ApiClient(object):
|
|||||||
convert to string in iso8601 format.
|
convert to string in iso8601 format.
|
||||||
If obj is list, sanitize each element in the list.
|
If obj is list, sanitize each element in the list.
|
||||||
If obj is dict, return the dict.
|
If obj is dict, return the dict.
|
||||||
If obj is swagger model, return the properties dict.
|
If obj is OpenAPI model, return the properties dict.
|
||||||
|
|
||||||
:param obj: The data to serialize.
|
:param obj: The data to serialize.
|
||||||
:return: The serialized form of data.
|
:return: The serialized form of data.
|
||||||
@ -199,12 +197,12 @@ class ApiClient(object):
|
|||||||
obj_dict = obj
|
obj_dict = obj
|
||||||
else:
|
else:
|
||||||
# Convert model obj to dict except
|
# Convert model obj to dict except
|
||||||
# attributes `swagger_types`, `attribute_map`
|
# attributes `openapi_types`, `attribute_map`
|
||||||
# and attributes which value is not None.
|
# and attributes which value is not None.
|
||||||
# Convert attribute name to json key in
|
# Convert attribute name to json key in
|
||||||
# model definition for request.
|
# model definition for request.
|
||||||
obj_dict = {obj.attribute_map[attr]: getattr(obj, attr)
|
obj_dict = {obj.attribute_map[attr]: getattr(obj, attr)
|
||||||
for attr, _ in six.iteritems(obj.swagger_types)
|
for attr, _ in six.iteritems(obj.openapi_types)
|
||||||
if getattr(obj, attr) is not None}
|
if getattr(obj, attr) is not None}
|
||||||
|
|
||||||
return {key: self.sanitize_for_serialization(val)
|
return {key: self.sanitize_for_serialization(val)
|
||||||
@ -599,13 +597,13 @@ class ApiClient(object):
|
|||||||
:return: model object.
|
:return: model object.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
if not klass.swagger_types and not hasattr(klass,
|
if not klass.openapi_types and not hasattr(klass,
|
||||||
'get_real_child_model'):
|
'get_real_child_model'):
|
||||||
return data
|
return data
|
||||||
|
|
||||||
kwargs = {}
|
kwargs = {}
|
||||||
if klass.swagger_types is not None:
|
if klass.openapi_types is not None:
|
||||||
for attr, attr_type in six.iteritems(klass.swagger_types):
|
for attr, attr_type in six.iteritems(klass.openapi_types):
|
||||||
if (data is not None and
|
if (data is not None and
|
||||||
klass.attribute_map[attr] in data and
|
klass.attribute_map[attr] in data and
|
||||||
isinstance(data, (list, dict))):
|
isinstance(data, (list, dict))):
|
||||||
|
@ -1,13 +1,12 @@
|
|||||||
# coding: utf-8
|
# coding: utf-8
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Swagger Petstore
|
OpenAPI Petstore
|
||||||
|
|
||||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||||
|
|
||||||
OpenAPI spec version: 1.0.0
|
OpenAPI spec version: 1.0.0
|
||||||
Contact: apiteam@swagger.io
|
Generated by: https://openapi-generator.tech
|
||||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
@ -38,9 +37,9 @@ class TypeWithDefault(type):
|
|||||||
|
|
||||||
|
|
||||||
class Configuration(six.with_metaclass(TypeWithDefault, object)):
|
class Configuration(six.with_metaclass(TypeWithDefault, object)):
|
||||||
"""NOTE: This class is auto generated by the swagger code generator program.
|
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
|
||||||
Ref: https://github.com/swagger-api/swagger-codegen
|
Ref: https://openapi-generator.tech
|
||||||
Do not edit the class manually.
|
Do not edit the class manually.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
@ -2,13 +2,12 @@
|
|||||||
|
|
||||||
# flake8: noqa
|
# flake8: noqa
|
||||||
"""
|
"""
|
||||||
Swagger Petstore
|
OpenAPI Petstore
|
||||||
|
|
||||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||||
|
|
||||||
OpenAPI spec version: 1.0.0
|
OpenAPI spec version: 1.0.0
|
||||||
Contact: apiteam@swagger.io
|
Generated by: https://openapi-generator.tech
|
||||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
@ -41,11 +40,8 @@ from petstore_api.models.model_return import ModelReturn
|
|||||||
from petstore_api.models.name import Name
|
from petstore_api.models.name import Name
|
||||||
from petstore_api.models.number_only import NumberOnly
|
from petstore_api.models.number_only import NumberOnly
|
||||||
from petstore_api.models.order import Order
|
from petstore_api.models.order import Order
|
||||||
from petstore_api.models.outer_boolean import OuterBoolean
|
|
||||||
from petstore_api.models.outer_composite import OuterComposite
|
from petstore_api.models.outer_composite import OuterComposite
|
||||||
from petstore_api.models.outer_enum import OuterEnum
|
from petstore_api.models.outer_enum import OuterEnum
|
||||||
from petstore_api.models.outer_number import OuterNumber
|
|
||||||
from petstore_api.models.outer_string import OuterString
|
|
||||||
from petstore_api.models.pet import Pet
|
from petstore_api.models.pet import Pet
|
||||||
from petstore_api.models.read_only_first import ReadOnlyFirst
|
from petstore_api.models.read_only_first import ReadOnlyFirst
|
||||||
from petstore_api.models.special_model_name import SpecialModelName
|
from petstore_api.models.special_model_name import SpecialModelName
|
||||||
|
@ -1,13 +1,12 @@
|
|||||||
# coding: utf-8
|
# coding: utf-8
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Swagger Petstore
|
OpenAPI Petstore
|
||||||
|
|
||||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||||
|
|
||||||
OpenAPI spec version: 1.0.0
|
OpenAPI spec version: 1.0.0
|
||||||
Contact: apiteam@swagger.io
|
Generated by: https://openapi-generator.tech
|
||||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
@ -18,19 +17,19 @@ import six
|
|||||||
|
|
||||||
|
|
||||||
class AdditionalPropertiesClass(object):
|
class AdditionalPropertiesClass(object):
|
||||||
"""NOTE: This class is auto generated by the swagger code generator program.
|
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
|
||||||
Do not edit the class manually.
|
Do not edit the class manually.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Attributes:
|
Attributes:
|
||||||
swagger_types (dict): The key is attribute name
|
openapi_types (dict): The key is attribute name
|
||||||
and the value is attribute type.
|
and the value is attribute type.
|
||||||
attribute_map (dict): The key is attribute name
|
attribute_map (dict): The key is attribute name
|
||||||
and the value is json key in definition.
|
and the value is json key in definition.
|
||||||
"""
|
"""
|
||||||
swagger_types = {
|
openapi_types = {
|
||||||
'map_property': 'dict(str, str)',
|
'map_property': 'dict(str, str)',
|
||||||
'map_of_map_property': 'dict(str, dict(str, str))'
|
'map_of_map_property': 'dict(str, dict(str, str))'
|
||||||
}
|
}
|
||||||
@ -41,7 +40,7 @@ class AdditionalPropertiesClass(object):
|
|||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, map_property=None, map_of_map_property=None): # noqa: E501
|
def __init__(self, map_property=None, map_of_map_property=None): # noqa: E501
|
||||||
"""AdditionalPropertiesClass - a model defined in Swagger""" # noqa: E501
|
"""AdditionalPropertiesClass - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
|
||||||
self._map_property = None
|
self._map_property = None
|
||||||
self._map_of_map_property = None
|
self._map_of_map_property = None
|
||||||
@ -98,7 +97,7 @@ class AdditionalPropertiesClass(object):
|
|||||||
"""Returns the model properties as a dict"""
|
"""Returns the model properties as a dict"""
|
||||||
result = {}
|
result = {}
|
||||||
|
|
||||||
for attr, _ in six.iteritems(self.swagger_types):
|
for attr, _ in six.iteritems(self.openapi_types):
|
||||||
value = getattr(self, attr)
|
value = getattr(self, attr)
|
||||||
if isinstance(value, list):
|
if isinstance(value, list):
|
||||||
result[attr] = list(map(
|
result[attr] = list(map(
|
||||||
|
@ -1,13 +1,12 @@
|
|||||||
# coding: utf-8
|
# coding: utf-8
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Swagger Petstore
|
OpenAPI Petstore
|
||||||
|
|
||||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||||
|
|
||||||
OpenAPI spec version: 1.0.0
|
OpenAPI spec version: 1.0.0
|
||||||
Contact: apiteam@swagger.io
|
Generated by: https://openapi-generator.tech
|
||||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
@ -18,19 +17,19 @@ import six
|
|||||||
|
|
||||||
|
|
||||||
class Animal(object):
|
class Animal(object):
|
||||||
"""NOTE: This class is auto generated by the swagger code generator program.
|
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
|
||||||
Do not edit the class manually.
|
Do not edit the class manually.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Attributes:
|
Attributes:
|
||||||
swagger_types (dict): The key is attribute name
|
openapi_types (dict): The key is attribute name
|
||||||
and the value is attribute type.
|
and the value is attribute type.
|
||||||
attribute_map (dict): The key is attribute name
|
attribute_map (dict): The key is attribute name
|
||||||
and the value is json key in definition.
|
and the value is json key in definition.
|
||||||
"""
|
"""
|
||||||
swagger_types = {
|
openapi_types = {
|
||||||
'class_name': 'str',
|
'class_name': 'str',
|
||||||
'color': 'str'
|
'color': 'str'
|
||||||
}
|
}
|
||||||
@ -46,7 +45,7 @@ class Animal(object):
|
|||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, class_name=None, color='red'): # noqa: E501
|
def __init__(self, class_name=None, color='red'): # noqa: E501
|
||||||
"""Animal - a model defined in Swagger""" # noqa: E501
|
"""Animal - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
|
||||||
self._class_name = None
|
self._class_name = None
|
||||||
self._color = None
|
self._color = None
|
||||||
@ -109,7 +108,7 @@ class Animal(object):
|
|||||||
"""Returns the model properties as a dict"""
|
"""Returns the model properties as a dict"""
|
||||||
result = {}
|
result = {}
|
||||||
|
|
||||||
for attr, _ in six.iteritems(self.swagger_types):
|
for attr, _ in six.iteritems(self.openapi_types):
|
||||||
value = getattr(self, attr)
|
value = getattr(self, attr)
|
||||||
if isinstance(value, list):
|
if isinstance(value, list):
|
||||||
result[attr] = list(map(
|
result[attr] = list(map(
|
||||||
|
@ -1,13 +1,12 @@
|
|||||||
# coding: utf-8
|
# coding: utf-8
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Swagger Petstore
|
OpenAPI Petstore
|
||||||
|
|
||||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||||
|
|
||||||
OpenAPI spec version: 1.0.0
|
OpenAPI spec version: 1.0.0
|
||||||
Contact: apiteam@swagger.io
|
Generated by: https://openapi-generator.tech
|
||||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
@ -20,33 +19,33 @@ from petstore_api.models.animal import Animal # noqa: F401,E501
|
|||||||
|
|
||||||
|
|
||||||
class AnimalFarm(object):
|
class AnimalFarm(object):
|
||||||
"""NOTE: This class is auto generated by the swagger code generator program.
|
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
|
||||||
Do not edit the class manually.
|
Do not edit the class manually.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Attributes:
|
Attributes:
|
||||||
swagger_types (dict): The key is attribute name
|
openapi_types (dict): The key is attribute name
|
||||||
and the value is attribute type.
|
and the value is attribute type.
|
||||||
attribute_map (dict): The key is attribute name
|
attribute_map (dict): The key is attribute name
|
||||||
and the value is json key in definition.
|
and the value is json key in definition.
|
||||||
"""
|
"""
|
||||||
swagger_types = {
|
openapi_types = {
|
||||||
}
|
}
|
||||||
|
|
||||||
attribute_map = {
|
attribute_map = {
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self): # noqa: E501
|
def __init__(self): # noqa: E501
|
||||||
"""AnimalFarm - a model defined in Swagger""" # noqa: E501
|
"""AnimalFarm - a model defined in OpenAPI""" # noqa: E501
|
||||||
self.discriminator = None
|
self.discriminator = None
|
||||||
|
|
||||||
def to_dict(self):
|
def to_dict(self):
|
||||||
"""Returns the model properties as a dict"""
|
"""Returns the model properties as a dict"""
|
||||||
result = {}
|
result = {}
|
||||||
|
|
||||||
for attr, _ in six.iteritems(self.swagger_types):
|
for attr, _ in six.iteritems(self.openapi_types):
|
||||||
value = getattr(self, attr)
|
value = getattr(self, attr)
|
||||||
if isinstance(value, list):
|
if isinstance(value, list):
|
||||||
result[attr] = list(map(
|
result[attr] = list(map(
|
||||||
|
@ -1,13 +1,12 @@
|
|||||||
# coding: utf-8
|
# coding: utf-8
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Swagger Petstore
|
OpenAPI Petstore
|
||||||
|
|
||||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||||
|
|
||||||
OpenAPI spec version: 1.0.0
|
OpenAPI spec version: 1.0.0
|
||||||
Contact: apiteam@swagger.io
|
Generated by: https://openapi-generator.tech
|
||||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
@ -18,19 +17,19 @@ import six
|
|||||||
|
|
||||||
|
|
||||||
class ApiResponse(object):
|
class ApiResponse(object):
|
||||||
"""NOTE: This class is auto generated by the swagger code generator program.
|
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
|
||||||
Do not edit the class manually.
|
Do not edit the class manually.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Attributes:
|
Attributes:
|
||||||
swagger_types (dict): The key is attribute name
|
openapi_types (dict): The key is attribute name
|
||||||
and the value is attribute type.
|
and the value is attribute type.
|
||||||
attribute_map (dict): The key is attribute name
|
attribute_map (dict): The key is attribute name
|
||||||
and the value is json key in definition.
|
and the value is json key in definition.
|
||||||
"""
|
"""
|
||||||
swagger_types = {
|
openapi_types = {
|
||||||
'code': 'int',
|
'code': 'int',
|
||||||
'type': 'str',
|
'type': 'str',
|
||||||
'message': 'str'
|
'message': 'str'
|
||||||
@ -43,7 +42,7 @@ class ApiResponse(object):
|
|||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, code=None, type=None, message=None): # noqa: E501
|
def __init__(self, code=None, type=None, message=None): # noqa: E501
|
||||||
"""ApiResponse - a model defined in Swagger""" # noqa: E501
|
"""ApiResponse - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
|
||||||
self._code = None
|
self._code = None
|
||||||
self._type = None
|
self._type = None
|
||||||
@ -124,7 +123,7 @@ class ApiResponse(object):
|
|||||||
"""Returns the model properties as a dict"""
|
"""Returns the model properties as a dict"""
|
||||||
result = {}
|
result = {}
|
||||||
|
|
||||||
for attr, _ in six.iteritems(self.swagger_types):
|
for attr, _ in six.iteritems(self.openapi_types):
|
||||||
value = getattr(self, attr)
|
value = getattr(self, attr)
|
||||||
if isinstance(value, list):
|
if isinstance(value, list):
|
||||||
result[attr] = list(map(
|
result[attr] = list(map(
|
||||||
|
@ -1,13 +1,12 @@
|
|||||||
# coding: utf-8
|
# coding: utf-8
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Swagger Petstore
|
OpenAPI Petstore
|
||||||
|
|
||||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||||
|
|
||||||
OpenAPI spec version: 1.0.0
|
OpenAPI spec version: 1.0.0
|
||||||
Contact: apiteam@swagger.io
|
Generated by: https://openapi-generator.tech
|
||||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
@ -18,19 +17,19 @@ import six
|
|||||||
|
|
||||||
|
|
||||||
class ArrayOfArrayOfNumberOnly(object):
|
class ArrayOfArrayOfNumberOnly(object):
|
||||||
"""NOTE: This class is auto generated by the swagger code generator program.
|
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
|
||||||
Do not edit the class manually.
|
Do not edit the class manually.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Attributes:
|
Attributes:
|
||||||
swagger_types (dict): The key is attribute name
|
openapi_types (dict): The key is attribute name
|
||||||
and the value is attribute type.
|
and the value is attribute type.
|
||||||
attribute_map (dict): The key is attribute name
|
attribute_map (dict): The key is attribute name
|
||||||
and the value is json key in definition.
|
and the value is json key in definition.
|
||||||
"""
|
"""
|
||||||
swagger_types = {
|
openapi_types = {
|
||||||
'array_array_number': 'list[list[float]]'
|
'array_array_number': 'list[list[float]]'
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -39,7 +38,7 @@ class ArrayOfArrayOfNumberOnly(object):
|
|||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, array_array_number=None): # noqa: E501
|
def __init__(self, array_array_number=None): # noqa: E501
|
||||||
"""ArrayOfArrayOfNumberOnly - a model defined in Swagger""" # noqa: E501
|
"""ArrayOfArrayOfNumberOnly - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
|
||||||
self._array_array_number = None
|
self._array_array_number = None
|
||||||
self.discriminator = None
|
self.discriminator = None
|
||||||
@ -72,7 +71,7 @@ class ArrayOfArrayOfNumberOnly(object):
|
|||||||
"""Returns the model properties as a dict"""
|
"""Returns the model properties as a dict"""
|
||||||
result = {}
|
result = {}
|
||||||
|
|
||||||
for attr, _ in six.iteritems(self.swagger_types):
|
for attr, _ in six.iteritems(self.openapi_types):
|
||||||
value = getattr(self, attr)
|
value = getattr(self, attr)
|
||||||
if isinstance(value, list):
|
if isinstance(value, list):
|
||||||
result[attr] = list(map(
|
result[attr] = list(map(
|
||||||
|
@ -1,13 +1,12 @@
|
|||||||
# coding: utf-8
|
# coding: utf-8
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Swagger Petstore
|
OpenAPI Petstore
|
||||||
|
|
||||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||||
|
|
||||||
OpenAPI spec version: 1.0.0
|
OpenAPI spec version: 1.0.0
|
||||||
Contact: apiteam@swagger.io
|
Generated by: https://openapi-generator.tech
|
||||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
@ -18,19 +17,19 @@ import six
|
|||||||
|
|
||||||
|
|
||||||
class ArrayOfNumberOnly(object):
|
class ArrayOfNumberOnly(object):
|
||||||
"""NOTE: This class is auto generated by the swagger code generator program.
|
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
|
||||||
Do not edit the class manually.
|
Do not edit the class manually.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Attributes:
|
Attributes:
|
||||||
swagger_types (dict): The key is attribute name
|
openapi_types (dict): The key is attribute name
|
||||||
and the value is attribute type.
|
and the value is attribute type.
|
||||||
attribute_map (dict): The key is attribute name
|
attribute_map (dict): The key is attribute name
|
||||||
and the value is json key in definition.
|
and the value is json key in definition.
|
||||||
"""
|
"""
|
||||||
swagger_types = {
|
openapi_types = {
|
||||||
'array_number': 'list[float]'
|
'array_number': 'list[float]'
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -39,7 +38,7 @@ class ArrayOfNumberOnly(object):
|
|||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, array_number=None): # noqa: E501
|
def __init__(self, array_number=None): # noqa: E501
|
||||||
"""ArrayOfNumberOnly - a model defined in Swagger""" # noqa: E501
|
"""ArrayOfNumberOnly - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
|
||||||
self._array_number = None
|
self._array_number = None
|
||||||
self.discriminator = None
|
self.discriminator = None
|
||||||
@ -72,7 +71,7 @@ class ArrayOfNumberOnly(object):
|
|||||||
"""Returns the model properties as a dict"""
|
"""Returns the model properties as a dict"""
|
||||||
result = {}
|
result = {}
|
||||||
|
|
||||||
for attr, _ in six.iteritems(self.swagger_types):
|
for attr, _ in six.iteritems(self.openapi_types):
|
||||||
value = getattr(self, attr)
|
value = getattr(self, attr)
|
||||||
if isinstance(value, list):
|
if isinstance(value, list):
|
||||||
result[attr] = list(map(
|
result[attr] = list(map(
|
||||||
|
@ -1,13 +1,12 @@
|
|||||||
# coding: utf-8
|
# coding: utf-8
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Swagger Petstore
|
OpenAPI Petstore
|
||||||
|
|
||||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||||
|
|
||||||
OpenAPI spec version: 1.0.0
|
OpenAPI spec version: 1.0.0
|
||||||
Contact: apiteam@swagger.io
|
Generated by: https://openapi-generator.tech
|
||||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
@ -20,19 +19,19 @@ from petstore_api.models.read_only_first import ReadOnlyFirst # noqa: F401,E501
|
|||||||
|
|
||||||
|
|
||||||
class ArrayTest(object):
|
class ArrayTest(object):
|
||||||
"""NOTE: This class is auto generated by the swagger code generator program.
|
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
|
||||||
Do not edit the class manually.
|
Do not edit the class manually.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Attributes:
|
Attributes:
|
||||||
swagger_types (dict): The key is attribute name
|
openapi_types (dict): The key is attribute name
|
||||||
and the value is attribute type.
|
and the value is attribute type.
|
||||||
attribute_map (dict): The key is attribute name
|
attribute_map (dict): The key is attribute name
|
||||||
and the value is json key in definition.
|
and the value is json key in definition.
|
||||||
"""
|
"""
|
||||||
swagger_types = {
|
openapi_types = {
|
||||||
'array_of_string': 'list[str]',
|
'array_of_string': 'list[str]',
|
||||||
'array_array_of_integer': 'list[list[int]]',
|
'array_array_of_integer': 'list[list[int]]',
|
||||||
'array_array_of_model': 'list[list[ReadOnlyFirst]]'
|
'array_array_of_model': 'list[list[ReadOnlyFirst]]'
|
||||||
@ -45,7 +44,7 @@ class ArrayTest(object):
|
|||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, array_of_string=None, array_array_of_integer=None, array_array_of_model=None): # noqa: E501
|
def __init__(self, array_of_string=None, array_array_of_integer=None, array_array_of_model=None): # noqa: E501
|
||||||
"""ArrayTest - a model defined in Swagger""" # noqa: E501
|
"""ArrayTest - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
|
||||||
self._array_of_string = None
|
self._array_of_string = None
|
||||||
self._array_array_of_integer = None
|
self._array_array_of_integer = None
|
||||||
@ -126,7 +125,7 @@ class ArrayTest(object):
|
|||||||
"""Returns the model properties as a dict"""
|
"""Returns the model properties as a dict"""
|
||||||
result = {}
|
result = {}
|
||||||
|
|
||||||
for attr, _ in six.iteritems(self.swagger_types):
|
for attr, _ in six.iteritems(self.openapi_types):
|
||||||
value = getattr(self, attr)
|
value = getattr(self, attr)
|
||||||
if isinstance(value, list):
|
if isinstance(value, list):
|
||||||
result[attr] = list(map(
|
result[attr] = list(map(
|
||||||
|
@ -1,13 +1,12 @@
|
|||||||
# coding: utf-8
|
# coding: utf-8
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Swagger Petstore
|
OpenAPI Petstore
|
||||||
|
|
||||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||||
|
|
||||||
OpenAPI spec version: 1.0.0
|
OpenAPI spec version: 1.0.0
|
||||||
Contact: apiteam@swagger.io
|
Generated by: https://openapi-generator.tech
|
||||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
@ -18,19 +17,19 @@ import six
|
|||||||
|
|
||||||
|
|
||||||
class Capitalization(object):
|
class Capitalization(object):
|
||||||
"""NOTE: This class is auto generated by the swagger code generator program.
|
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
|
||||||
Do not edit the class manually.
|
Do not edit the class manually.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Attributes:
|
Attributes:
|
||||||
swagger_types (dict): The key is attribute name
|
openapi_types (dict): The key is attribute name
|
||||||
and the value is attribute type.
|
and the value is attribute type.
|
||||||
attribute_map (dict): The key is attribute name
|
attribute_map (dict): The key is attribute name
|
||||||
and the value is json key in definition.
|
and the value is json key in definition.
|
||||||
"""
|
"""
|
||||||
swagger_types = {
|
openapi_types = {
|
||||||
'small_camel': 'str',
|
'small_camel': 'str',
|
||||||
'capital_camel': 'str',
|
'capital_camel': 'str',
|
||||||
'small_snake': 'str',
|
'small_snake': 'str',
|
||||||
@ -49,7 +48,7 @@ class Capitalization(object):
|
|||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, small_camel=None, capital_camel=None, small_snake=None, capital_snake=None, sca_eth_flow_points=None, att_name=None): # noqa: E501
|
def __init__(self, small_camel=None, capital_camel=None, small_snake=None, capital_snake=None, sca_eth_flow_points=None, att_name=None): # noqa: E501
|
||||||
"""Capitalization - a model defined in Swagger""" # noqa: E501
|
"""Capitalization - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
|
||||||
self._small_camel = None
|
self._small_camel = None
|
||||||
self._capital_camel = None
|
self._capital_camel = None
|
||||||
@ -204,7 +203,7 @@ class Capitalization(object):
|
|||||||
"""Returns the model properties as a dict"""
|
"""Returns the model properties as a dict"""
|
||||||
result = {}
|
result = {}
|
||||||
|
|
||||||
for attr, _ in six.iteritems(self.swagger_types):
|
for attr, _ in six.iteritems(self.openapi_types):
|
||||||
value = getattr(self, attr)
|
value = getattr(self, attr)
|
||||||
if isinstance(value, list):
|
if isinstance(value, list):
|
||||||
result[attr] = list(map(
|
result[attr] = list(map(
|
||||||
|
@ -1,13 +1,12 @@
|
|||||||
# coding: utf-8
|
# coding: utf-8
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Swagger Petstore
|
OpenAPI Petstore
|
||||||
|
|
||||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||||
|
|
||||||
OpenAPI spec version: 1.0.0
|
OpenAPI spec version: 1.0.0
|
||||||
Contact: apiteam@swagger.io
|
Generated by: https://openapi-generator.tech
|
||||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
@ -20,19 +19,19 @@ from petstore_api.models.animal import Animal # noqa: F401,E501
|
|||||||
|
|
||||||
|
|
||||||
class Cat(object):
|
class Cat(object):
|
||||||
"""NOTE: This class is auto generated by the swagger code generator program.
|
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
|
||||||
Do not edit the class manually.
|
Do not edit the class manually.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Attributes:
|
Attributes:
|
||||||
swagger_types (dict): The key is attribute name
|
openapi_types (dict): The key is attribute name
|
||||||
and the value is attribute type.
|
and the value is attribute type.
|
||||||
attribute_map (dict): The key is attribute name
|
attribute_map (dict): The key is attribute name
|
||||||
and the value is json key in definition.
|
and the value is json key in definition.
|
||||||
"""
|
"""
|
||||||
swagger_types = {
|
openapi_types = {
|
||||||
'declawed': 'bool'
|
'declawed': 'bool'
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -41,7 +40,7 @@ class Cat(object):
|
|||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, declawed=None): # noqa: E501
|
def __init__(self, declawed=None): # noqa: E501
|
||||||
"""Cat - a model defined in Swagger""" # noqa: E501
|
"""Cat - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
|
||||||
self._declawed = None
|
self._declawed = None
|
||||||
self.discriminator = None
|
self.discriminator = None
|
||||||
@ -74,7 +73,7 @@ class Cat(object):
|
|||||||
"""Returns the model properties as a dict"""
|
"""Returns the model properties as a dict"""
|
||||||
result = {}
|
result = {}
|
||||||
|
|
||||||
for attr, _ in six.iteritems(self.swagger_types):
|
for attr, _ in six.iteritems(self.openapi_types):
|
||||||
value = getattr(self, attr)
|
value = getattr(self, attr)
|
||||||
if isinstance(value, list):
|
if isinstance(value, list):
|
||||||
result[attr] = list(map(
|
result[attr] = list(map(
|
||||||
|
@ -1,13 +1,12 @@
|
|||||||
# coding: utf-8
|
# coding: utf-8
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Swagger Petstore
|
OpenAPI Petstore
|
||||||
|
|
||||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||||
|
|
||||||
OpenAPI spec version: 1.0.0
|
OpenAPI spec version: 1.0.0
|
||||||
Contact: apiteam@swagger.io
|
Generated by: https://openapi-generator.tech
|
||||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
@ -18,19 +17,19 @@ import six
|
|||||||
|
|
||||||
|
|
||||||
class Category(object):
|
class Category(object):
|
||||||
"""NOTE: This class is auto generated by the swagger code generator program.
|
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
|
||||||
Do not edit the class manually.
|
Do not edit the class manually.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Attributes:
|
Attributes:
|
||||||
swagger_types (dict): The key is attribute name
|
openapi_types (dict): The key is attribute name
|
||||||
and the value is attribute type.
|
and the value is attribute type.
|
||||||
attribute_map (dict): The key is attribute name
|
attribute_map (dict): The key is attribute name
|
||||||
and the value is json key in definition.
|
and the value is json key in definition.
|
||||||
"""
|
"""
|
||||||
swagger_types = {
|
openapi_types = {
|
||||||
'id': 'int',
|
'id': 'int',
|
||||||
'name': 'str'
|
'name': 'str'
|
||||||
}
|
}
|
||||||
@ -41,7 +40,7 @@ class Category(object):
|
|||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, id=None, name=None): # noqa: E501
|
def __init__(self, id=None, name=None): # noqa: E501
|
||||||
"""Category - a model defined in Swagger""" # noqa: E501
|
"""Category - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
|
||||||
self._id = None
|
self._id = None
|
||||||
self._name = None
|
self._name = None
|
||||||
@ -98,7 +97,7 @@ class Category(object):
|
|||||||
"""Returns the model properties as a dict"""
|
"""Returns the model properties as a dict"""
|
||||||
result = {}
|
result = {}
|
||||||
|
|
||||||
for attr, _ in six.iteritems(self.swagger_types):
|
for attr, _ in six.iteritems(self.openapi_types):
|
||||||
value = getattr(self, attr)
|
value = getattr(self, attr)
|
||||||
if isinstance(value, list):
|
if isinstance(value, list):
|
||||||
result[attr] = list(map(
|
result[attr] = list(map(
|
||||||
|
@ -1,13 +1,12 @@
|
|||||||
# coding: utf-8
|
# coding: utf-8
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Swagger Petstore
|
OpenAPI Petstore
|
||||||
|
|
||||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||||
|
|
||||||
OpenAPI spec version: 1.0.0
|
OpenAPI spec version: 1.0.0
|
||||||
Contact: apiteam@swagger.io
|
Generated by: https://openapi-generator.tech
|
||||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
@ -18,19 +17,19 @@ import six
|
|||||||
|
|
||||||
|
|
||||||
class ClassModel(object):
|
class ClassModel(object):
|
||||||
"""NOTE: This class is auto generated by the swagger code generator program.
|
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
|
||||||
Do not edit the class manually.
|
Do not edit the class manually.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Attributes:
|
Attributes:
|
||||||
swagger_types (dict): The key is attribute name
|
openapi_types (dict): The key is attribute name
|
||||||
and the value is attribute type.
|
and the value is attribute type.
|
||||||
attribute_map (dict): The key is attribute name
|
attribute_map (dict): The key is attribute name
|
||||||
and the value is json key in definition.
|
and the value is json key in definition.
|
||||||
"""
|
"""
|
||||||
swagger_types = {
|
openapi_types = {
|
||||||
'_class': 'str'
|
'_class': 'str'
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -39,7 +38,7 @@ class ClassModel(object):
|
|||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, _class=None): # noqa: E501
|
def __init__(self, _class=None): # noqa: E501
|
||||||
"""ClassModel - a model defined in Swagger""" # noqa: E501
|
"""ClassModel - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
|
||||||
self.__class = None
|
self.__class = None
|
||||||
self.discriminator = None
|
self.discriminator = None
|
||||||
@ -72,7 +71,7 @@ class ClassModel(object):
|
|||||||
"""Returns the model properties as a dict"""
|
"""Returns the model properties as a dict"""
|
||||||
result = {}
|
result = {}
|
||||||
|
|
||||||
for attr, _ in six.iteritems(self.swagger_types):
|
for attr, _ in six.iteritems(self.openapi_types):
|
||||||
value = getattr(self, attr)
|
value = getattr(self, attr)
|
||||||
if isinstance(value, list):
|
if isinstance(value, list):
|
||||||
result[attr] = list(map(
|
result[attr] = list(map(
|
||||||
|
@ -1,13 +1,12 @@
|
|||||||
# coding: utf-8
|
# coding: utf-8
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Swagger Petstore
|
OpenAPI Petstore
|
||||||
|
|
||||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||||
|
|
||||||
OpenAPI spec version: 1.0.0
|
OpenAPI spec version: 1.0.0
|
||||||
Contact: apiteam@swagger.io
|
Generated by: https://openapi-generator.tech
|
||||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
@ -18,19 +17,19 @@ import six
|
|||||||
|
|
||||||
|
|
||||||
class Client(object):
|
class Client(object):
|
||||||
"""NOTE: This class is auto generated by the swagger code generator program.
|
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
|
||||||
Do not edit the class manually.
|
Do not edit the class manually.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Attributes:
|
Attributes:
|
||||||
swagger_types (dict): The key is attribute name
|
openapi_types (dict): The key is attribute name
|
||||||
and the value is attribute type.
|
and the value is attribute type.
|
||||||
attribute_map (dict): The key is attribute name
|
attribute_map (dict): The key is attribute name
|
||||||
and the value is json key in definition.
|
and the value is json key in definition.
|
||||||
"""
|
"""
|
||||||
swagger_types = {
|
openapi_types = {
|
||||||
'client': 'str'
|
'client': 'str'
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -39,7 +38,7 @@ class Client(object):
|
|||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, client=None): # noqa: E501
|
def __init__(self, client=None): # noqa: E501
|
||||||
"""Client - a model defined in Swagger""" # noqa: E501
|
"""Client - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
|
||||||
self._client = None
|
self._client = None
|
||||||
self.discriminator = None
|
self.discriminator = None
|
||||||
@ -72,7 +71,7 @@ class Client(object):
|
|||||||
"""Returns the model properties as a dict"""
|
"""Returns the model properties as a dict"""
|
||||||
result = {}
|
result = {}
|
||||||
|
|
||||||
for attr, _ in six.iteritems(self.swagger_types):
|
for attr, _ in six.iteritems(self.openapi_types):
|
||||||
value = getattr(self, attr)
|
value = getattr(self, attr)
|
||||||
if isinstance(value, list):
|
if isinstance(value, list):
|
||||||
result[attr] = list(map(
|
result[attr] = list(map(
|
||||||
|
@ -1,13 +1,12 @@
|
|||||||
# coding: utf-8
|
# coding: utf-8
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Swagger Petstore
|
OpenAPI Petstore
|
||||||
|
|
||||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||||
|
|
||||||
OpenAPI spec version: 1.0.0
|
OpenAPI spec version: 1.0.0
|
||||||
Contact: apiteam@swagger.io
|
Generated by: https://openapi-generator.tech
|
||||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
@ -20,19 +19,19 @@ from petstore_api.models.animal import Animal # noqa: F401,E501
|
|||||||
|
|
||||||
|
|
||||||
class Dog(object):
|
class Dog(object):
|
||||||
"""NOTE: This class is auto generated by the swagger code generator program.
|
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
|
||||||
Do not edit the class manually.
|
Do not edit the class manually.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Attributes:
|
Attributes:
|
||||||
swagger_types (dict): The key is attribute name
|
openapi_types (dict): The key is attribute name
|
||||||
and the value is attribute type.
|
and the value is attribute type.
|
||||||
attribute_map (dict): The key is attribute name
|
attribute_map (dict): The key is attribute name
|
||||||
and the value is json key in definition.
|
and the value is json key in definition.
|
||||||
"""
|
"""
|
||||||
swagger_types = {
|
openapi_types = {
|
||||||
'breed': 'str'
|
'breed': 'str'
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -41,7 +40,7 @@ class Dog(object):
|
|||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, breed=None): # noqa: E501
|
def __init__(self, breed=None): # noqa: E501
|
||||||
"""Dog - a model defined in Swagger""" # noqa: E501
|
"""Dog - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
|
||||||
self._breed = None
|
self._breed = None
|
||||||
self.discriminator = None
|
self.discriminator = None
|
||||||
@ -74,7 +73,7 @@ class Dog(object):
|
|||||||
"""Returns the model properties as a dict"""
|
"""Returns the model properties as a dict"""
|
||||||
result = {}
|
result = {}
|
||||||
|
|
||||||
for attr, _ in six.iteritems(self.swagger_types):
|
for attr, _ in six.iteritems(self.openapi_types):
|
||||||
value = getattr(self, attr)
|
value = getattr(self, attr)
|
||||||
if isinstance(value, list):
|
if isinstance(value, list):
|
||||||
result[attr] = list(map(
|
result[attr] = list(map(
|
||||||
|
@ -1,13 +1,12 @@
|
|||||||
# coding: utf-8
|
# coding: utf-8
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Swagger Petstore
|
OpenAPI Petstore
|
||||||
|
|
||||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||||
|
|
||||||
OpenAPI spec version: 1.0.0
|
OpenAPI spec version: 1.0.0
|
||||||
Contact: apiteam@swagger.io
|
Generated by: https://openapi-generator.tech
|
||||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
@ -18,19 +17,19 @@ import six
|
|||||||
|
|
||||||
|
|
||||||
class EnumArrays(object):
|
class EnumArrays(object):
|
||||||
"""NOTE: This class is auto generated by the swagger code generator program.
|
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
|
||||||
Do not edit the class manually.
|
Do not edit the class manually.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Attributes:
|
Attributes:
|
||||||
swagger_types (dict): The key is attribute name
|
openapi_types (dict): The key is attribute name
|
||||||
and the value is attribute type.
|
and the value is attribute type.
|
||||||
attribute_map (dict): The key is attribute name
|
attribute_map (dict): The key is attribute name
|
||||||
and the value is json key in definition.
|
and the value is json key in definition.
|
||||||
"""
|
"""
|
||||||
swagger_types = {
|
openapi_types = {
|
||||||
'just_symbol': 'str',
|
'just_symbol': 'str',
|
||||||
'array_enum': 'list[str]'
|
'array_enum': 'list[str]'
|
||||||
}
|
}
|
||||||
@ -41,7 +40,7 @@ class EnumArrays(object):
|
|||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, just_symbol=None, array_enum=None): # noqa: E501
|
def __init__(self, just_symbol=None, array_enum=None): # noqa: E501
|
||||||
"""EnumArrays - a model defined in Swagger""" # noqa: E501
|
"""EnumArrays - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
|
||||||
self._just_symbol = None
|
self._just_symbol = None
|
||||||
self._array_enum = None
|
self._array_enum = None
|
||||||
@ -111,7 +110,7 @@ class EnumArrays(object):
|
|||||||
"""Returns the model properties as a dict"""
|
"""Returns the model properties as a dict"""
|
||||||
result = {}
|
result = {}
|
||||||
|
|
||||||
for attr, _ in six.iteritems(self.swagger_types):
|
for attr, _ in six.iteritems(self.openapi_types):
|
||||||
value = getattr(self, attr)
|
value = getattr(self, attr)
|
||||||
if isinstance(value, list):
|
if isinstance(value, list):
|
||||||
result[attr] = list(map(
|
result[attr] = list(map(
|
||||||
|
@ -1,13 +1,12 @@
|
|||||||
# coding: utf-8
|
# coding: utf-8
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Swagger Petstore
|
OpenAPI Petstore
|
||||||
|
|
||||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||||
|
|
||||||
OpenAPI spec version: 1.0.0
|
OpenAPI spec version: 1.0.0
|
||||||
Contact: apiteam@swagger.io
|
Generated by: https://openapi-generator.tech
|
||||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
@ -18,7 +17,7 @@ import six
|
|||||||
|
|
||||||
|
|
||||||
class EnumClass(object):
|
class EnumClass(object):
|
||||||
"""NOTE: This class is auto generated by the swagger code generator program.
|
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
|
||||||
Do not edit the class manually.
|
Do not edit the class manually.
|
||||||
"""
|
"""
|
||||||
@ -32,26 +31,26 @@ class EnumClass(object):
|
|||||||
|
|
||||||
"""
|
"""
|
||||||
Attributes:
|
Attributes:
|
||||||
swagger_types (dict): The key is attribute name
|
openapi_types (dict): The key is attribute name
|
||||||
and the value is attribute type.
|
and the value is attribute type.
|
||||||
attribute_map (dict): The key is attribute name
|
attribute_map (dict): The key is attribute name
|
||||||
and the value is json key in definition.
|
and the value is json key in definition.
|
||||||
"""
|
"""
|
||||||
swagger_types = {
|
openapi_types = {
|
||||||
}
|
}
|
||||||
|
|
||||||
attribute_map = {
|
attribute_map = {
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self): # noqa: E501
|
def __init__(self): # noqa: E501
|
||||||
"""EnumClass - a model defined in Swagger""" # noqa: E501
|
"""EnumClass - a model defined in OpenAPI""" # noqa: E501
|
||||||
self.discriminator = None
|
self.discriminator = None
|
||||||
|
|
||||||
def to_dict(self):
|
def to_dict(self):
|
||||||
"""Returns the model properties as a dict"""
|
"""Returns the model properties as a dict"""
|
||||||
result = {}
|
result = {}
|
||||||
|
|
||||||
for attr, _ in six.iteritems(self.swagger_types):
|
for attr, _ in six.iteritems(self.openapi_types):
|
||||||
value = getattr(self, attr)
|
value = getattr(self, attr)
|
||||||
if isinstance(value, list):
|
if isinstance(value, list):
|
||||||
result[attr] = list(map(
|
result[attr] = list(map(
|
||||||
|
@ -1,13 +1,12 @@
|
|||||||
# coding: utf-8
|
# coding: utf-8
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Swagger Petstore
|
OpenAPI Petstore
|
||||||
|
|
||||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||||
|
|
||||||
OpenAPI spec version: 1.0.0
|
OpenAPI spec version: 1.0.0
|
||||||
Contact: apiteam@swagger.io
|
Generated by: https://openapi-generator.tech
|
||||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
@ -20,19 +19,19 @@ from petstore_api.models.outer_enum import OuterEnum # noqa: F401,E501
|
|||||||
|
|
||||||
|
|
||||||
class EnumTest(object):
|
class EnumTest(object):
|
||||||
"""NOTE: This class is auto generated by the swagger code generator program.
|
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
|
||||||
Do not edit the class manually.
|
Do not edit the class manually.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Attributes:
|
Attributes:
|
||||||
swagger_types (dict): The key is attribute name
|
openapi_types (dict): The key is attribute name
|
||||||
and the value is attribute type.
|
and the value is attribute type.
|
||||||
attribute_map (dict): The key is attribute name
|
attribute_map (dict): The key is attribute name
|
||||||
and the value is json key in definition.
|
and the value is json key in definition.
|
||||||
"""
|
"""
|
||||||
swagger_types = {
|
openapi_types = {
|
||||||
'enum_string': 'str',
|
'enum_string': 'str',
|
||||||
'enum_string_required': 'str',
|
'enum_string_required': 'str',
|
||||||
'enum_integer': 'int',
|
'enum_integer': 'int',
|
||||||
@ -49,7 +48,7 @@ class EnumTest(object):
|
|||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, enum_string=None, enum_string_required=None, enum_integer=None, enum_number=None, outer_enum=None): # noqa: E501
|
def __init__(self, enum_string=None, enum_string_required=None, enum_integer=None, enum_number=None, outer_enum=None): # noqa: E501
|
||||||
"""EnumTest - a model defined in Swagger""" # noqa: E501
|
"""EnumTest - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
|
||||||
self._enum_string = None
|
self._enum_string = None
|
||||||
self._enum_string_required = None
|
self._enum_string_required = None
|
||||||
@ -203,7 +202,7 @@ class EnumTest(object):
|
|||||||
"""Returns the model properties as a dict"""
|
"""Returns the model properties as a dict"""
|
||||||
result = {}
|
result = {}
|
||||||
|
|
||||||
for attr, _ in six.iteritems(self.swagger_types):
|
for attr, _ in six.iteritems(self.openapi_types):
|
||||||
value = getattr(self, attr)
|
value = getattr(self, attr)
|
||||||
if isinstance(value, list):
|
if isinstance(value, list):
|
||||||
result[attr] = list(map(
|
result[attr] = list(map(
|
||||||
|
@ -1,13 +1,12 @@
|
|||||||
# coding: utf-8
|
# coding: utf-8
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Swagger Petstore
|
OpenAPI Petstore
|
||||||
|
|
||||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||||
|
|
||||||
OpenAPI spec version: 1.0.0
|
OpenAPI spec version: 1.0.0
|
||||||
Contact: apiteam@swagger.io
|
Generated by: https://openapi-generator.tech
|
||||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
@ -18,19 +17,19 @@ import six
|
|||||||
|
|
||||||
|
|
||||||
class FormatTest(object):
|
class FormatTest(object):
|
||||||
"""NOTE: This class is auto generated by the swagger code generator program.
|
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
|
||||||
Do not edit the class manually.
|
Do not edit the class manually.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Attributes:
|
Attributes:
|
||||||
swagger_types (dict): The key is attribute name
|
openapi_types (dict): The key is attribute name
|
||||||
and the value is attribute type.
|
and the value is attribute type.
|
||||||
attribute_map (dict): The key is attribute name
|
attribute_map (dict): The key is attribute name
|
||||||
and the value is json key in definition.
|
and the value is json key in definition.
|
||||||
"""
|
"""
|
||||||
swagger_types = {
|
openapi_types = {
|
||||||
'integer': 'int',
|
'integer': 'int',
|
||||||
'int32': 'int',
|
'int32': 'int',
|
||||||
'int64': 'int',
|
'int64': 'int',
|
||||||
@ -63,7 +62,7 @@ class FormatTest(object):
|
|||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, integer=None, int32=None, int64=None, number=None, float=None, double=None, string=None, byte=None, binary=None, date=None, date_time=None, uuid=None, password=None): # noqa: E501
|
def __init__(self, integer=None, int32=None, int64=None, number=None, float=None, double=None, string=None, byte=None, binary=None, date=None, date_time=None, uuid=None, password=None): # noqa: E501
|
||||||
"""FormatTest - a model defined in Swagger""" # noqa: E501
|
"""FormatTest - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
|
||||||
self._integer = None
|
self._integer = None
|
||||||
self._int32 = None
|
self._int32 = None
|
||||||
@ -416,7 +415,7 @@ class FormatTest(object):
|
|||||||
"""Returns the model properties as a dict"""
|
"""Returns the model properties as a dict"""
|
||||||
result = {}
|
result = {}
|
||||||
|
|
||||||
for attr, _ in six.iteritems(self.swagger_types):
|
for attr, _ in six.iteritems(self.openapi_types):
|
||||||
value = getattr(self, attr)
|
value = getattr(self, attr)
|
||||||
if isinstance(value, list):
|
if isinstance(value, list):
|
||||||
result[attr] = list(map(
|
result[attr] = list(map(
|
||||||
|
@ -1,13 +1,12 @@
|
|||||||
# coding: utf-8
|
# coding: utf-8
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Swagger Petstore
|
OpenAPI Petstore
|
||||||
|
|
||||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||||
|
|
||||||
OpenAPI spec version: 1.0.0
|
OpenAPI spec version: 1.0.0
|
||||||
Contact: apiteam@swagger.io
|
Generated by: https://openapi-generator.tech
|
||||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
@ -18,19 +17,19 @@ import six
|
|||||||
|
|
||||||
|
|
||||||
class HasOnlyReadOnly(object):
|
class HasOnlyReadOnly(object):
|
||||||
"""NOTE: This class is auto generated by the swagger code generator program.
|
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
|
||||||
Do not edit the class manually.
|
Do not edit the class manually.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Attributes:
|
Attributes:
|
||||||
swagger_types (dict): The key is attribute name
|
openapi_types (dict): The key is attribute name
|
||||||
and the value is attribute type.
|
and the value is attribute type.
|
||||||
attribute_map (dict): The key is attribute name
|
attribute_map (dict): The key is attribute name
|
||||||
and the value is json key in definition.
|
and the value is json key in definition.
|
||||||
"""
|
"""
|
||||||
swagger_types = {
|
openapi_types = {
|
||||||
'bar': 'str',
|
'bar': 'str',
|
||||||
'foo': 'str'
|
'foo': 'str'
|
||||||
}
|
}
|
||||||
@ -41,7 +40,7 @@ class HasOnlyReadOnly(object):
|
|||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, bar=None, foo=None): # noqa: E501
|
def __init__(self, bar=None, foo=None): # noqa: E501
|
||||||
"""HasOnlyReadOnly - a model defined in Swagger""" # noqa: E501
|
"""HasOnlyReadOnly - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
|
||||||
self._bar = None
|
self._bar = None
|
||||||
self._foo = None
|
self._foo = None
|
||||||
@ -98,7 +97,7 @@ class HasOnlyReadOnly(object):
|
|||||||
"""Returns the model properties as a dict"""
|
"""Returns the model properties as a dict"""
|
||||||
result = {}
|
result = {}
|
||||||
|
|
||||||
for attr, _ in six.iteritems(self.swagger_types):
|
for attr, _ in six.iteritems(self.openapi_types):
|
||||||
value = getattr(self, attr)
|
value = getattr(self, attr)
|
||||||
if isinstance(value, list):
|
if isinstance(value, list):
|
||||||
result[attr] = list(map(
|
result[attr] = list(map(
|
||||||
|
@ -1,13 +1,12 @@
|
|||||||
# coding: utf-8
|
# coding: utf-8
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Swagger Petstore
|
OpenAPI Petstore
|
||||||
|
|
||||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||||
|
|
||||||
OpenAPI spec version: 1.0.0
|
OpenAPI spec version: 1.0.0
|
||||||
Contact: apiteam@swagger.io
|
Generated by: https://openapi-generator.tech
|
||||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
@ -18,19 +17,19 @@ import six
|
|||||||
|
|
||||||
|
|
||||||
class List(object):
|
class List(object):
|
||||||
"""NOTE: This class is auto generated by the swagger code generator program.
|
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
|
||||||
Do not edit the class manually.
|
Do not edit the class manually.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Attributes:
|
Attributes:
|
||||||
swagger_types (dict): The key is attribute name
|
openapi_types (dict): The key is attribute name
|
||||||
and the value is attribute type.
|
and the value is attribute type.
|
||||||
attribute_map (dict): The key is attribute name
|
attribute_map (dict): The key is attribute name
|
||||||
and the value is json key in definition.
|
and the value is json key in definition.
|
||||||
"""
|
"""
|
||||||
swagger_types = {
|
openapi_types = {
|
||||||
'_123_list': 'str'
|
'_123_list': 'str'
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -39,7 +38,7 @@ class List(object):
|
|||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, _123_list=None): # noqa: E501
|
def __init__(self, _123_list=None): # noqa: E501
|
||||||
"""List - a model defined in Swagger""" # noqa: E501
|
"""List - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
|
||||||
self.__123_list = None
|
self.__123_list = None
|
||||||
self.discriminator = None
|
self.discriminator = None
|
||||||
@ -72,7 +71,7 @@ class List(object):
|
|||||||
"""Returns the model properties as a dict"""
|
"""Returns the model properties as a dict"""
|
||||||
result = {}
|
result = {}
|
||||||
|
|
||||||
for attr, _ in six.iteritems(self.swagger_types):
|
for attr, _ in six.iteritems(self.openapi_types):
|
||||||
value = getattr(self, attr)
|
value = getattr(self, attr)
|
||||||
if isinstance(value, list):
|
if isinstance(value, list):
|
||||||
result[attr] = list(map(
|
result[attr] = list(map(
|
||||||
|
@ -1,13 +1,12 @@
|
|||||||
# coding: utf-8
|
# coding: utf-8
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Swagger Petstore
|
OpenAPI Petstore
|
||||||
|
|
||||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||||
|
|
||||||
OpenAPI spec version: 1.0.0
|
OpenAPI spec version: 1.0.0
|
||||||
Contact: apiteam@swagger.io
|
Generated by: https://openapi-generator.tech
|
||||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
@ -18,19 +17,19 @@ import six
|
|||||||
|
|
||||||
|
|
||||||
class MapTest(object):
|
class MapTest(object):
|
||||||
"""NOTE: This class is auto generated by the swagger code generator program.
|
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
|
||||||
Do not edit the class manually.
|
Do not edit the class manually.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Attributes:
|
Attributes:
|
||||||
swagger_types (dict): The key is attribute name
|
openapi_types (dict): The key is attribute name
|
||||||
and the value is attribute type.
|
and the value is attribute type.
|
||||||
attribute_map (dict): The key is attribute name
|
attribute_map (dict): The key is attribute name
|
||||||
and the value is json key in definition.
|
and the value is json key in definition.
|
||||||
"""
|
"""
|
||||||
swagger_types = {
|
openapi_types = {
|
||||||
'map_map_of_string': 'dict(str, dict(str, str))',
|
'map_map_of_string': 'dict(str, dict(str, str))',
|
||||||
'map_of_enum_string': 'dict(str, str)'
|
'map_of_enum_string': 'dict(str, str)'
|
||||||
}
|
}
|
||||||
@ -41,7 +40,7 @@ class MapTest(object):
|
|||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, map_map_of_string=None, map_of_enum_string=None): # noqa: E501
|
def __init__(self, map_map_of_string=None, map_of_enum_string=None): # noqa: E501
|
||||||
"""MapTest - a model defined in Swagger""" # noqa: E501
|
"""MapTest - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
|
||||||
self._map_map_of_string = None
|
self._map_map_of_string = None
|
||||||
self._map_of_enum_string = None
|
self._map_of_enum_string = None
|
||||||
@ -105,7 +104,7 @@ class MapTest(object):
|
|||||||
"""Returns the model properties as a dict"""
|
"""Returns the model properties as a dict"""
|
||||||
result = {}
|
result = {}
|
||||||
|
|
||||||
for attr, _ in six.iteritems(self.swagger_types):
|
for attr, _ in six.iteritems(self.openapi_types):
|
||||||
value = getattr(self, attr)
|
value = getattr(self, attr)
|
||||||
if isinstance(value, list):
|
if isinstance(value, list):
|
||||||
result[attr] = list(map(
|
result[attr] = list(map(
|
||||||
|
@ -1,13 +1,12 @@
|
|||||||
# coding: utf-8
|
# coding: utf-8
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Swagger Petstore
|
OpenAPI Petstore
|
||||||
|
|
||||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||||
|
|
||||||
OpenAPI spec version: 1.0.0
|
OpenAPI spec version: 1.0.0
|
||||||
Contact: apiteam@swagger.io
|
Generated by: https://openapi-generator.tech
|
||||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
@ -20,19 +19,19 @@ from petstore_api.models.animal import Animal # noqa: F401,E501
|
|||||||
|
|
||||||
|
|
||||||
class MixedPropertiesAndAdditionalPropertiesClass(object):
|
class MixedPropertiesAndAdditionalPropertiesClass(object):
|
||||||
"""NOTE: This class is auto generated by the swagger code generator program.
|
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
|
||||||
Do not edit the class manually.
|
Do not edit the class manually.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Attributes:
|
Attributes:
|
||||||
swagger_types (dict): The key is attribute name
|
openapi_types (dict): The key is attribute name
|
||||||
and the value is attribute type.
|
and the value is attribute type.
|
||||||
attribute_map (dict): The key is attribute name
|
attribute_map (dict): The key is attribute name
|
||||||
and the value is json key in definition.
|
and the value is json key in definition.
|
||||||
"""
|
"""
|
||||||
swagger_types = {
|
openapi_types = {
|
||||||
'uuid': 'str',
|
'uuid': 'str',
|
||||||
'date_time': 'datetime',
|
'date_time': 'datetime',
|
||||||
'map': 'dict(str, Animal)'
|
'map': 'dict(str, Animal)'
|
||||||
@ -45,7 +44,7 @@ class MixedPropertiesAndAdditionalPropertiesClass(object):
|
|||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, uuid=None, date_time=None, map=None): # noqa: E501
|
def __init__(self, uuid=None, date_time=None, map=None): # noqa: E501
|
||||||
"""MixedPropertiesAndAdditionalPropertiesClass - a model defined in Swagger""" # noqa: E501
|
"""MixedPropertiesAndAdditionalPropertiesClass - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
|
||||||
self._uuid = None
|
self._uuid = None
|
||||||
self._date_time = None
|
self._date_time = None
|
||||||
@ -126,7 +125,7 @@ class MixedPropertiesAndAdditionalPropertiesClass(object):
|
|||||||
"""Returns the model properties as a dict"""
|
"""Returns the model properties as a dict"""
|
||||||
result = {}
|
result = {}
|
||||||
|
|
||||||
for attr, _ in six.iteritems(self.swagger_types):
|
for attr, _ in six.iteritems(self.openapi_types):
|
||||||
value = getattr(self, attr)
|
value = getattr(self, attr)
|
||||||
if isinstance(value, list):
|
if isinstance(value, list):
|
||||||
result[attr] = list(map(
|
result[attr] = list(map(
|
||||||
|
@ -1,13 +1,12 @@
|
|||||||
# coding: utf-8
|
# coding: utf-8
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Swagger Petstore
|
OpenAPI Petstore
|
||||||
|
|
||||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||||
|
|
||||||
OpenAPI spec version: 1.0.0
|
OpenAPI spec version: 1.0.0
|
||||||
Contact: apiteam@swagger.io
|
Generated by: https://openapi-generator.tech
|
||||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
@ -18,19 +17,19 @@ import six
|
|||||||
|
|
||||||
|
|
||||||
class Model200Response(object):
|
class Model200Response(object):
|
||||||
"""NOTE: This class is auto generated by the swagger code generator program.
|
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
|
||||||
Do not edit the class manually.
|
Do not edit the class manually.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Attributes:
|
Attributes:
|
||||||
swagger_types (dict): The key is attribute name
|
openapi_types (dict): The key is attribute name
|
||||||
and the value is attribute type.
|
and the value is attribute type.
|
||||||
attribute_map (dict): The key is attribute name
|
attribute_map (dict): The key is attribute name
|
||||||
and the value is json key in definition.
|
and the value is json key in definition.
|
||||||
"""
|
"""
|
||||||
swagger_types = {
|
openapi_types = {
|
||||||
'name': 'int',
|
'name': 'int',
|
||||||
'_class': 'str'
|
'_class': 'str'
|
||||||
}
|
}
|
||||||
@ -41,7 +40,7 @@ class Model200Response(object):
|
|||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, name=None, _class=None): # noqa: E501
|
def __init__(self, name=None, _class=None): # noqa: E501
|
||||||
"""Model200Response - a model defined in Swagger""" # noqa: E501
|
"""Model200Response - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
|
||||||
self._name = None
|
self._name = None
|
||||||
self.__class = None
|
self.__class = None
|
||||||
@ -98,7 +97,7 @@ class Model200Response(object):
|
|||||||
"""Returns the model properties as a dict"""
|
"""Returns the model properties as a dict"""
|
||||||
result = {}
|
result = {}
|
||||||
|
|
||||||
for attr, _ in six.iteritems(self.swagger_types):
|
for attr, _ in six.iteritems(self.openapi_types):
|
||||||
value = getattr(self, attr)
|
value = getattr(self, attr)
|
||||||
if isinstance(value, list):
|
if isinstance(value, list):
|
||||||
result[attr] = list(map(
|
result[attr] = list(map(
|
||||||
|
@ -1,13 +1,12 @@
|
|||||||
# coding: utf-8
|
# coding: utf-8
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Swagger Petstore
|
OpenAPI Petstore
|
||||||
|
|
||||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||||
|
|
||||||
OpenAPI spec version: 1.0.0
|
OpenAPI spec version: 1.0.0
|
||||||
Contact: apiteam@swagger.io
|
Generated by: https://openapi-generator.tech
|
||||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
@ -18,19 +17,19 @@ import six
|
|||||||
|
|
||||||
|
|
||||||
class ModelReturn(object):
|
class ModelReturn(object):
|
||||||
"""NOTE: This class is auto generated by the swagger code generator program.
|
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
|
||||||
Do not edit the class manually.
|
Do not edit the class manually.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Attributes:
|
Attributes:
|
||||||
swagger_types (dict): The key is attribute name
|
openapi_types (dict): The key is attribute name
|
||||||
and the value is attribute type.
|
and the value is attribute type.
|
||||||
attribute_map (dict): The key is attribute name
|
attribute_map (dict): The key is attribute name
|
||||||
and the value is json key in definition.
|
and the value is json key in definition.
|
||||||
"""
|
"""
|
||||||
swagger_types = {
|
openapi_types = {
|
||||||
'_return': 'int'
|
'_return': 'int'
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -39,7 +38,7 @@ class ModelReturn(object):
|
|||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, _return=None): # noqa: E501
|
def __init__(self, _return=None): # noqa: E501
|
||||||
"""ModelReturn - a model defined in Swagger""" # noqa: E501
|
"""ModelReturn - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
|
||||||
self.__return = None
|
self.__return = None
|
||||||
self.discriminator = None
|
self.discriminator = None
|
||||||
@ -72,7 +71,7 @@ class ModelReturn(object):
|
|||||||
"""Returns the model properties as a dict"""
|
"""Returns the model properties as a dict"""
|
||||||
result = {}
|
result = {}
|
||||||
|
|
||||||
for attr, _ in six.iteritems(self.swagger_types):
|
for attr, _ in six.iteritems(self.openapi_types):
|
||||||
value = getattr(self, attr)
|
value = getattr(self, attr)
|
||||||
if isinstance(value, list):
|
if isinstance(value, list):
|
||||||
result[attr] = list(map(
|
result[attr] = list(map(
|
||||||
|
@ -1,13 +1,12 @@
|
|||||||
# coding: utf-8
|
# coding: utf-8
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Swagger Petstore
|
OpenAPI Petstore
|
||||||
|
|
||||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||||
|
|
||||||
OpenAPI spec version: 1.0.0
|
OpenAPI spec version: 1.0.0
|
||||||
Contact: apiteam@swagger.io
|
Generated by: https://openapi-generator.tech
|
||||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
@ -18,19 +17,19 @@ import six
|
|||||||
|
|
||||||
|
|
||||||
class Name(object):
|
class Name(object):
|
||||||
"""NOTE: This class is auto generated by the swagger code generator program.
|
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
|
||||||
Do not edit the class manually.
|
Do not edit the class manually.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Attributes:
|
Attributes:
|
||||||
swagger_types (dict): The key is attribute name
|
openapi_types (dict): The key is attribute name
|
||||||
and the value is attribute type.
|
and the value is attribute type.
|
||||||
attribute_map (dict): The key is attribute name
|
attribute_map (dict): The key is attribute name
|
||||||
and the value is json key in definition.
|
and the value is json key in definition.
|
||||||
"""
|
"""
|
||||||
swagger_types = {
|
openapi_types = {
|
||||||
'name': 'int',
|
'name': 'int',
|
||||||
'snake_case': 'int',
|
'snake_case': 'int',
|
||||||
'_property': 'str',
|
'_property': 'str',
|
||||||
@ -45,7 +44,7 @@ class Name(object):
|
|||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, name=None, snake_case=None, _property=None, _123_number=None): # noqa: E501
|
def __init__(self, name=None, snake_case=None, _property=None, _123_number=None): # noqa: E501
|
||||||
"""Name - a model defined in Swagger""" # noqa: E501
|
"""Name - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
|
||||||
self._name = None
|
self._name = None
|
||||||
self._snake_case = None
|
self._snake_case = None
|
||||||
@ -151,7 +150,7 @@ class Name(object):
|
|||||||
"""Returns the model properties as a dict"""
|
"""Returns the model properties as a dict"""
|
||||||
result = {}
|
result = {}
|
||||||
|
|
||||||
for attr, _ in six.iteritems(self.swagger_types):
|
for attr, _ in six.iteritems(self.openapi_types):
|
||||||
value = getattr(self, attr)
|
value = getattr(self, attr)
|
||||||
if isinstance(value, list):
|
if isinstance(value, list):
|
||||||
result[attr] = list(map(
|
result[attr] = list(map(
|
||||||
|
@ -1,13 +1,12 @@
|
|||||||
# coding: utf-8
|
# coding: utf-8
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Swagger Petstore
|
OpenAPI Petstore
|
||||||
|
|
||||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||||
|
|
||||||
OpenAPI spec version: 1.0.0
|
OpenAPI spec version: 1.0.0
|
||||||
Contact: apiteam@swagger.io
|
Generated by: https://openapi-generator.tech
|
||||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
@ -18,19 +17,19 @@ import six
|
|||||||
|
|
||||||
|
|
||||||
class NumberOnly(object):
|
class NumberOnly(object):
|
||||||
"""NOTE: This class is auto generated by the swagger code generator program.
|
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
|
||||||
Do not edit the class manually.
|
Do not edit the class manually.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Attributes:
|
Attributes:
|
||||||
swagger_types (dict): The key is attribute name
|
openapi_types (dict): The key is attribute name
|
||||||
and the value is attribute type.
|
and the value is attribute type.
|
||||||
attribute_map (dict): The key is attribute name
|
attribute_map (dict): The key is attribute name
|
||||||
and the value is json key in definition.
|
and the value is json key in definition.
|
||||||
"""
|
"""
|
||||||
swagger_types = {
|
openapi_types = {
|
||||||
'just_number': 'float'
|
'just_number': 'float'
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -39,7 +38,7 @@ class NumberOnly(object):
|
|||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, just_number=None): # noqa: E501
|
def __init__(self, just_number=None): # noqa: E501
|
||||||
"""NumberOnly - a model defined in Swagger""" # noqa: E501
|
"""NumberOnly - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
|
||||||
self._just_number = None
|
self._just_number = None
|
||||||
self.discriminator = None
|
self.discriminator = None
|
||||||
@ -72,7 +71,7 @@ class NumberOnly(object):
|
|||||||
"""Returns the model properties as a dict"""
|
"""Returns the model properties as a dict"""
|
||||||
result = {}
|
result = {}
|
||||||
|
|
||||||
for attr, _ in six.iteritems(self.swagger_types):
|
for attr, _ in six.iteritems(self.openapi_types):
|
||||||
value = getattr(self, attr)
|
value = getattr(self, attr)
|
||||||
if isinstance(value, list):
|
if isinstance(value, list):
|
||||||
result[attr] = list(map(
|
result[attr] = list(map(
|
||||||
|
@ -1,13 +1,12 @@
|
|||||||
# coding: utf-8
|
# coding: utf-8
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Swagger Petstore
|
OpenAPI Petstore
|
||||||
|
|
||||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||||
|
|
||||||
OpenAPI spec version: 1.0.0
|
OpenAPI spec version: 1.0.0
|
||||||
Contact: apiteam@swagger.io
|
Generated by: https://openapi-generator.tech
|
||||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
@ -18,19 +17,19 @@ import six
|
|||||||
|
|
||||||
|
|
||||||
class Order(object):
|
class Order(object):
|
||||||
"""NOTE: This class is auto generated by the swagger code generator program.
|
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
|
||||||
Do not edit the class manually.
|
Do not edit the class manually.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Attributes:
|
Attributes:
|
||||||
swagger_types (dict): The key is attribute name
|
openapi_types (dict): The key is attribute name
|
||||||
and the value is attribute type.
|
and the value is attribute type.
|
||||||
attribute_map (dict): The key is attribute name
|
attribute_map (dict): The key is attribute name
|
||||||
and the value is json key in definition.
|
and the value is json key in definition.
|
||||||
"""
|
"""
|
||||||
swagger_types = {
|
openapi_types = {
|
||||||
'id': 'int',
|
'id': 'int',
|
||||||
'pet_id': 'int',
|
'pet_id': 'int',
|
||||||
'quantity': 'int',
|
'quantity': 'int',
|
||||||
@ -49,7 +48,7 @@ class Order(object):
|
|||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, id=None, pet_id=None, quantity=None, ship_date=None, status=None, complete=False): # noqa: E501
|
def __init__(self, id=None, pet_id=None, quantity=None, ship_date=None, status=None, complete=False): # noqa: E501
|
||||||
"""Order - a model defined in Swagger""" # noqa: E501
|
"""Order - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
|
||||||
self._id = None
|
self._id = None
|
||||||
self._pet_id = None
|
self._pet_id = None
|
||||||
@ -210,7 +209,7 @@ class Order(object):
|
|||||||
"""Returns the model properties as a dict"""
|
"""Returns the model properties as a dict"""
|
||||||
result = {}
|
result = {}
|
||||||
|
|
||||||
for attr, _ in six.iteritems(self.swagger_types):
|
for attr, _ in six.iteritems(self.openapi_types):
|
||||||
value = getattr(self, attr)
|
value = getattr(self, attr)
|
||||||
if isinstance(value, list):
|
if isinstance(value, list):
|
||||||
result[attr] = list(map(
|
result[attr] = list(map(
|
||||||
|
@ -1,13 +1,12 @@
|
|||||||
# coding: utf-8
|
# coding: utf-8
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Swagger Petstore
|
OpenAPI Petstore
|
||||||
|
|
||||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||||
|
|
||||||
OpenAPI spec version: 1.0.0
|
OpenAPI spec version: 1.0.0
|
||||||
Contact: apiteam@swagger.io
|
Generated by: https://openapi-generator.tech
|
||||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
@ -16,28 +15,24 @@ import re # noqa: F401
|
|||||||
|
|
||||||
import six
|
import six
|
||||||
|
|
||||||
from petstore_api.models.outer_boolean import OuterBoolean # noqa: F401,E501
|
|
||||||
from petstore_api.models.outer_number import OuterNumber # noqa: F401,E501
|
|
||||||
from petstore_api.models.outer_string import OuterString # noqa: F401,E501
|
|
||||||
|
|
||||||
|
|
||||||
class OuterComposite(object):
|
class OuterComposite(object):
|
||||||
"""NOTE: This class is auto generated by the swagger code generator program.
|
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
|
||||||
Do not edit the class manually.
|
Do not edit the class manually.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Attributes:
|
Attributes:
|
||||||
swagger_types (dict): The key is attribute name
|
openapi_types (dict): The key is attribute name
|
||||||
and the value is attribute type.
|
and the value is attribute type.
|
||||||
attribute_map (dict): The key is attribute name
|
attribute_map (dict): The key is attribute name
|
||||||
and the value is json key in definition.
|
and the value is json key in definition.
|
||||||
"""
|
"""
|
||||||
swagger_types = {
|
openapi_types = {
|
||||||
'my_number': 'OuterNumber',
|
'my_number': 'float',
|
||||||
'my_string': 'OuterString',
|
'my_string': 'str',
|
||||||
'my_boolean': 'OuterBoolean'
|
'my_boolean': 'bool'
|
||||||
}
|
}
|
||||||
|
|
||||||
attribute_map = {
|
attribute_map = {
|
||||||
@ -47,7 +42,7 @@ class OuterComposite(object):
|
|||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, my_number=None, my_string=None, my_boolean=None): # noqa: E501
|
def __init__(self, my_number=None, my_string=None, my_boolean=None): # noqa: E501
|
||||||
"""OuterComposite - a model defined in Swagger""" # noqa: E501
|
"""OuterComposite - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
|
||||||
self._my_number = None
|
self._my_number = None
|
||||||
self._my_string = None
|
self._my_string = None
|
||||||
@ -67,7 +62,7 @@ class OuterComposite(object):
|
|||||||
|
|
||||||
|
|
||||||
:return: The my_number of this OuterComposite. # noqa: E501
|
:return: The my_number of this OuterComposite. # noqa: E501
|
||||||
:rtype: OuterNumber
|
:rtype: float
|
||||||
"""
|
"""
|
||||||
return self._my_number
|
return self._my_number
|
||||||
|
|
||||||
@ -77,7 +72,7 @@ class OuterComposite(object):
|
|||||||
|
|
||||||
|
|
||||||
:param my_number: The my_number of this OuterComposite. # noqa: E501
|
:param my_number: The my_number of this OuterComposite. # noqa: E501
|
||||||
:type: OuterNumber
|
:type: float
|
||||||
"""
|
"""
|
||||||
|
|
||||||
self._my_number = my_number
|
self._my_number = my_number
|
||||||
@ -88,7 +83,7 @@ class OuterComposite(object):
|
|||||||
|
|
||||||
|
|
||||||
:return: The my_string of this OuterComposite. # noqa: E501
|
:return: The my_string of this OuterComposite. # noqa: E501
|
||||||
:rtype: OuterString
|
:rtype: str
|
||||||
"""
|
"""
|
||||||
return self._my_string
|
return self._my_string
|
||||||
|
|
||||||
@ -98,7 +93,7 @@ class OuterComposite(object):
|
|||||||
|
|
||||||
|
|
||||||
:param my_string: The my_string of this OuterComposite. # noqa: E501
|
:param my_string: The my_string of this OuterComposite. # noqa: E501
|
||||||
:type: OuterString
|
:type: str
|
||||||
"""
|
"""
|
||||||
|
|
||||||
self._my_string = my_string
|
self._my_string = my_string
|
||||||
@ -109,7 +104,7 @@ class OuterComposite(object):
|
|||||||
|
|
||||||
|
|
||||||
:return: The my_boolean of this OuterComposite. # noqa: E501
|
:return: The my_boolean of this OuterComposite. # noqa: E501
|
||||||
:rtype: OuterBoolean
|
:rtype: bool
|
||||||
"""
|
"""
|
||||||
return self._my_boolean
|
return self._my_boolean
|
||||||
|
|
||||||
@ -119,7 +114,7 @@ class OuterComposite(object):
|
|||||||
|
|
||||||
|
|
||||||
:param my_boolean: The my_boolean of this OuterComposite. # noqa: E501
|
:param my_boolean: The my_boolean of this OuterComposite. # noqa: E501
|
||||||
:type: OuterBoolean
|
:type: bool
|
||||||
"""
|
"""
|
||||||
|
|
||||||
self._my_boolean = my_boolean
|
self._my_boolean = my_boolean
|
||||||
@ -128,7 +123,7 @@ class OuterComposite(object):
|
|||||||
"""Returns the model properties as a dict"""
|
"""Returns the model properties as a dict"""
|
||||||
result = {}
|
result = {}
|
||||||
|
|
||||||
for attr, _ in six.iteritems(self.swagger_types):
|
for attr, _ in six.iteritems(self.openapi_types):
|
||||||
value = getattr(self, attr)
|
value = getattr(self, attr)
|
||||||
if isinstance(value, list):
|
if isinstance(value, list):
|
||||||
result[attr] = list(map(
|
result[attr] = list(map(
|
||||||
|
@ -1,13 +1,12 @@
|
|||||||
# coding: utf-8
|
# coding: utf-8
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Swagger Petstore
|
OpenAPI Petstore
|
||||||
|
|
||||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||||
|
|
||||||
OpenAPI spec version: 1.0.0
|
OpenAPI spec version: 1.0.0
|
||||||
Contact: apiteam@swagger.io
|
Generated by: https://openapi-generator.tech
|
||||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
@ -18,7 +17,7 @@ import six
|
|||||||
|
|
||||||
|
|
||||||
class OuterEnum(object):
|
class OuterEnum(object):
|
||||||
"""NOTE: This class is auto generated by the swagger code generator program.
|
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
|
||||||
Do not edit the class manually.
|
Do not edit the class manually.
|
||||||
"""
|
"""
|
||||||
@ -32,26 +31,26 @@ class OuterEnum(object):
|
|||||||
|
|
||||||
"""
|
"""
|
||||||
Attributes:
|
Attributes:
|
||||||
swagger_types (dict): The key is attribute name
|
openapi_types (dict): The key is attribute name
|
||||||
and the value is attribute type.
|
and the value is attribute type.
|
||||||
attribute_map (dict): The key is attribute name
|
attribute_map (dict): The key is attribute name
|
||||||
and the value is json key in definition.
|
and the value is json key in definition.
|
||||||
"""
|
"""
|
||||||
swagger_types = {
|
openapi_types = {
|
||||||
}
|
}
|
||||||
|
|
||||||
attribute_map = {
|
attribute_map = {
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self): # noqa: E501
|
def __init__(self): # noqa: E501
|
||||||
"""OuterEnum - a model defined in Swagger""" # noqa: E501
|
"""OuterEnum - a model defined in OpenAPI""" # noqa: E501
|
||||||
self.discriminator = None
|
self.discriminator = None
|
||||||
|
|
||||||
def to_dict(self):
|
def to_dict(self):
|
||||||
"""Returns the model properties as a dict"""
|
"""Returns the model properties as a dict"""
|
||||||
result = {}
|
result = {}
|
||||||
|
|
||||||
for attr, _ in six.iteritems(self.swagger_types):
|
for attr, _ in six.iteritems(self.openapi_types):
|
||||||
value = getattr(self, attr)
|
value = getattr(self, attr)
|
||||||
if isinstance(value, list):
|
if isinstance(value, list):
|
||||||
result[attr] = list(map(
|
result[attr] = list(map(
|
||||||
|
@ -1,13 +1,12 @@
|
|||||||
# coding: utf-8
|
# coding: utf-8
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Swagger Petstore
|
OpenAPI Petstore
|
||||||
|
|
||||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||||
|
|
||||||
OpenAPI spec version: 1.0.0
|
OpenAPI spec version: 1.0.0
|
||||||
Contact: apiteam@swagger.io
|
Generated by: https://openapi-generator.tech
|
||||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
@ -21,19 +20,19 @@ from petstore_api.models.tag import Tag # noqa: F401,E501
|
|||||||
|
|
||||||
|
|
||||||
class Pet(object):
|
class Pet(object):
|
||||||
"""NOTE: This class is auto generated by the swagger code generator program.
|
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
|
||||||
Do not edit the class manually.
|
Do not edit the class manually.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Attributes:
|
Attributes:
|
||||||
swagger_types (dict): The key is attribute name
|
openapi_types (dict): The key is attribute name
|
||||||
and the value is attribute type.
|
and the value is attribute type.
|
||||||
attribute_map (dict): The key is attribute name
|
attribute_map (dict): The key is attribute name
|
||||||
and the value is json key in definition.
|
and the value is json key in definition.
|
||||||
"""
|
"""
|
||||||
swagger_types = {
|
openapi_types = {
|
||||||
'id': 'int',
|
'id': 'int',
|
||||||
'category': 'Category',
|
'category': 'Category',
|
||||||
'name': 'str',
|
'name': 'str',
|
||||||
@ -52,7 +51,7 @@ class Pet(object):
|
|||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, id=None, category=None, name=None, photo_urls=None, tags=None, status=None): # noqa: E501
|
def __init__(self, id=None, category=None, name=None, photo_urls=None, tags=None, status=None): # noqa: E501
|
||||||
"""Pet - a model defined in Swagger""" # noqa: E501
|
"""Pet - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
|
||||||
self._id = None
|
self._id = None
|
||||||
self._category = None
|
self._category = None
|
||||||
@ -215,7 +214,7 @@ class Pet(object):
|
|||||||
"""Returns the model properties as a dict"""
|
"""Returns the model properties as a dict"""
|
||||||
result = {}
|
result = {}
|
||||||
|
|
||||||
for attr, _ in six.iteritems(self.swagger_types):
|
for attr, _ in six.iteritems(self.openapi_types):
|
||||||
value = getattr(self, attr)
|
value = getattr(self, attr)
|
||||||
if isinstance(value, list):
|
if isinstance(value, list):
|
||||||
result[attr] = list(map(
|
result[attr] = list(map(
|
||||||
|
@ -1,13 +1,12 @@
|
|||||||
# coding: utf-8
|
# coding: utf-8
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Swagger Petstore
|
OpenAPI Petstore
|
||||||
|
|
||||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||||
|
|
||||||
OpenAPI spec version: 1.0.0
|
OpenAPI spec version: 1.0.0
|
||||||
Contact: apiteam@swagger.io
|
Generated by: https://openapi-generator.tech
|
||||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
@ -18,19 +17,19 @@ import six
|
|||||||
|
|
||||||
|
|
||||||
class ReadOnlyFirst(object):
|
class ReadOnlyFirst(object):
|
||||||
"""NOTE: This class is auto generated by the swagger code generator program.
|
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
|
||||||
Do not edit the class manually.
|
Do not edit the class manually.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Attributes:
|
Attributes:
|
||||||
swagger_types (dict): The key is attribute name
|
openapi_types (dict): The key is attribute name
|
||||||
and the value is attribute type.
|
and the value is attribute type.
|
||||||
attribute_map (dict): The key is attribute name
|
attribute_map (dict): The key is attribute name
|
||||||
and the value is json key in definition.
|
and the value is json key in definition.
|
||||||
"""
|
"""
|
||||||
swagger_types = {
|
openapi_types = {
|
||||||
'bar': 'str',
|
'bar': 'str',
|
||||||
'baz': 'str'
|
'baz': 'str'
|
||||||
}
|
}
|
||||||
@ -41,7 +40,7 @@ class ReadOnlyFirst(object):
|
|||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, bar=None, baz=None): # noqa: E501
|
def __init__(self, bar=None, baz=None): # noqa: E501
|
||||||
"""ReadOnlyFirst - a model defined in Swagger""" # noqa: E501
|
"""ReadOnlyFirst - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
|
||||||
self._bar = None
|
self._bar = None
|
||||||
self._baz = None
|
self._baz = None
|
||||||
@ -98,7 +97,7 @@ class ReadOnlyFirst(object):
|
|||||||
"""Returns the model properties as a dict"""
|
"""Returns the model properties as a dict"""
|
||||||
result = {}
|
result = {}
|
||||||
|
|
||||||
for attr, _ in six.iteritems(self.swagger_types):
|
for attr, _ in six.iteritems(self.openapi_types):
|
||||||
value = getattr(self, attr)
|
value = getattr(self, attr)
|
||||||
if isinstance(value, list):
|
if isinstance(value, list):
|
||||||
result[attr] = list(map(
|
result[attr] = list(map(
|
||||||
|
@ -1,13 +1,12 @@
|
|||||||
# coding: utf-8
|
# coding: utf-8
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Swagger Petstore
|
OpenAPI Petstore
|
||||||
|
|
||||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||||
|
|
||||||
OpenAPI spec version: 1.0.0
|
OpenAPI spec version: 1.0.0
|
||||||
Contact: apiteam@swagger.io
|
Generated by: https://openapi-generator.tech
|
||||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
@ -18,19 +17,19 @@ import six
|
|||||||
|
|
||||||
|
|
||||||
class SpecialModelName(object):
|
class SpecialModelName(object):
|
||||||
"""NOTE: This class is auto generated by the swagger code generator program.
|
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
|
||||||
Do not edit the class manually.
|
Do not edit the class manually.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Attributes:
|
Attributes:
|
||||||
swagger_types (dict): The key is attribute name
|
openapi_types (dict): The key is attribute name
|
||||||
and the value is attribute type.
|
and the value is attribute type.
|
||||||
attribute_map (dict): The key is attribute name
|
attribute_map (dict): The key is attribute name
|
||||||
and the value is json key in definition.
|
and the value is json key in definition.
|
||||||
"""
|
"""
|
||||||
swagger_types = {
|
openapi_types = {
|
||||||
'special_property_name': 'int'
|
'special_property_name': 'int'
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -39,7 +38,7 @@ class SpecialModelName(object):
|
|||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, special_property_name=None): # noqa: E501
|
def __init__(self, special_property_name=None): # noqa: E501
|
||||||
"""SpecialModelName - a model defined in Swagger""" # noqa: E501
|
"""SpecialModelName - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
|
||||||
self._special_property_name = None
|
self._special_property_name = None
|
||||||
self.discriminator = None
|
self.discriminator = None
|
||||||
@ -72,7 +71,7 @@ class SpecialModelName(object):
|
|||||||
"""Returns the model properties as a dict"""
|
"""Returns the model properties as a dict"""
|
||||||
result = {}
|
result = {}
|
||||||
|
|
||||||
for attr, _ in six.iteritems(self.swagger_types):
|
for attr, _ in six.iteritems(self.openapi_types):
|
||||||
value = getattr(self, attr)
|
value = getattr(self, attr)
|
||||||
if isinstance(value, list):
|
if isinstance(value, list):
|
||||||
result[attr] = list(map(
|
result[attr] = list(map(
|
||||||
|
@ -1,13 +1,12 @@
|
|||||||
# coding: utf-8
|
# coding: utf-8
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Swagger Petstore
|
OpenAPI Petstore
|
||||||
|
|
||||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||||
|
|
||||||
OpenAPI spec version: 1.0.0
|
OpenAPI spec version: 1.0.0
|
||||||
Contact: apiteam@swagger.io
|
Generated by: https://openapi-generator.tech
|
||||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
@ -18,19 +17,19 @@ import six
|
|||||||
|
|
||||||
|
|
||||||
class Tag(object):
|
class Tag(object):
|
||||||
"""NOTE: This class is auto generated by the swagger code generator program.
|
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
|
||||||
Do not edit the class manually.
|
Do not edit the class manually.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Attributes:
|
Attributes:
|
||||||
swagger_types (dict): The key is attribute name
|
openapi_types (dict): The key is attribute name
|
||||||
and the value is attribute type.
|
and the value is attribute type.
|
||||||
attribute_map (dict): The key is attribute name
|
attribute_map (dict): The key is attribute name
|
||||||
and the value is json key in definition.
|
and the value is json key in definition.
|
||||||
"""
|
"""
|
||||||
swagger_types = {
|
openapi_types = {
|
||||||
'id': 'int',
|
'id': 'int',
|
||||||
'name': 'str'
|
'name': 'str'
|
||||||
}
|
}
|
||||||
@ -41,7 +40,7 @@ class Tag(object):
|
|||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, id=None, name=None): # noqa: E501
|
def __init__(self, id=None, name=None): # noqa: E501
|
||||||
"""Tag - a model defined in Swagger""" # noqa: E501
|
"""Tag - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
|
||||||
self._id = None
|
self._id = None
|
||||||
self._name = None
|
self._name = None
|
||||||
@ -98,7 +97,7 @@ class Tag(object):
|
|||||||
"""Returns the model properties as a dict"""
|
"""Returns the model properties as a dict"""
|
||||||
result = {}
|
result = {}
|
||||||
|
|
||||||
for attr, _ in six.iteritems(self.swagger_types):
|
for attr, _ in six.iteritems(self.openapi_types):
|
||||||
value = getattr(self, attr)
|
value = getattr(self, attr)
|
||||||
if isinstance(value, list):
|
if isinstance(value, list):
|
||||||
result[attr] = list(map(
|
result[attr] = list(map(
|
||||||
|
@ -1,13 +1,12 @@
|
|||||||
# coding: utf-8
|
# coding: utf-8
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Swagger Petstore
|
OpenAPI Petstore
|
||||||
|
|
||||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||||
|
|
||||||
OpenAPI spec version: 1.0.0
|
OpenAPI spec version: 1.0.0
|
||||||
Contact: apiteam@swagger.io
|
Generated by: https://openapi-generator.tech
|
||||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
@ -18,19 +17,19 @@ import six
|
|||||||
|
|
||||||
|
|
||||||
class User(object):
|
class User(object):
|
||||||
"""NOTE: This class is auto generated by the swagger code generator program.
|
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
|
||||||
Do not edit the class manually.
|
Do not edit the class manually.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Attributes:
|
Attributes:
|
||||||
swagger_types (dict): The key is attribute name
|
openapi_types (dict): The key is attribute name
|
||||||
and the value is attribute type.
|
and the value is attribute type.
|
||||||
attribute_map (dict): The key is attribute name
|
attribute_map (dict): The key is attribute name
|
||||||
and the value is json key in definition.
|
and the value is json key in definition.
|
||||||
"""
|
"""
|
||||||
swagger_types = {
|
openapi_types = {
|
||||||
'id': 'int',
|
'id': 'int',
|
||||||
'username': 'str',
|
'username': 'str',
|
||||||
'first_name': 'str',
|
'first_name': 'str',
|
||||||
@ -53,7 +52,7 @@ class User(object):
|
|||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, id=None, username=None, first_name=None, last_name=None, email=None, password=None, phone=None, user_status=None): # noqa: E501
|
def __init__(self, id=None, username=None, first_name=None, last_name=None, email=None, password=None, phone=None, user_status=None): # noqa: E501
|
||||||
"""User - a model defined in Swagger""" # noqa: E501
|
"""User - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
|
||||||
self._id = None
|
self._id = None
|
||||||
self._username = None
|
self._username = None
|
||||||
@ -256,7 +255,7 @@ class User(object):
|
|||||||
"""Returns the model properties as a dict"""
|
"""Returns the model properties as a dict"""
|
||||||
result = {}
|
result = {}
|
||||||
|
|
||||||
for attr, _ in six.iteritems(self.swagger_types):
|
for attr, _ in six.iteritems(self.openapi_types):
|
||||||
value = getattr(self, attr)
|
value = getattr(self, attr)
|
||||||
if isinstance(value, list):
|
if isinstance(value, list):
|
||||||
result[attr] = list(map(
|
result[attr] = list(map(
|
||||||
|
@ -1,13 +1,12 @@
|
|||||||
# coding: utf-8
|
# coding: utf-8
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Swagger Petstore
|
OpenAPI Petstore
|
||||||
|
|
||||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||||
|
|
||||||
OpenAPI spec version: 1.0.0
|
OpenAPI spec version: 1.0.0
|
||||||
Contact: apiteam@swagger.io
|
Generated by: https://openapi-generator.tech
|
||||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,13 +1,12 @@
|
|||||||
# coding: utf-8
|
# coding: utf-8
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Swagger Petstore
|
OpenAPI Petstore
|
||||||
|
|
||||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||||
|
|
||||||
OpenAPI spec version: 1.0.0
|
OpenAPI spec version: 1.0.0
|
||||||
Contact: apiteam@swagger.io
|
Generated by: https://openapi-generator.tech
|
||||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
@ -28,10 +27,10 @@ REQUIRES.append("aiohttp")
|
|||||||
setup(
|
setup(
|
||||||
name=NAME,
|
name=NAME,
|
||||||
version=VERSION,
|
version=VERSION,
|
||||||
description="Swagger Petstore",
|
description="OpenAPI Petstore",
|
||||||
author_email="apiteam@swagger.io",
|
author_email="",
|
||||||
url="",
|
url="",
|
||||||
keywords=["Swagger", "Swagger Petstore"],
|
keywords=["OpenAPI", "OpenAPI-Generator", "OpenAPI Petstore"],
|
||||||
install_requires=REQUIRES,
|
install_requires=REQUIRES,
|
||||||
packages=find_packages(),
|
packages=find_packages(),
|
||||||
include_package_data=True,
|
include_package_data=True,
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
# petstore-api
|
# petstore-api
|
||||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
|
||||||
This Python package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
|
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
||||||
|
|
||||||
- API version: 1.0.0
|
- API version: 1.0.0
|
||||||
- Package version: 1.0.0
|
- Package version: 1.0.0
|
||||||
@ -50,8 +50,9 @@ import time
|
|||||||
import petstore_api
|
import petstore_api
|
||||||
from petstore_api.rest import ApiException
|
from petstore_api.rest import ApiException
|
||||||
from pprint import pprint
|
from pprint import pprint
|
||||||
|
|
||||||
# create an instance of the API class
|
# create an instance of the API class
|
||||||
api_instance = petstore_api.AnotherFakeApi()
|
api_instance = petstore_api.AnotherFakeApi(petstore_api.ApiClient(configuration))
|
||||||
client = petstore_api.Client() # Client | client model
|
client = petstore_api.Client() # Client | client model
|
||||||
|
|
||||||
try:
|
try:
|
||||||
@ -131,11 +132,8 @@ Class | Method | HTTP request | Description
|
|||||||
- [Name](docs/Name.md)
|
- [Name](docs/Name.md)
|
||||||
- [NumberOnly](docs/NumberOnly.md)
|
- [NumberOnly](docs/NumberOnly.md)
|
||||||
- [Order](docs/Order.md)
|
- [Order](docs/Order.md)
|
||||||
- [OuterBoolean](docs/OuterBoolean.md)
|
|
||||||
- [OuterComposite](docs/OuterComposite.md)
|
- [OuterComposite](docs/OuterComposite.md)
|
||||||
- [OuterEnum](docs/OuterEnum.md)
|
- [OuterEnum](docs/OuterEnum.md)
|
||||||
- [OuterNumber](docs/OuterNumber.md)
|
|
||||||
- [OuterString](docs/OuterString.md)
|
|
||||||
- [Pet](docs/Pet.md)
|
- [Pet](docs/Pet.md)
|
||||||
- [ReadOnlyFirst](docs/ReadOnlyFirst.md)
|
- [ReadOnlyFirst](docs/ReadOnlyFirst.md)
|
||||||
- [SpecialModelName](docs/SpecialModelName.md)
|
- [SpecialModelName](docs/SpecialModelName.md)
|
||||||
@ -174,5 +172,5 @@ Class | Method | HTTP request | Description
|
|||||||
|
|
||||||
## Author
|
## Author
|
||||||
|
|
||||||
apiteam@swagger.io
|
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@ Method | HTTP request | Description
|
|||||||
|
|
||||||
|
|
||||||
# **fake_outer_boolean_serialize**
|
# **fake_outer_boolean_serialize**
|
||||||
> OuterBoolean fake_outer_boolean_serialize(boolean_post_body=boolean_post_body)
|
> bool fake_outer_boolean_serialize(body=body)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -33,10 +33,10 @@ from pprint import pprint
|
|||||||
|
|
||||||
# create an instance of the API class
|
# create an instance of the API class
|
||||||
api_instance = petstore_api.FakeApi()
|
api_instance = petstore_api.FakeApi()
|
||||||
boolean_post_body = True # bool | Input boolean as post body (optional)
|
body = True # bool | Input boolean as post body (optional)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
api_response = api_instance.fake_outer_boolean_serialize(boolean_post_body=boolean_post_body)
|
api_response = api_instance.fake_outer_boolean_serialize(body=body)
|
||||||
pprint(api_response)
|
pprint(api_response)
|
||||||
except ApiException as e:
|
except ApiException as e:
|
||||||
print("Exception when calling FakeApi->fake_outer_boolean_serialize: %s\n" % e)
|
print("Exception when calling FakeApi->fake_outer_boolean_serialize: %s\n" % e)
|
||||||
@ -46,11 +46,11 @@ except ApiException as e:
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------- | ------------- | ------------- | -------------
|
------------- | ------------- | ------------- | -------------
|
||||||
**boolean_post_body** | **bool**| Input boolean as post body | [optional]
|
**body** | **bool**| Input boolean as post body | [optional]
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
[**OuterBoolean**](OuterBoolean.md)
|
**bool**
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
@ -111,7 +111,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)
|
[[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)
|
||||||
|
|
||||||
# **fake_outer_number_serialize**
|
# **fake_outer_number_serialize**
|
||||||
> OuterNumber fake_outer_number_serialize(body=body)
|
> float fake_outer_number_serialize(body=body)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -144,7 +144,7 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
[**OuterNumber**](OuterNumber.md)
|
**float**
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
@ -158,7 +158,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)
|
[[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)
|
||||||
|
|
||||||
# **fake_outer_string_serialize**
|
# **fake_outer_string_serialize**
|
||||||
> OuterString fake_outer_string_serialize(body=body)
|
> str fake_outer_string_serialize(body=body)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -191,7 +191,7 @@ Name | Type | Description | Notes
|
|||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
[**OuterString**](OuterString.md)
|
**str**
|
||||||
|
|
||||||
### Authorization
|
### Authorization
|
||||||
|
|
||||||
@ -394,13 +394,13 @@ from pprint import pprint
|
|||||||
# create an instance of the API class
|
# create an instance of the API class
|
||||||
api_instance = petstore_api.FakeApi()
|
api_instance = petstore_api.FakeApi()
|
||||||
enum_header_string_array = ['enum_header_string_array_example'] # list[str] | Header parameter enum test (string array) (optional)
|
enum_header_string_array = ['enum_header_string_array_example'] # list[str] | Header parameter enum test (string array) (optional)
|
||||||
enum_header_string = '-efg' # str | Header parameter enum test (string) (optional) (default to -efg)
|
enum_header_string = '-efg' # str | Header parameter enum test (string) (optional) (default to '-efg')
|
||||||
enum_query_string_array = ['enum_query_string_array_example'] # list[str] | Query parameter enum test (string array) (optional)
|
enum_query_string_array = ['enum_query_string_array_example'] # list[str] | Query parameter enum test (string array) (optional)
|
||||||
enum_query_string = '-efg' # str | Query parameter enum test (string) (optional) (default to -efg)
|
enum_query_string = '-efg' # str | Query parameter enum test (string) (optional) (default to '-efg')
|
||||||
enum_query_integer = 56 # int | Query parameter enum test (double) (optional)
|
enum_query_integer = 56 # int | Query parameter enum test (double) (optional)
|
||||||
enum_query_double = 3.4 # float | Query parameter enum test (double) (optional)
|
enum_query_double = 3.4 # float | Query parameter enum test (double) (optional)
|
||||||
enum_form_string_array = NULL # list[str] | Form parameter enum test (string array) (optional)
|
enum_form_string_array = '$' # list[str] | Form parameter enum test (string array) (optional) (default to '$')
|
||||||
enum_form_string = 'enum_form_string_example' # str | Form parameter enum test (string) (optional)
|
enum_form_string = '-efg' # str | Form parameter enum test (string) (optional) (default to '-efg')
|
||||||
|
|
||||||
try:
|
try:
|
||||||
# To test enum parameters
|
# To test enum parameters
|
||||||
@ -414,13 +414,13 @@ except ApiException as e:
|
|||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------- | ------------- | ------------- | -------------
|
------------- | ------------- | ------------- | -------------
|
||||||
**enum_header_string_array** | [**list[str]**](str.md)| Header parameter enum test (string array) | [optional]
|
**enum_header_string_array** | [**list[str]**](str.md)| Header parameter enum test (string array) | [optional]
|
||||||
**enum_header_string** | **str**| Header parameter enum test (string) | [optional] [default to -efg]
|
**enum_header_string** | **str**| Header parameter enum test (string) | [optional] [default to '-efg']
|
||||||
**enum_query_string_array** | [**list[str]**](str.md)| Query parameter enum test (string array) | [optional]
|
**enum_query_string_array** | [**list[str]**](str.md)| Query parameter enum test (string array) | [optional]
|
||||||
**enum_query_string** | **str**| Query parameter enum test (string) | [optional] [default to -efg]
|
**enum_query_string** | **str**| Query parameter enum test (string) | [optional] [default to '-efg']
|
||||||
**enum_query_integer** | **int**| Query parameter enum test (double) | [optional]
|
**enum_query_integer** | **int**| Query parameter enum test (double) | [optional]
|
||||||
**enum_query_double** | **float**| Query parameter enum test (double) | [optional]
|
**enum_query_double** | **float**| Query parameter enum test (double) | [optional]
|
||||||
**enum_form_string_array** | [**list[str]**](list.md)| Form parameter enum test (string array) | [optional]
|
**enum_form_string_array** | **list[str]**| Form parameter enum test (string array) | [optional] [default to '$']
|
||||||
**enum_form_string** | **str**| Form parameter enum test (string) | [optional]
|
**enum_form_string** | **str**| Form parameter enum test (string) | [optional] [default to '-efg']
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
@ -452,7 +452,7 @@ from pprint import pprint
|
|||||||
|
|
||||||
# create an instance of the API class
|
# create an instance of the API class
|
||||||
api_instance = petstore_api.FakeApi()
|
api_instance = petstore_api.FakeApi()
|
||||||
request_body = {'key': 'request_body_example'} # str | request body
|
request_body = {'key': 'request_body_example'} # dict(str, str) | request body
|
||||||
|
|
||||||
try:
|
try:
|
||||||
# test inline additionalProperties
|
# test inline additionalProperties
|
||||||
@ -465,7 +465,7 @@ except ApiException as e:
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------- | ------------- | ------------- | -------------
|
------------- | ------------- | ------------- | -------------
|
||||||
**request_body** | [**str**](str.md)| request body |
|
**request_body** | [**dict(str, str)**](str.md)| request body |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
|
@ -11,7 +11,7 @@ Name | Type | Description | Notes
|
|||||||
**double** | **float** | | [optional]
|
**double** | **float** | | [optional]
|
||||||
**string** | **str** | | [optional]
|
**string** | **str** | | [optional]
|
||||||
**byte** | **str** | |
|
**byte** | **str** | |
|
||||||
**binary** | [**file**](file.md) | | [optional]
|
**binary** | **file** | | [optional]
|
||||||
**date** | **date** | |
|
**date** | **date** | |
|
||||||
**date_time** | **datetime** | | [optional]
|
**date_time** | **datetime** | | [optional]
|
||||||
**uuid** | **str** | | [optional]
|
**uuid** | **str** | | [optional]
|
||||||
|
@ -3,9 +3,9 @@
|
|||||||
## Properties
|
## Properties
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**my_number** | [**OuterNumber**](OuterNumber.md) | | [optional]
|
**my_number** | **float** | | [optional]
|
||||||
**my_string** | [**OuterString**](OuterString.md) | | [optional]
|
**my_string** | **str** | | [optional]
|
||||||
**my_boolean** | [**OuterBoolean**](OuterBoolean.md) | | [optional]
|
**my_boolean** | **bool** | | [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)
|
[[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,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
|
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
|
||||||
#
|
#
|
||||||
# Usage example: /bin/sh ./git_push.sh wing328 swagger-petstore-perl "minor update"
|
# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update"
|
||||||
|
|
||||||
git_user_id=$1
|
git_user_id=$1
|
||||||
git_repo_id=$2
|
git_repo_id=$2
|
||||||
|
@ -3,13 +3,12 @@
|
|||||||
# flake8: noqa
|
# flake8: noqa
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Swagger Petstore
|
OpenAPI Petstore
|
||||||
|
|
||||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||||
|
|
||||||
OpenAPI spec version: 1.0.0
|
OpenAPI spec version: 1.0.0
|
||||||
Contact: apiteam@swagger.io
|
Generated by: https://openapi-generator.tech
|
||||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
@ -53,11 +52,8 @@ from petstore_api.models.model_return import ModelReturn
|
|||||||
from petstore_api.models.name import Name
|
from petstore_api.models.name import Name
|
||||||
from petstore_api.models.number_only import NumberOnly
|
from petstore_api.models.number_only import NumberOnly
|
||||||
from petstore_api.models.order import Order
|
from petstore_api.models.order import Order
|
||||||
from petstore_api.models.outer_boolean import OuterBoolean
|
|
||||||
from petstore_api.models.outer_composite import OuterComposite
|
from petstore_api.models.outer_composite import OuterComposite
|
||||||
from petstore_api.models.outer_enum import OuterEnum
|
from petstore_api.models.outer_enum import OuterEnum
|
||||||
from petstore_api.models.outer_number import OuterNumber
|
|
||||||
from petstore_api.models.outer_string import OuterString
|
|
||||||
from petstore_api.models.pet import Pet
|
from petstore_api.models.pet import Pet
|
||||||
from petstore_api.models.read_only_first import ReadOnlyFirst
|
from petstore_api.models.read_only_first import ReadOnlyFirst
|
||||||
from petstore_api.models.special_model_name import SpecialModelName
|
from petstore_api.models.special_model_name import SpecialModelName
|
||||||
|
@ -1,13 +1,12 @@
|
|||||||
# coding: utf-8
|
# coding: utf-8
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Swagger Petstore
|
OpenAPI Petstore
|
||||||
|
|
||||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||||
|
|
||||||
OpenAPI spec version: 1.0.0
|
OpenAPI spec version: 1.0.0
|
||||||
Contact: apiteam@swagger.io
|
Generated by: https://openapi-generator.tech
|
||||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
@ -22,10 +21,9 @@ from petstore_api.api_client import ApiClient
|
|||||||
|
|
||||||
|
|
||||||
class AnotherFakeApi(object):
|
class AnotherFakeApi(object):
|
||||||
"""NOTE: This class is auto generated by the swagger code generator program.
|
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
|
||||||
Do not edit the class manually.
|
Do not edit the class manually.
|
||||||
Ref: https://github.com/swagger-api/swagger-codegen
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self, api_client=None):
|
def __init__(self, api_client=None):
|
||||||
|
@ -1,13 +1,12 @@
|
|||||||
# coding: utf-8
|
# coding: utf-8
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Swagger Petstore
|
OpenAPI Petstore
|
||||||
|
|
||||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||||
|
|
||||||
OpenAPI spec version: 1.0.0
|
OpenAPI spec version: 1.0.0
|
||||||
Contact: apiteam@swagger.io
|
Generated by: https://openapi-generator.tech
|
||||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
@ -22,10 +21,9 @@ from petstore_api.api_client import ApiClient
|
|||||||
|
|
||||||
|
|
||||||
class FakeApi(object):
|
class FakeApi(object):
|
||||||
"""NOTE: This class is auto generated by the swagger code generator program.
|
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
|
||||||
Do not edit the class manually.
|
Do not edit the class manually.
|
||||||
Ref: https://github.com/swagger-api/swagger-codegen
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self, api_client=None):
|
def __init__(self, api_client=None):
|
||||||
@ -43,8 +41,8 @@ class FakeApi(object):
|
|||||||
>>> result = thread.get()
|
>>> result = thread.get()
|
||||||
|
|
||||||
:param async bool
|
:param async bool
|
||||||
:param bool boolean_post_body: Input boolean as post body
|
:param bool body: Input boolean as post body
|
||||||
:return: OuterBoolean
|
:return: bool
|
||||||
If the method is called asynchronously,
|
If the method is called asynchronously,
|
||||||
returns the request thread.
|
returns the request thread.
|
||||||
"""
|
"""
|
||||||
@ -65,13 +63,13 @@ class FakeApi(object):
|
|||||||
>>> result = thread.get()
|
>>> result = thread.get()
|
||||||
|
|
||||||
:param async bool
|
:param async bool
|
||||||
:param bool boolean_post_body: Input boolean as post body
|
:param bool body: Input boolean as post body
|
||||||
:return: OuterBoolean
|
:return: bool
|
||||||
If the method is called asynchronously,
|
If the method is called asynchronously,
|
||||||
returns the request thread.
|
returns the request thread.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
all_params = ['boolean_post_body'] # noqa: E501
|
all_params = ['body'] # noqa: E501
|
||||||
all_params.append('async')
|
all_params.append('async')
|
||||||
all_params.append('_return_http_data_only')
|
all_params.append('_return_http_data_only')
|
||||||
all_params.append('_preload_content')
|
all_params.append('_preload_content')
|
||||||
@ -99,8 +97,8 @@ class FakeApi(object):
|
|||||||
local_var_files = {}
|
local_var_files = {}
|
||||||
|
|
||||||
body_params = None
|
body_params = None
|
||||||
if 'boolean_post_body' in params:
|
if 'body' in params:
|
||||||
body_params = params['boolean_post_body']
|
body_params = params['body']
|
||||||
# HTTP header `Accept`
|
# HTTP header `Accept`
|
||||||
header_params['Accept'] = self.api_client.select_header_accept(
|
header_params['Accept'] = self.api_client.select_header_accept(
|
||||||
['*/*']) # noqa: E501
|
['*/*']) # noqa: E501
|
||||||
@ -116,7 +114,7 @@ class FakeApi(object):
|
|||||||
body=body_params,
|
body=body_params,
|
||||||
post_params=form_params,
|
post_params=form_params,
|
||||||
files=local_var_files,
|
files=local_var_files,
|
||||||
response_type='OuterBoolean', # noqa: E501
|
response_type='bool', # noqa: E501
|
||||||
auth_settings=auth_settings,
|
auth_settings=auth_settings,
|
||||||
async=params.get('async'),
|
async=params.get('async'),
|
||||||
_return_http_data_only=params.get('_return_http_data_only'),
|
_return_http_data_only=params.get('_return_http_data_only'),
|
||||||
@ -226,7 +224,7 @@ class FakeApi(object):
|
|||||||
|
|
||||||
:param async bool
|
:param async bool
|
||||||
:param float body: Input number as post body
|
:param float body: Input number as post body
|
||||||
:return: OuterNumber
|
:return: float
|
||||||
If the method is called asynchronously,
|
If the method is called asynchronously,
|
||||||
returns the request thread.
|
returns the request thread.
|
||||||
"""
|
"""
|
||||||
@ -248,7 +246,7 @@ class FakeApi(object):
|
|||||||
|
|
||||||
:param async bool
|
:param async bool
|
||||||
:param float body: Input number as post body
|
:param float body: Input number as post body
|
||||||
:return: OuterNumber
|
:return: float
|
||||||
If the method is called asynchronously,
|
If the method is called asynchronously,
|
||||||
returns the request thread.
|
returns the request thread.
|
||||||
"""
|
"""
|
||||||
@ -298,7 +296,7 @@ class FakeApi(object):
|
|||||||
body=body_params,
|
body=body_params,
|
||||||
post_params=form_params,
|
post_params=form_params,
|
||||||
files=local_var_files,
|
files=local_var_files,
|
||||||
response_type='OuterNumber', # noqa: E501
|
response_type='float', # noqa: E501
|
||||||
auth_settings=auth_settings,
|
auth_settings=auth_settings,
|
||||||
async=params.get('async'),
|
async=params.get('async'),
|
||||||
_return_http_data_only=params.get('_return_http_data_only'),
|
_return_http_data_only=params.get('_return_http_data_only'),
|
||||||
@ -317,7 +315,7 @@ class FakeApi(object):
|
|||||||
|
|
||||||
:param async bool
|
:param async bool
|
||||||
:param str body: Input string as post body
|
:param str body: Input string as post body
|
||||||
:return: OuterString
|
:return: str
|
||||||
If the method is called asynchronously,
|
If the method is called asynchronously,
|
||||||
returns the request thread.
|
returns the request thread.
|
||||||
"""
|
"""
|
||||||
@ -339,7 +337,7 @@ class FakeApi(object):
|
|||||||
|
|
||||||
:param async bool
|
:param async bool
|
||||||
:param str body: Input string as post body
|
:param str body: Input string as post body
|
||||||
:return: OuterString
|
:return: str
|
||||||
If the method is called asynchronously,
|
If the method is called asynchronously,
|
||||||
returns the request thread.
|
returns the request thread.
|
||||||
"""
|
"""
|
||||||
@ -389,7 +387,7 @@ class FakeApi(object):
|
|||||||
body=body_params,
|
body=body_params,
|
||||||
post_params=form_params,
|
post_params=form_params,
|
||||||
files=local_var_files,
|
files=local_var_files,
|
||||||
response_type='OuterString', # noqa: E501
|
response_type='str', # noqa: E501
|
||||||
auth_settings=auth_settings,
|
auth_settings=auth_settings,
|
||||||
async=params.get('async'),
|
async=params.get('async'),
|
||||||
_return_http_data_only=params.get('_return_http_data_only'),
|
_return_http_data_only=params.get('_return_http_data_only'),
|
||||||
@ -701,7 +699,7 @@ class FakeApi(object):
|
|||||||
raise ValueError("Invalid value for parameter `double` when calling `test_endpoint_parameters`, must be a value less than or equal to `123.4`") # noqa: E501
|
raise ValueError("Invalid value for parameter `double` when calling `test_endpoint_parameters`, must be a value less than or equal to `123.4`") # noqa: E501
|
||||||
if 'double' in params and params['double'] < 67.8: # noqa: E501
|
if 'double' in params and params['double'] < 67.8: # noqa: E501
|
||||||
raise ValueError("Invalid value for parameter `double` when calling `test_endpoint_parameters`, must be a value greater than or equal to `67.8`") # noqa: E501
|
raise ValueError("Invalid value for parameter `double` when calling `test_endpoint_parameters`, must be a value greater than or equal to `67.8`") # noqa: E501
|
||||||
if 'pattern_without_delimiter' in params and not re.search('', params['pattern_without_delimiter']): # noqa: E501
|
if 'pattern_without_delimiter' in params and not re.search('^[A-Z].*', params['pattern_without_delimiter']): # noqa: E501
|
||||||
raise ValueError("Invalid value for parameter `pattern_without_delimiter` when calling `test_endpoint_parameters`, must conform to the pattern `/^[A-Z].*/`") # noqa: E501
|
raise ValueError("Invalid value for parameter `pattern_without_delimiter` when calling `test_endpoint_parameters`, must conform to the pattern `/^[A-Z].*/`") # noqa: E501
|
||||||
if 'integer' in params and params['integer'] > 100: # noqa: E501
|
if 'integer' in params and params['integer'] > 100: # noqa: E501
|
||||||
raise ValueError("Invalid value for parameter `integer` when calling `test_endpoint_parameters`, must be a value less than or equal to `100`") # noqa: E501
|
raise ValueError("Invalid value for parameter `integer` when calling `test_endpoint_parameters`, must be a value less than or equal to `100`") # noqa: E501
|
||||||
@ -713,7 +711,7 @@ class FakeApi(object):
|
|||||||
raise ValueError("Invalid value for parameter `int32` when calling `test_endpoint_parameters`, must be a value greater than or equal to `20`") # noqa: E501
|
raise ValueError("Invalid value for parameter `int32` when calling `test_endpoint_parameters`, must be a value greater than or equal to `20`") # noqa: E501
|
||||||
if 'float' in params and params['float'] > 987.6: # noqa: E501
|
if 'float' in params and params['float'] > 987.6: # noqa: E501
|
||||||
raise ValueError("Invalid value for parameter `float` when calling `test_endpoint_parameters`, must be a value less than or equal to `987.6`") # noqa: E501
|
raise ValueError("Invalid value for parameter `float` when calling `test_endpoint_parameters`, must be a value less than or equal to `987.6`") # noqa: E501
|
||||||
if 'string' in params and not re.search('', params['string']): # noqa: E501
|
if 'string' in params and not re.search('[a-z]', params['string'], flags=re.IGNORECASE): # noqa: E501
|
||||||
raise ValueError("Invalid value for parameter `string` when calling `test_endpoint_parameters`, must conform to the pattern `/[a-z]/i`") # noqa: E501
|
raise ValueError("Invalid value for parameter `string` when calling `test_endpoint_parameters`, must conform to the pattern `/[a-z]/i`") # noqa: E501
|
||||||
if ('password' in params and
|
if ('password' in params and
|
||||||
len(params['password']) > 64):
|
len(params['password']) > 64):
|
||||||
@ -859,7 +857,7 @@ class FakeApi(object):
|
|||||||
query_params = []
|
query_params = []
|
||||||
if 'enum_query_string_array' in params:
|
if 'enum_query_string_array' in params:
|
||||||
query_params.append(('enum_query_string_array', params['enum_query_string_array'])) # noqa: E501
|
query_params.append(('enum_query_string_array', params['enum_query_string_array'])) # noqa: E501
|
||||||
collection_formats['enum_query_string_array'] = '' # noqa: E501
|
collection_formats['enum_query_string_array'] = 'csv' # noqa: E501
|
||||||
if 'enum_query_string' in params:
|
if 'enum_query_string' in params:
|
||||||
query_params.append(('enum_query_string', params['enum_query_string'])) # noqa: E501
|
query_params.append(('enum_query_string', params['enum_query_string'])) # noqa: E501
|
||||||
if 'enum_query_integer' in params:
|
if 'enum_query_integer' in params:
|
||||||
@ -870,7 +868,7 @@ class FakeApi(object):
|
|||||||
header_params = {}
|
header_params = {}
|
||||||
if 'enum_header_string_array' in params:
|
if 'enum_header_string_array' in params:
|
||||||
header_params['enum_header_string_array'] = params['enum_header_string_array'] # noqa: E501
|
header_params['enum_header_string_array'] = params['enum_header_string_array'] # noqa: E501
|
||||||
collection_formats['enum_header_string_array'] = '' # noqa: E501
|
collection_formats['enum_header_string_array'] = 'csv' # noqa: E501
|
||||||
if 'enum_header_string' in params:
|
if 'enum_header_string' in params:
|
||||||
header_params['enum_header_string'] = params['enum_header_string'] # noqa: E501
|
header_params['enum_header_string'] = params['enum_header_string'] # noqa: E501
|
||||||
|
|
||||||
@ -878,6 +876,7 @@ class FakeApi(object):
|
|||||||
local_var_files = {}
|
local_var_files = {}
|
||||||
if 'enum_form_string_array' in params:
|
if 'enum_form_string_array' in params:
|
||||||
form_params.append(('enum_form_string_array', params['enum_form_string_array'])) # noqa: E501
|
form_params.append(('enum_form_string_array', params['enum_form_string_array'])) # noqa: E501
|
||||||
|
collection_formats['enum_form_string_array'] = 'csv' # noqa: E501
|
||||||
if 'enum_form_string' in params:
|
if 'enum_form_string' in params:
|
||||||
form_params.append(('enum_form_string', params['enum_form_string'])) # noqa: E501
|
form_params.append(('enum_form_string', params['enum_form_string'])) # noqa: E501
|
||||||
|
|
||||||
@ -914,7 +913,7 @@ class FakeApi(object):
|
|||||||
>>> result = thread.get()
|
>>> result = thread.get()
|
||||||
|
|
||||||
:param async bool
|
:param async bool
|
||||||
:param str request_body: request body (required)
|
:param dict(str, str) request_body: request body (required)
|
||||||
:return: None
|
:return: None
|
||||||
If the method is called asynchronously,
|
If the method is called asynchronously,
|
||||||
returns the request thread.
|
returns the request thread.
|
||||||
@ -935,7 +934,7 @@ class FakeApi(object):
|
|||||||
>>> result = thread.get()
|
>>> result = thread.get()
|
||||||
|
|
||||||
:param async bool
|
:param async bool
|
||||||
:param str request_body: request body (required)
|
:param dict(str, str) request_body: request body (required)
|
||||||
:return: None
|
:return: None
|
||||||
If the method is called asynchronously,
|
If the method is called asynchronously,
|
||||||
returns the request thread.
|
returns the request thread.
|
||||||
|
@ -1,13 +1,12 @@
|
|||||||
# coding: utf-8
|
# coding: utf-8
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Swagger Petstore
|
OpenAPI Petstore
|
||||||
|
|
||||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||||
|
|
||||||
OpenAPI spec version: 1.0.0
|
OpenAPI spec version: 1.0.0
|
||||||
Contact: apiteam@swagger.io
|
Generated by: https://openapi-generator.tech
|
||||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
@ -22,10 +21,9 @@ from petstore_api.api_client import ApiClient
|
|||||||
|
|
||||||
|
|
||||||
class FakeClassnameTags123Api(object):
|
class FakeClassnameTags123Api(object):
|
||||||
"""NOTE: This class is auto generated by the swagger code generator program.
|
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
|
||||||
Do not edit the class manually.
|
Do not edit the class manually.
|
||||||
Ref: https://github.com/swagger-api/swagger-codegen
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self, api_client=None):
|
def __init__(self, api_client=None):
|
||||||
|
@ -1,13 +1,12 @@
|
|||||||
# coding: utf-8
|
# coding: utf-8
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Swagger Petstore
|
OpenAPI Petstore
|
||||||
|
|
||||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||||
|
|
||||||
OpenAPI spec version: 1.0.0
|
OpenAPI spec version: 1.0.0
|
||||||
Contact: apiteam@swagger.io
|
Generated by: https://openapi-generator.tech
|
||||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
@ -22,10 +21,9 @@ from petstore_api.api_client import ApiClient
|
|||||||
|
|
||||||
|
|
||||||
class PetApi(object):
|
class PetApi(object):
|
||||||
"""NOTE: This class is auto generated by the swagger code generator program.
|
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
|
||||||
Do not edit the class manually.
|
Do not edit the class manually.
|
||||||
Ref: https://github.com/swagger-api/swagger-codegen
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self, api_client=None):
|
def __init__(self, api_client=None):
|
||||||
@ -284,7 +282,7 @@ class PetApi(object):
|
|||||||
query_params = []
|
query_params = []
|
||||||
if 'status' in params:
|
if 'status' in params:
|
||||||
query_params.append(('status', params['status'])) # noqa: E501
|
query_params.append(('status', params['status'])) # noqa: E501
|
||||||
collection_formats['status'] = '' # noqa: E501
|
collection_formats['status'] = 'csv' # noqa: E501
|
||||||
|
|
||||||
header_params = {}
|
header_params = {}
|
||||||
|
|
||||||
@ -380,7 +378,7 @@ class PetApi(object):
|
|||||||
query_params = []
|
query_params = []
|
||||||
if 'tags' in params:
|
if 'tags' in params:
|
||||||
query_params.append(('tags', params['tags'])) # noqa: E501
|
query_params.append(('tags', params['tags'])) # noqa: E501
|
||||||
collection_formats['tags'] = '' # noqa: E501
|
collection_formats['tags'] = 'csv' # noqa: E501
|
||||||
|
|
||||||
header_params = {}
|
header_params = {}
|
||||||
|
|
||||||
|
@ -1,13 +1,12 @@
|
|||||||
# coding: utf-8
|
# coding: utf-8
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Swagger Petstore
|
OpenAPI Petstore
|
||||||
|
|
||||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||||
|
|
||||||
OpenAPI spec version: 1.0.0
|
OpenAPI spec version: 1.0.0
|
||||||
Contact: apiteam@swagger.io
|
Generated by: https://openapi-generator.tech
|
||||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
@ -22,10 +21,9 @@ from petstore_api.api_client import ApiClient
|
|||||||
|
|
||||||
|
|
||||||
class StoreApi(object):
|
class StoreApi(object):
|
||||||
"""NOTE: This class is auto generated by the swagger code generator program.
|
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
|
||||||
Do not edit the class manually.
|
Do not edit the class manually.
|
||||||
Ref: https://github.com/swagger-api/swagger-codegen
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self, api_client=None):
|
def __init__(self, api_client=None):
|
||||||
|
@ -1,13 +1,12 @@
|
|||||||
# coding: utf-8
|
# coding: utf-8
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Swagger Petstore
|
OpenAPI Petstore
|
||||||
|
|
||||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||||
|
|
||||||
OpenAPI spec version: 1.0.0
|
OpenAPI spec version: 1.0.0
|
||||||
Contact: apiteam@swagger.io
|
Generated by: https://openapi-generator.tech
|
||||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
@ -22,10 +21,9 @@ from petstore_api.api_client import ApiClient
|
|||||||
|
|
||||||
|
|
||||||
class UserApi(object):
|
class UserApi(object):
|
||||||
"""NOTE: This class is auto generated by the swagger code generator program.
|
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
|
||||||
Do not edit the class manually.
|
Do not edit the class manually.
|
||||||
Ref: https://github.com/swagger-api/swagger-codegen
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self, api_client=None):
|
def __init__(self, api_client=None):
|
||||||
|
@ -1,12 +1,11 @@
|
|||||||
# coding: utf-8
|
# coding: utf-8
|
||||||
"""
|
"""
|
||||||
Swagger Petstore
|
OpenAPI Petstore
|
||||||
|
|
||||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||||
|
|
||||||
OpenAPI spec version: 1.0.0
|
OpenAPI spec version: 1.0.0
|
||||||
Contact: apiteam@swagger.io
|
Generated by: https://openapi-generator.tech
|
||||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from __future__ import absolute_import
|
from __future__ import absolute_import
|
||||||
@ -30,15 +29,14 @@ from petstore_api import rest
|
|||||||
|
|
||||||
|
|
||||||
class ApiClient(object):
|
class ApiClient(object):
|
||||||
"""Generic API client for Swagger client library builds.
|
"""Generic API client for OpenAPI client library builds.
|
||||||
|
|
||||||
Swagger generic API client. This client handles the client-
|
OpenAPI generic API client. This client handles the client-
|
||||||
server communication, and is invariant across implementations. Specifics of
|
server communication, and is invariant across implementations. Specifics of
|
||||||
the methods and models for each application are generated from the Swagger
|
the methods and models for each application are generated from the OpenAPI
|
||||||
templates.
|
templates.
|
||||||
|
|
||||||
NOTE: This class is auto generated by the swagger code generator program.
|
NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
Ref: https://github.com/swagger-api/swagger-codegen
|
|
||||||
Do not edit the class manually.
|
Do not edit the class manually.
|
||||||
|
|
||||||
:param configuration: .Configuration object for this client
|
:param configuration: .Configuration object for this client
|
||||||
@ -74,7 +72,7 @@ class ApiClient(object):
|
|||||||
self.default_headers[header_name] = header_value
|
self.default_headers[header_name] = header_value
|
||||||
self.cookie = cookie
|
self.cookie = cookie
|
||||||
# Set default User-Agent.
|
# Set default User-Agent.
|
||||||
self.user_agent = 'Swagger-Codegen/1.0.0/python'
|
self.user_agent = 'OpenAPI-Generator/1.0.0/python'
|
||||||
|
|
||||||
def __del__(self):
|
def __del__(self):
|
||||||
self.pool.close()
|
self.pool.close()
|
||||||
@ -179,7 +177,7 @@ class ApiClient(object):
|
|||||||
convert to string in iso8601 format.
|
convert to string in iso8601 format.
|
||||||
If obj is list, sanitize each element in the list.
|
If obj is list, sanitize each element in the list.
|
||||||
If obj is dict, return the dict.
|
If obj is dict, return the dict.
|
||||||
If obj is swagger model, return the properties dict.
|
If obj is OpenAPI model, return the properties dict.
|
||||||
|
|
||||||
:param obj: The data to serialize.
|
:param obj: The data to serialize.
|
||||||
:return: The serialized form of data.
|
:return: The serialized form of data.
|
||||||
@ -201,12 +199,12 @@ class ApiClient(object):
|
|||||||
obj_dict = obj
|
obj_dict = obj
|
||||||
else:
|
else:
|
||||||
# Convert model obj to dict except
|
# Convert model obj to dict except
|
||||||
# attributes `swagger_types`, `attribute_map`
|
# attributes `openapi_types`, `attribute_map`
|
||||||
# and attributes which value is not None.
|
# and attributes which value is not None.
|
||||||
# Convert attribute name to json key in
|
# Convert attribute name to json key in
|
||||||
# model definition for request.
|
# model definition for request.
|
||||||
obj_dict = {obj.attribute_map[attr]: getattr(obj, attr)
|
obj_dict = {obj.attribute_map[attr]: getattr(obj, attr)
|
||||||
for attr, _ in six.iteritems(obj.swagger_types)
|
for attr, _ in six.iteritems(obj.openapi_types)
|
||||||
if getattr(obj, attr) is not None}
|
if getattr(obj, attr) is not None}
|
||||||
|
|
||||||
return {key: self.sanitize_for_serialization(val)
|
return {key: self.sanitize_for_serialization(val)
|
||||||
@ -601,13 +599,13 @@ class ApiClient(object):
|
|||||||
:return: model object.
|
:return: model object.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
if not klass.swagger_types and not hasattr(klass,
|
if not klass.openapi_types and not hasattr(klass,
|
||||||
'get_real_child_model'):
|
'get_real_child_model'):
|
||||||
return data
|
return data
|
||||||
|
|
||||||
kwargs = {}
|
kwargs = {}
|
||||||
if klass.swagger_types is not None:
|
if klass.openapi_types is not None:
|
||||||
for attr, attr_type in six.iteritems(klass.swagger_types):
|
for attr, attr_type in six.iteritems(klass.openapi_types):
|
||||||
if (data is not None and
|
if (data is not None and
|
||||||
klass.attribute_map[attr] in data and
|
klass.attribute_map[attr] in data and
|
||||||
isinstance(data, (list, dict))):
|
isinstance(data, (list, dict))):
|
||||||
|
@ -1,13 +1,12 @@
|
|||||||
# coding: utf-8
|
# coding: utf-8
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Swagger Petstore
|
OpenAPI Petstore
|
||||||
|
|
||||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||||
|
|
||||||
OpenAPI spec version: 1.0.0
|
OpenAPI spec version: 1.0.0
|
||||||
Contact: apiteam@swagger.io
|
Generated by: https://openapi-generator.tech
|
||||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
@ -38,9 +37,9 @@ class TypeWithDefault(type):
|
|||||||
|
|
||||||
|
|
||||||
class Configuration(six.with_metaclass(TypeWithDefault, object)):
|
class Configuration(six.with_metaclass(TypeWithDefault, object)):
|
||||||
"""NOTE: This class is auto generated by the swagger code generator program.
|
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
|
||||||
Ref: https://github.com/swagger-api/swagger-codegen
|
Ref: https://openapi-generator.tech
|
||||||
Do not edit the class manually.
|
Do not edit the class manually.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
@ -2,13 +2,12 @@
|
|||||||
|
|
||||||
# flake8: noqa
|
# flake8: noqa
|
||||||
"""
|
"""
|
||||||
Swagger Petstore
|
OpenAPI Petstore
|
||||||
|
|
||||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||||
|
|
||||||
OpenAPI spec version: 1.0.0
|
OpenAPI spec version: 1.0.0
|
||||||
Contact: apiteam@swagger.io
|
Generated by: https://openapi-generator.tech
|
||||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
@ -41,11 +40,8 @@ from petstore_api.models.model_return import ModelReturn
|
|||||||
from petstore_api.models.name import Name
|
from petstore_api.models.name import Name
|
||||||
from petstore_api.models.number_only import NumberOnly
|
from petstore_api.models.number_only import NumberOnly
|
||||||
from petstore_api.models.order import Order
|
from petstore_api.models.order import Order
|
||||||
from petstore_api.models.outer_boolean import OuterBoolean
|
|
||||||
from petstore_api.models.outer_composite import OuterComposite
|
from petstore_api.models.outer_composite import OuterComposite
|
||||||
from petstore_api.models.outer_enum import OuterEnum
|
from petstore_api.models.outer_enum import OuterEnum
|
||||||
from petstore_api.models.outer_number import OuterNumber
|
|
||||||
from petstore_api.models.outer_string import OuterString
|
|
||||||
from petstore_api.models.pet import Pet
|
from petstore_api.models.pet import Pet
|
||||||
from petstore_api.models.read_only_first import ReadOnlyFirst
|
from petstore_api.models.read_only_first import ReadOnlyFirst
|
||||||
from petstore_api.models.special_model_name import SpecialModelName
|
from petstore_api.models.special_model_name import SpecialModelName
|
||||||
|
@ -1,13 +1,12 @@
|
|||||||
# coding: utf-8
|
# coding: utf-8
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Swagger Petstore
|
OpenAPI Petstore
|
||||||
|
|
||||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||||
|
|
||||||
OpenAPI spec version: 1.0.0
|
OpenAPI spec version: 1.0.0
|
||||||
Contact: apiteam@swagger.io
|
Generated by: https://openapi-generator.tech
|
||||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
@ -18,19 +17,19 @@ import six
|
|||||||
|
|
||||||
|
|
||||||
class AdditionalPropertiesClass(object):
|
class AdditionalPropertiesClass(object):
|
||||||
"""NOTE: This class is auto generated by the swagger code generator program.
|
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
|
||||||
Do not edit the class manually.
|
Do not edit the class manually.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Attributes:
|
Attributes:
|
||||||
swagger_types (dict): The key is attribute name
|
openapi_types (dict): The key is attribute name
|
||||||
and the value is attribute type.
|
and the value is attribute type.
|
||||||
attribute_map (dict): The key is attribute name
|
attribute_map (dict): The key is attribute name
|
||||||
and the value is json key in definition.
|
and the value is json key in definition.
|
||||||
"""
|
"""
|
||||||
swagger_types = {
|
openapi_types = {
|
||||||
'map_property': 'dict(str, str)',
|
'map_property': 'dict(str, str)',
|
||||||
'map_of_map_property': 'dict(str, dict(str, str))'
|
'map_of_map_property': 'dict(str, dict(str, str))'
|
||||||
}
|
}
|
||||||
@ -41,7 +40,7 @@ class AdditionalPropertiesClass(object):
|
|||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, map_property=None, map_of_map_property=None): # noqa: E501
|
def __init__(self, map_property=None, map_of_map_property=None): # noqa: E501
|
||||||
"""AdditionalPropertiesClass - a model defined in Swagger""" # noqa: E501
|
"""AdditionalPropertiesClass - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
|
||||||
self._map_property = None
|
self._map_property = None
|
||||||
self._map_of_map_property = None
|
self._map_of_map_property = None
|
||||||
@ -98,7 +97,7 @@ class AdditionalPropertiesClass(object):
|
|||||||
"""Returns the model properties as a dict"""
|
"""Returns the model properties as a dict"""
|
||||||
result = {}
|
result = {}
|
||||||
|
|
||||||
for attr, _ in six.iteritems(self.swagger_types):
|
for attr, _ in six.iteritems(self.openapi_types):
|
||||||
value = getattr(self, attr)
|
value = getattr(self, attr)
|
||||||
if isinstance(value, list):
|
if isinstance(value, list):
|
||||||
result[attr] = list(map(
|
result[attr] = list(map(
|
||||||
|
@ -1,13 +1,12 @@
|
|||||||
# coding: utf-8
|
# coding: utf-8
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Swagger Petstore
|
OpenAPI Petstore
|
||||||
|
|
||||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||||
|
|
||||||
OpenAPI spec version: 1.0.0
|
OpenAPI spec version: 1.0.0
|
||||||
Contact: apiteam@swagger.io
|
Generated by: https://openapi-generator.tech
|
||||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
@ -18,19 +17,19 @@ import six
|
|||||||
|
|
||||||
|
|
||||||
class Animal(object):
|
class Animal(object):
|
||||||
"""NOTE: This class is auto generated by the swagger code generator program.
|
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
|
||||||
Do not edit the class manually.
|
Do not edit the class manually.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Attributes:
|
Attributes:
|
||||||
swagger_types (dict): The key is attribute name
|
openapi_types (dict): The key is attribute name
|
||||||
and the value is attribute type.
|
and the value is attribute type.
|
||||||
attribute_map (dict): The key is attribute name
|
attribute_map (dict): The key is attribute name
|
||||||
and the value is json key in definition.
|
and the value is json key in definition.
|
||||||
"""
|
"""
|
||||||
swagger_types = {
|
openapi_types = {
|
||||||
'class_name': 'str',
|
'class_name': 'str',
|
||||||
'color': 'str'
|
'color': 'str'
|
||||||
}
|
}
|
||||||
@ -46,7 +45,7 @@ class Animal(object):
|
|||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, class_name=None, color='red'): # noqa: E501
|
def __init__(self, class_name=None, color='red'): # noqa: E501
|
||||||
"""Animal - a model defined in Swagger""" # noqa: E501
|
"""Animal - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
|
||||||
self._class_name = None
|
self._class_name = None
|
||||||
self._color = None
|
self._color = None
|
||||||
@ -109,7 +108,7 @@ class Animal(object):
|
|||||||
"""Returns the model properties as a dict"""
|
"""Returns the model properties as a dict"""
|
||||||
result = {}
|
result = {}
|
||||||
|
|
||||||
for attr, _ in six.iteritems(self.swagger_types):
|
for attr, _ in six.iteritems(self.openapi_types):
|
||||||
value = getattr(self, attr)
|
value = getattr(self, attr)
|
||||||
if isinstance(value, list):
|
if isinstance(value, list):
|
||||||
result[attr] = list(map(
|
result[attr] = list(map(
|
||||||
|
@ -1,13 +1,12 @@
|
|||||||
# coding: utf-8
|
# coding: utf-8
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Swagger Petstore
|
OpenAPI Petstore
|
||||||
|
|
||||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||||
|
|
||||||
OpenAPI spec version: 1.0.0
|
OpenAPI spec version: 1.0.0
|
||||||
Contact: apiteam@swagger.io
|
Generated by: https://openapi-generator.tech
|
||||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
@ -20,33 +19,33 @@ from petstore_api.models.animal import Animal # noqa: F401,E501
|
|||||||
|
|
||||||
|
|
||||||
class AnimalFarm(object):
|
class AnimalFarm(object):
|
||||||
"""NOTE: This class is auto generated by the swagger code generator program.
|
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
|
||||||
Do not edit the class manually.
|
Do not edit the class manually.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Attributes:
|
Attributes:
|
||||||
swagger_types (dict): The key is attribute name
|
openapi_types (dict): The key is attribute name
|
||||||
and the value is attribute type.
|
and the value is attribute type.
|
||||||
attribute_map (dict): The key is attribute name
|
attribute_map (dict): The key is attribute name
|
||||||
and the value is json key in definition.
|
and the value is json key in definition.
|
||||||
"""
|
"""
|
||||||
swagger_types = {
|
openapi_types = {
|
||||||
}
|
}
|
||||||
|
|
||||||
attribute_map = {
|
attribute_map = {
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self): # noqa: E501
|
def __init__(self): # noqa: E501
|
||||||
"""AnimalFarm - a model defined in Swagger""" # noqa: E501
|
"""AnimalFarm - a model defined in OpenAPI""" # noqa: E501
|
||||||
self.discriminator = None
|
self.discriminator = None
|
||||||
|
|
||||||
def to_dict(self):
|
def to_dict(self):
|
||||||
"""Returns the model properties as a dict"""
|
"""Returns the model properties as a dict"""
|
||||||
result = {}
|
result = {}
|
||||||
|
|
||||||
for attr, _ in six.iteritems(self.swagger_types):
|
for attr, _ in six.iteritems(self.openapi_types):
|
||||||
value = getattr(self, attr)
|
value = getattr(self, attr)
|
||||||
if isinstance(value, list):
|
if isinstance(value, list):
|
||||||
result[attr] = list(map(
|
result[attr] = list(map(
|
||||||
|
@ -1,13 +1,12 @@
|
|||||||
# coding: utf-8
|
# coding: utf-8
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Swagger Petstore
|
OpenAPI Petstore
|
||||||
|
|
||||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||||
|
|
||||||
OpenAPI spec version: 1.0.0
|
OpenAPI spec version: 1.0.0
|
||||||
Contact: apiteam@swagger.io
|
Generated by: https://openapi-generator.tech
|
||||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
@ -18,19 +17,19 @@ import six
|
|||||||
|
|
||||||
|
|
||||||
class ApiResponse(object):
|
class ApiResponse(object):
|
||||||
"""NOTE: This class is auto generated by the swagger code generator program.
|
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
|
||||||
Do not edit the class manually.
|
Do not edit the class manually.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Attributes:
|
Attributes:
|
||||||
swagger_types (dict): The key is attribute name
|
openapi_types (dict): The key is attribute name
|
||||||
and the value is attribute type.
|
and the value is attribute type.
|
||||||
attribute_map (dict): The key is attribute name
|
attribute_map (dict): The key is attribute name
|
||||||
and the value is json key in definition.
|
and the value is json key in definition.
|
||||||
"""
|
"""
|
||||||
swagger_types = {
|
openapi_types = {
|
||||||
'code': 'int',
|
'code': 'int',
|
||||||
'type': 'str',
|
'type': 'str',
|
||||||
'message': 'str'
|
'message': 'str'
|
||||||
@ -43,7 +42,7 @@ class ApiResponse(object):
|
|||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, code=None, type=None, message=None): # noqa: E501
|
def __init__(self, code=None, type=None, message=None): # noqa: E501
|
||||||
"""ApiResponse - a model defined in Swagger""" # noqa: E501
|
"""ApiResponse - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
|
||||||
self._code = None
|
self._code = None
|
||||||
self._type = None
|
self._type = None
|
||||||
@ -124,7 +123,7 @@ class ApiResponse(object):
|
|||||||
"""Returns the model properties as a dict"""
|
"""Returns the model properties as a dict"""
|
||||||
result = {}
|
result = {}
|
||||||
|
|
||||||
for attr, _ in six.iteritems(self.swagger_types):
|
for attr, _ in six.iteritems(self.openapi_types):
|
||||||
value = getattr(self, attr)
|
value = getattr(self, attr)
|
||||||
if isinstance(value, list):
|
if isinstance(value, list):
|
||||||
result[attr] = list(map(
|
result[attr] = list(map(
|
||||||
|
@ -1,13 +1,12 @@
|
|||||||
# coding: utf-8
|
# coding: utf-8
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Swagger Petstore
|
OpenAPI Petstore
|
||||||
|
|
||||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||||
|
|
||||||
OpenAPI spec version: 1.0.0
|
OpenAPI spec version: 1.0.0
|
||||||
Contact: apiteam@swagger.io
|
Generated by: https://openapi-generator.tech
|
||||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
@ -18,19 +17,19 @@ import six
|
|||||||
|
|
||||||
|
|
||||||
class ArrayOfArrayOfNumberOnly(object):
|
class ArrayOfArrayOfNumberOnly(object):
|
||||||
"""NOTE: This class is auto generated by the swagger code generator program.
|
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
|
||||||
Do not edit the class manually.
|
Do not edit the class manually.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Attributes:
|
Attributes:
|
||||||
swagger_types (dict): The key is attribute name
|
openapi_types (dict): The key is attribute name
|
||||||
and the value is attribute type.
|
and the value is attribute type.
|
||||||
attribute_map (dict): The key is attribute name
|
attribute_map (dict): The key is attribute name
|
||||||
and the value is json key in definition.
|
and the value is json key in definition.
|
||||||
"""
|
"""
|
||||||
swagger_types = {
|
openapi_types = {
|
||||||
'array_array_number': 'list[list[float]]'
|
'array_array_number': 'list[list[float]]'
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -39,7 +38,7 @@ class ArrayOfArrayOfNumberOnly(object):
|
|||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, array_array_number=None): # noqa: E501
|
def __init__(self, array_array_number=None): # noqa: E501
|
||||||
"""ArrayOfArrayOfNumberOnly - a model defined in Swagger""" # noqa: E501
|
"""ArrayOfArrayOfNumberOnly - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
|
||||||
self._array_array_number = None
|
self._array_array_number = None
|
||||||
self.discriminator = None
|
self.discriminator = None
|
||||||
@ -72,7 +71,7 @@ class ArrayOfArrayOfNumberOnly(object):
|
|||||||
"""Returns the model properties as a dict"""
|
"""Returns the model properties as a dict"""
|
||||||
result = {}
|
result = {}
|
||||||
|
|
||||||
for attr, _ in six.iteritems(self.swagger_types):
|
for attr, _ in six.iteritems(self.openapi_types):
|
||||||
value = getattr(self, attr)
|
value = getattr(self, attr)
|
||||||
if isinstance(value, list):
|
if isinstance(value, list):
|
||||||
result[attr] = list(map(
|
result[attr] = list(map(
|
||||||
|
@ -1,13 +1,12 @@
|
|||||||
# coding: utf-8
|
# coding: utf-8
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Swagger Petstore
|
OpenAPI Petstore
|
||||||
|
|
||||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||||
|
|
||||||
OpenAPI spec version: 1.0.0
|
OpenAPI spec version: 1.0.0
|
||||||
Contact: apiteam@swagger.io
|
Generated by: https://openapi-generator.tech
|
||||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
@ -18,19 +17,19 @@ import six
|
|||||||
|
|
||||||
|
|
||||||
class ArrayOfNumberOnly(object):
|
class ArrayOfNumberOnly(object):
|
||||||
"""NOTE: This class is auto generated by the swagger code generator program.
|
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
|
||||||
Do not edit the class manually.
|
Do not edit the class manually.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Attributes:
|
Attributes:
|
||||||
swagger_types (dict): The key is attribute name
|
openapi_types (dict): The key is attribute name
|
||||||
and the value is attribute type.
|
and the value is attribute type.
|
||||||
attribute_map (dict): The key is attribute name
|
attribute_map (dict): The key is attribute name
|
||||||
and the value is json key in definition.
|
and the value is json key in definition.
|
||||||
"""
|
"""
|
||||||
swagger_types = {
|
openapi_types = {
|
||||||
'array_number': 'list[float]'
|
'array_number': 'list[float]'
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -39,7 +38,7 @@ class ArrayOfNumberOnly(object):
|
|||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, array_number=None): # noqa: E501
|
def __init__(self, array_number=None): # noqa: E501
|
||||||
"""ArrayOfNumberOnly - a model defined in Swagger""" # noqa: E501
|
"""ArrayOfNumberOnly - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
|
||||||
self._array_number = None
|
self._array_number = None
|
||||||
self.discriminator = None
|
self.discriminator = None
|
||||||
@ -72,7 +71,7 @@ class ArrayOfNumberOnly(object):
|
|||||||
"""Returns the model properties as a dict"""
|
"""Returns the model properties as a dict"""
|
||||||
result = {}
|
result = {}
|
||||||
|
|
||||||
for attr, _ in six.iteritems(self.swagger_types):
|
for attr, _ in six.iteritems(self.openapi_types):
|
||||||
value = getattr(self, attr)
|
value = getattr(self, attr)
|
||||||
if isinstance(value, list):
|
if isinstance(value, list):
|
||||||
result[attr] = list(map(
|
result[attr] = list(map(
|
||||||
|
@ -1,13 +1,12 @@
|
|||||||
# coding: utf-8
|
# coding: utf-8
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Swagger Petstore
|
OpenAPI Petstore
|
||||||
|
|
||||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||||
|
|
||||||
OpenAPI spec version: 1.0.0
|
OpenAPI spec version: 1.0.0
|
||||||
Contact: apiteam@swagger.io
|
Generated by: https://openapi-generator.tech
|
||||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
@ -20,19 +19,19 @@ from petstore_api.models.read_only_first import ReadOnlyFirst # noqa: F401,E501
|
|||||||
|
|
||||||
|
|
||||||
class ArrayTest(object):
|
class ArrayTest(object):
|
||||||
"""NOTE: This class is auto generated by the swagger code generator program.
|
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
|
||||||
Do not edit the class manually.
|
Do not edit the class manually.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Attributes:
|
Attributes:
|
||||||
swagger_types (dict): The key is attribute name
|
openapi_types (dict): The key is attribute name
|
||||||
and the value is attribute type.
|
and the value is attribute type.
|
||||||
attribute_map (dict): The key is attribute name
|
attribute_map (dict): The key is attribute name
|
||||||
and the value is json key in definition.
|
and the value is json key in definition.
|
||||||
"""
|
"""
|
||||||
swagger_types = {
|
openapi_types = {
|
||||||
'array_of_string': 'list[str]',
|
'array_of_string': 'list[str]',
|
||||||
'array_array_of_integer': 'list[list[int]]',
|
'array_array_of_integer': 'list[list[int]]',
|
||||||
'array_array_of_model': 'list[list[ReadOnlyFirst]]'
|
'array_array_of_model': 'list[list[ReadOnlyFirst]]'
|
||||||
@ -45,7 +44,7 @@ class ArrayTest(object):
|
|||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, array_of_string=None, array_array_of_integer=None, array_array_of_model=None): # noqa: E501
|
def __init__(self, array_of_string=None, array_array_of_integer=None, array_array_of_model=None): # noqa: E501
|
||||||
"""ArrayTest - a model defined in Swagger""" # noqa: E501
|
"""ArrayTest - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
|
||||||
self._array_of_string = None
|
self._array_of_string = None
|
||||||
self._array_array_of_integer = None
|
self._array_array_of_integer = None
|
||||||
@ -126,7 +125,7 @@ class ArrayTest(object):
|
|||||||
"""Returns the model properties as a dict"""
|
"""Returns the model properties as a dict"""
|
||||||
result = {}
|
result = {}
|
||||||
|
|
||||||
for attr, _ in six.iteritems(self.swagger_types):
|
for attr, _ in six.iteritems(self.openapi_types):
|
||||||
value = getattr(self, attr)
|
value = getattr(self, attr)
|
||||||
if isinstance(value, list):
|
if isinstance(value, list):
|
||||||
result[attr] = list(map(
|
result[attr] = list(map(
|
||||||
|
@ -1,13 +1,12 @@
|
|||||||
# coding: utf-8
|
# coding: utf-8
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Swagger Petstore
|
OpenAPI Petstore
|
||||||
|
|
||||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||||
|
|
||||||
OpenAPI spec version: 1.0.0
|
OpenAPI spec version: 1.0.0
|
||||||
Contact: apiteam@swagger.io
|
Generated by: https://openapi-generator.tech
|
||||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
@ -18,19 +17,19 @@ import six
|
|||||||
|
|
||||||
|
|
||||||
class Capitalization(object):
|
class Capitalization(object):
|
||||||
"""NOTE: This class is auto generated by the swagger code generator program.
|
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
|
||||||
Do not edit the class manually.
|
Do not edit the class manually.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Attributes:
|
Attributes:
|
||||||
swagger_types (dict): The key is attribute name
|
openapi_types (dict): The key is attribute name
|
||||||
and the value is attribute type.
|
and the value is attribute type.
|
||||||
attribute_map (dict): The key is attribute name
|
attribute_map (dict): The key is attribute name
|
||||||
and the value is json key in definition.
|
and the value is json key in definition.
|
||||||
"""
|
"""
|
||||||
swagger_types = {
|
openapi_types = {
|
||||||
'small_camel': 'str',
|
'small_camel': 'str',
|
||||||
'capital_camel': 'str',
|
'capital_camel': 'str',
|
||||||
'small_snake': 'str',
|
'small_snake': 'str',
|
||||||
@ -49,7 +48,7 @@ class Capitalization(object):
|
|||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, small_camel=None, capital_camel=None, small_snake=None, capital_snake=None, sca_eth_flow_points=None, att_name=None): # noqa: E501
|
def __init__(self, small_camel=None, capital_camel=None, small_snake=None, capital_snake=None, sca_eth_flow_points=None, att_name=None): # noqa: E501
|
||||||
"""Capitalization - a model defined in Swagger""" # noqa: E501
|
"""Capitalization - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
|
||||||
self._small_camel = None
|
self._small_camel = None
|
||||||
self._capital_camel = None
|
self._capital_camel = None
|
||||||
@ -204,7 +203,7 @@ class Capitalization(object):
|
|||||||
"""Returns the model properties as a dict"""
|
"""Returns the model properties as a dict"""
|
||||||
result = {}
|
result = {}
|
||||||
|
|
||||||
for attr, _ in six.iteritems(self.swagger_types):
|
for attr, _ in six.iteritems(self.openapi_types):
|
||||||
value = getattr(self, attr)
|
value = getattr(self, attr)
|
||||||
if isinstance(value, list):
|
if isinstance(value, list):
|
||||||
result[attr] = list(map(
|
result[attr] = list(map(
|
||||||
|
@ -1,13 +1,12 @@
|
|||||||
# coding: utf-8
|
# coding: utf-8
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Swagger Petstore
|
OpenAPI Petstore
|
||||||
|
|
||||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||||
|
|
||||||
OpenAPI spec version: 1.0.0
|
OpenAPI spec version: 1.0.0
|
||||||
Contact: apiteam@swagger.io
|
Generated by: https://openapi-generator.tech
|
||||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
@ -20,19 +19,19 @@ from petstore_api.models.animal import Animal # noqa: F401,E501
|
|||||||
|
|
||||||
|
|
||||||
class Cat(object):
|
class Cat(object):
|
||||||
"""NOTE: This class is auto generated by the swagger code generator program.
|
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
|
||||||
Do not edit the class manually.
|
Do not edit the class manually.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Attributes:
|
Attributes:
|
||||||
swagger_types (dict): The key is attribute name
|
openapi_types (dict): The key is attribute name
|
||||||
and the value is attribute type.
|
and the value is attribute type.
|
||||||
attribute_map (dict): The key is attribute name
|
attribute_map (dict): The key is attribute name
|
||||||
and the value is json key in definition.
|
and the value is json key in definition.
|
||||||
"""
|
"""
|
||||||
swagger_types = {
|
openapi_types = {
|
||||||
'declawed': 'bool'
|
'declawed': 'bool'
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -41,7 +40,7 @@ class Cat(object):
|
|||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, declawed=None): # noqa: E501
|
def __init__(self, declawed=None): # noqa: E501
|
||||||
"""Cat - a model defined in Swagger""" # noqa: E501
|
"""Cat - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
|
||||||
self._declawed = None
|
self._declawed = None
|
||||||
self.discriminator = None
|
self.discriminator = None
|
||||||
@ -74,7 +73,7 @@ class Cat(object):
|
|||||||
"""Returns the model properties as a dict"""
|
"""Returns the model properties as a dict"""
|
||||||
result = {}
|
result = {}
|
||||||
|
|
||||||
for attr, _ in six.iteritems(self.swagger_types):
|
for attr, _ in six.iteritems(self.openapi_types):
|
||||||
value = getattr(self, attr)
|
value = getattr(self, attr)
|
||||||
if isinstance(value, list):
|
if isinstance(value, list):
|
||||||
result[attr] = list(map(
|
result[attr] = list(map(
|
||||||
|
@ -1,13 +1,12 @@
|
|||||||
# coding: utf-8
|
# coding: utf-8
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Swagger Petstore
|
OpenAPI Petstore
|
||||||
|
|
||||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||||
|
|
||||||
OpenAPI spec version: 1.0.0
|
OpenAPI spec version: 1.0.0
|
||||||
Contact: apiteam@swagger.io
|
Generated by: https://openapi-generator.tech
|
||||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
@ -18,19 +17,19 @@ import six
|
|||||||
|
|
||||||
|
|
||||||
class Category(object):
|
class Category(object):
|
||||||
"""NOTE: This class is auto generated by the swagger code generator program.
|
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
|
||||||
Do not edit the class manually.
|
Do not edit the class manually.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Attributes:
|
Attributes:
|
||||||
swagger_types (dict): The key is attribute name
|
openapi_types (dict): The key is attribute name
|
||||||
and the value is attribute type.
|
and the value is attribute type.
|
||||||
attribute_map (dict): The key is attribute name
|
attribute_map (dict): The key is attribute name
|
||||||
and the value is json key in definition.
|
and the value is json key in definition.
|
||||||
"""
|
"""
|
||||||
swagger_types = {
|
openapi_types = {
|
||||||
'id': 'int',
|
'id': 'int',
|
||||||
'name': 'str'
|
'name': 'str'
|
||||||
}
|
}
|
||||||
@ -41,7 +40,7 @@ class Category(object):
|
|||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, id=None, name=None): # noqa: E501
|
def __init__(self, id=None, name=None): # noqa: E501
|
||||||
"""Category - a model defined in Swagger""" # noqa: E501
|
"""Category - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
|
||||||
self._id = None
|
self._id = None
|
||||||
self._name = None
|
self._name = None
|
||||||
@ -98,7 +97,7 @@ class Category(object):
|
|||||||
"""Returns the model properties as a dict"""
|
"""Returns the model properties as a dict"""
|
||||||
result = {}
|
result = {}
|
||||||
|
|
||||||
for attr, _ in six.iteritems(self.swagger_types):
|
for attr, _ in six.iteritems(self.openapi_types):
|
||||||
value = getattr(self, attr)
|
value = getattr(self, attr)
|
||||||
if isinstance(value, list):
|
if isinstance(value, list):
|
||||||
result[attr] = list(map(
|
result[attr] = list(map(
|
||||||
|
@ -1,13 +1,12 @@
|
|||||||
# coding: utf-8
|
# coding: utf-8
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Swagger Petstore
|
OpenAPI Petstore
|
||||||
|
|
||||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||||
|
|
||||||
OpenAPI spec version: 1.0.0
|
OpenAPI spec version: 1.0.0
|
||||||
Contact: apiteam@swagger.io
|
Generated by: https://openapi-generator.tech
|
||||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
@ -18,19 +17,19 @@ import six
|
|||||||
|
|
||||||
|
|
||||||
class ClassModel(object):
|
class ClassModel(object):
|
||||||
"""NOTE: This class is auto generated by the swagger code generator program.
|
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
|
||||||
Do not edit the class manually.
|
Do not edit the class manually.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Attributes:
|
Attributes:
|
||||||
swagger_types (dict): The key is attribute name
|
openapi_types (dict): The key is attribute name
|
||||||
and the value is attribute type.
|
and the value is attribute type.
|
||||||
attribute_map (dict): The key is attribute name
|
attribute_map (dict): The key is attribute name
|
||||||
and the value is json key in definition.
|
and the value is json key in definition.
|
||||||
"""
|
"""
|
||||||
swagger_types = {
|
openapi_types = {
|
||||||
'_class': 'str'
|
'_class': 'str'
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -39,7 +38,7 @@ class ClassModel(object):
|
|||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, _class=None): # noqa: E501
|
def __init__(self, _class=None): # noqa: E501
|
||||||
"""ClassModel - a model defined in Swagger""" # noqa: E501
|
"""ClassModel - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
|
||||||
self.__class = None
|
self.__class = None
|
||||||
self.discriminator = None
|
self.discriminator = None
|
||||||
@ -72,7 +71,7 @@ class ClassModel(object):
|
|||||||
"""Returns the model properties as a dict"""
|
"""Returns the model properties as a dict"""
|
||||||
result = {}
|
result = {}
|
||||||
|
|
||||||
for attr, _ in six.iteritems(self.swagger_types):
|
for attr, _ in six.iteritems(self.openapi_types):
|
||||||
value = getattr(self, attr)
|
value = getattr(self, attr)
|
||||||
if isinstance(value, list):
|
if isinstance(value, list):
|
||||||
result[attr] = list(map(
|
result[attr] = list(map(
|
||||||
|
@ -1,13 +1,12 @@
|
|||||||
# coding: utf-8
|
# coding: utf-8
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Swagger Petstore
|
OpenAPI Petstore
|
||||||
|
|
||||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||||
|
|
||||||
OpenAPI spec version: 1.0.0
|
OpenAPI spec version: 1.0.0
|
||||||
Contact: apiteam@swagger.io
|
Generated by: https://openapi-generator.tech
|
||||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
@ -18,19 +17,19 @@ import six
|
|||||||
|
|
||||||
|
|
||||||
class Client(object):
|
class Client(object):
|
||||||
"""NOTE: This class is auto generated by the swagger code generator program.
|
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
|
||||||
Do not edit the class manually.
|
Do not edit the class manually.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Attributes:
|
Attributes:
|
||||||
swagger_types (dict): The key is attribute name
|
openapi_types (dict): The key is attribute name
|
||||||
and the value is attribute type.
|
and the value is attribute type.
|
||||||
attribute_map (dict): The key is attribute name
|
attribute_map (dict): The key is attribute name
|
||||||
and the value is json key in definition.
|
and the value is json key in definition.
|
||||||
"""
|
"""
|
||||||
swagger_types = {
|
openapi_types = {
|
||||||
'client': 'str'
|
'client': 'str'
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -39,7 +38,7 @@ class Client(object):
|
|||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, client=None): # noqa: E501
|
def __init__(self, client=None): # noqa: E501
|
||||||
"""Client - a model defined in Swagger""" # noqa: E501
|
"""Client - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
|
||||||
self._client = None
|
self._client = None
|
||||||
self.discriminator = None
|
self.discriminator = None
|
||||||
@ -72,7 +71,7 @@ class Client(object):
|
|||||||
"""Returns the model properties as a dict"""
|
"""Returns the model properties as a dict"""
|
||||||
result = {}
|
result = {}
|
||||||
|
|
||||||
for attr, _ in six.iteritems(self.swagger_types):
|
for attr, _ in six.iteritems(self.openapi_types):
|
||||||
value = getattr(self, attr)
|
value = getattr(self, attr)
|
||||||
if isinstance(value, list):
|
if isinstance(value, list):
|
||||||
result[attr] = list(map(
|
result[attr] = list(map(
|
||||||
|
@ -1,13 +1,12 @@
|
|||||||
# coding: utf-8
|
# coding: utf-8
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Swagger Petstore
|
OpenAPI Petstore
|
||||||
|
|
||||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||||
|
|
||||||
OpenAPI spec version: 1.0.0
|
OpenAPI spec version: 1.0.0
|
||||||
Contact: apiteam@swagger.io
|
Generated by: https://openapi-generator.tech
|
||||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
@ -20,19 +19,19 @@ from petstore_api.models.animal import Animal # noqa: F401,E501
|
|||||||
|
|
||||||
|
|
||||||
class Dog(object):
|
class Dog(object):
|
||||||
"""NOTE: This class is auto generated by the swagger code generator program.
|
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
|
||||||
Do not edit the class manually.
|
Do not edit the class manually.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Attributes:
|
Attributes:
|
||||||
swagger_types (dict): The key is attribute name
|
openapi_types (dict): The key is attribute name
|
||||||
and the value is attribute type.
|
and the value is attribute type.
|
||||||
attribute_map (dict): The key is attribute name
|
attribute_map (dict): The key is attribute name
|
||||||
and the value is json key in definition.
|
and the value is json key in definition.
|
||||||
"""
|
"""
|
||||||
swagger_types = {
|
openapi_types = {
|
||||||
'breed': 'str'
|
'breed': 'str'
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -41,7 +40,7 @@ class Dog(object):
|
|||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, breed=None): # noqa: E501
|
def __init__(self, breed=None): # noqa: E501
|
||||||
"""Dog - a model defined in Swagger""" # noqa: E501
|
"""Dog - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
|
||||||
self._breed = None
|
self._breed = None
|
||||||
self.discriminator = None
|
self.discriminator = None
|
||||||
@ -74,7 +73,7 @@ class Dog(object):
|
|||||||
"""Returns the model properties as a dict"""
|
"""Returns the model properties as a dict"""
|
||||||
result = {}
|
result = {}
|
||||||
|
|
||||||
for attr, _ in six.iteritems(self.swagger_types):
|
for attr, _ in six.iteritems(self.openapi_types):
|
||||||
value = getattr(self, attr)
|
value = getattr(self, attr)
|
||||||
if isinstance(value, list):
|
if isinstance(value, list):
|
||||||
result[attr] = list(map(
|
result[attr] = list(map(
|
||||||
|
@ -1,13 +1,12 @@
|
|||||||
# coding: utf-8
|
# coding: utf-8
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Swagger Petstore
|
OpenAPI Petstore
|
||||||
|
|
||||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||||
|
|
||||||
OpenAPI spec version: 1.0.0
|
OpenAPI spec version: 1.0.0
|
||||||
Contact: apiteam@swagger.io
|
Generated by: https://openapi-generator.tech
|
||||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
@ -18,19 +17,19 @@ import six
|
|||||||
|
|
||||||
|
|
||||||
class EnumArrays(object):
|
class EnumArrays(object):
|
||||||
"""NOTE: This class is auto generated by the swagger code generator program.
|
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
|
||||||
Do not edit the class manually.
|
Do not edit the class manually.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Attributes:
|
Attributes:
|
||||||
swagger_types (dict): The key is attribute name
|
openapi_types (dict): The key is attribute name
|
||||||
and the value is attribute type.
|
and the value is attribute type.
|
||||||
attribute_map (dict): The key is attribute name
|
attribute_map (dict): The key is attribute name
|
||||||
and the value is json key in definition.
|
and the value is json key in definition.
|
||||||
"""
|
"""
|
||||||
swagger_types = {
|
openapi_types = {
|
||||||
'just_symbol': 'str',
|
'just_symbol': 'str',
|
||||||
'array_enum': 'list[str]'
|
'array_enum': 'list[str]'
|
||||||
}
|
}
|
||||||
@ -41,7 +40,7 @@ class EnumArrays(object):
|
|||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, just_symbol=None, array_enum=None): # noqa: E501
|
def __init__(self, just_symbol=None, array_enum=None): # noqa: E501
|
||||||
"""EnumArrays - a model defined in Swagger""" # noqa: E501
|
"""EnumArrays - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
|
||||||
self._just_symbol = None
|
self._just_symbol = None
|
||||||
self._array_enum = None
|
self._array_enum = None
|
||||||
@ -111,7 +110,7 @@ class EnumArrays(object):
|
|||||||
"""Returns the model properties as a dict"""
|
"""Returns the model properties as a dict"""
|
||||||
result = {}
|
result = {}
|
||||||
|
|
||||||
for attr, _ in six.iteritems(self.swagger_types):
|
for attr, _ in six.iteritems(self.openapi_types):
|
||||||
value = getattr(self, attr)
|
value = getattr(self, attr)
|
||||||
if isinstance(value, list):
|
if isinstance(value, list):
|
||||||
result[attr] = list(map(
|
result[attr] = list(map(
|
||||||
|
@ -1,13 +1,12 @@
|
|||||||
# coding: utf-8
|
# coding: utf-8
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Swagger Petstore
|
OpenAPI Petstore
|
||||||
|
|
||||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||||
|
|
||||||
OpenAPI spec version: 1.0.0
|
OpenAPI spec version: 1.0.0
|
||||||
Contact: apiteam@swagger.io
|
Generated by: https://openapi-generator.tech
|
||||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
@ -18,7 +17,7 @@ import six
|
|||||||
|
|
||||||
|
|
||||||
class EnumClass(object):
|
class EnumClass(object):
|
||||||
"""NOTE: This class is auto generated by the swagger code generator program.
|
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
|
||||||
Do not edit the class manually.
|
Do not edit the class manually.
|
||||||
"""
|
"""
|
||||||
@ -32,26 +31,26 @@ class EnumClass(object):
|
|||||||
|
|
||||||
"""
|
"""
|
||||||
Attributes:
|
Attributes:
|
||||||
swagger_types (dict): The key is attribute name
|
openapi_types (dict): The key is attribute name
|
||||||
and the value is attribute type.
|
and the value is attribute type.
|
||||||
attribute_map (dict): The key is attribute name
|
attribute_map (dict): The key is attribute name
|
||||||
and the value is json key in definition.
|
and the value is json key in definition.
|
||||||
"""
|
"""
|
||||||
swagger_types = {
|
openapi_types = {
|
||||||
}
|
}
|
||||||
|
|
||||||
attribute_map = {
|
attribute_map = {
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self): # noqa: E501
|
def __init__(self): # noqa: E501
|
||||||
"""EnumClass - a model defined in Swagger""" # noqa: E501
|
"""EnumClass - a model defined in OpenAPI""" # noqa: E501
|
||||||
self.discriminator = None
|
self.discriminator = None
|
||||||
|
|
||||||
def to_dict(self):
|
def to_dict(self):
|
||||||
"""Returns the model properties as a dict"""
|
"""Returns the model properties as a dict"""
|
||||||
result = {}
|
result = {}
|
||||||
|
|
||||||
for attr, _ in six.iteritems(self.swagger_types):
|
for attr, _ in six.iteritems(self.openapi_types):
|
||||||
value = getattr(self, attr)
|
value = getattr(self, attr)
|
||||||
if isinstance(value, list):
|
if isinstance(value, list):
|
||||||
result[attr] = list(map(
|
result[attr] = list(map(
|
||||||
|
@ -1,13 +1,12 @@
|
|||||||
# coding: utf-8
|
# coding: utf-8
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Swagger Petstore
|
OpenAPI Petstore
|
||||||
|
|
||||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||||
|
|
||||||
OpenAPI spec version: 1.0.0
|
OpenAPI spec version: 1.0.0
|
||||||
Contact: apiteam@swagger.io
|
Generated by: https://openapi-generator.tech
|
||||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
@ -20,19 +19,19 @@ from petstore_api.models.outer_enum import OuterEnum # noqa: F401,E501
|
|||||||
|
|
||||||
|
|
||||||
class EnumTest(object):
|
class EnumTest(object):
|
||||||
"""NOTE: This class is auto generated by the swagger code generator program.
|
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
|
||||||
Do not edit the class manually.
|
Do not edit the class manually.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Attributes:
|
Attributes:
|
||||||
swagger_types (dict): The key is attribute name
|
openapi_types (dict): The key is attribute name
|
||||||
and the value is attribute type.
|
and the value is attribute type.
|
||||||
attribute_map (dict): The key is attribute name
|
attribute_map (dict): The key is attribute name
|
||||||
and the value is json key in definition.
|
and the value is json key in definition.
|
||||||
"""
|
"""
|
||||||
swagger_types = {
|
openapi_types = {
|
||||||
'enum_string': 'str',
|
'enum_string': 'str',
|
||||||
'enum_string_required': 'str',
|
'enum_string_required': 'str',
|
||||||
'enum_integer': 'int',
|
'enum_integer': 'int',
|
||||||
@ -49,7 +48,7 @@ class EnumTest(object):
|
|||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, enum_string=None, enum_string_required=None, enum_integer=None, enum_number=None, outer_enum=None): # noqa: E501
|
def __init__(self, enum_string=None, enum_string_required=None, enum_integer=None, enum_number=None, outer_enum=None): # noqa: E501
|
||||||
"""EnumTest - a model defined in Swagger""" # noqa: E501
|
"""EnumTest - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
|
||||||
self._enum_string = None
|
self._enum_string = None
|
||||||
self._enum_string_required = None
|
self._enum_string_required = None
|
||||||
@ -203,7 +202,7 @@ class EnumTest(object):
|
|||||||
"""Returns the model properties as a dict"""
|
"""Returns the model properties as a dict"""
|
||||||
result = {}
|
result = {}
|
||||||
|
|
||||||
for attr, _ in six.iteritems(self.swagger_types):
|
for attr, _ in six.iteritems(self.openapi_types):
|
||||||
value = getattr(self, attr)
|
value = getattr(self, attr)
|
||||||
if isinstance(value, list):
|
if isinstance(value, list):
|
||||||
result[attr] = list(map(
|
result[attr] = list(map(
|
||||||
|
@ -1,13 +1,12 @@
|
|||||||
# coding: utf-8
|
# coding: utf-8
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Swagger Petstore
|
OpenAPI Petstore
|
||||||
|
|
||||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||||
|
|
||||||
OpenAPI spec version: 1.0.0
|
OpenAPI spec version: 1.0.0
|
||||||
Contact: apiteam@swagger.io
|
Generated by: https://openapi-generator.tech
|
||||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
@ -16,23 +15,21 @@ import re # noqa: F401
|
|||||||
|
|
||||||
import six
|
import six
|
||||||
|
|
||||||
from petstore_api.models.file import file # noqa: F401,E501
|
|
||||||
|
|
||||||
|
|
||||||
class FormatTest(object):
|
class FormatTest(object):
|
||||||
"""NOTE: This class is auto generated by the swagger code generator program.
|
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
|
||||||
Do not edit the class manually.
|
Do not edit the class manually.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Attributes:
|
Attributes:
|
||||||
swagger_types (dict): The key is attribute name
|
openapi_types (dict): The key is attribute name
|
||||||
and the value is attribute type.
|
and the value is attribute type.
|
||||||
attribute_map (dict): The key is attribute name
|
attribute_map (dict): The key is attribute name
|
||||||
and the value is json key in definition.
|
and the value is json key in definition.
|
||||||
"""
|
"""
|
||||||
swagger_types = {
|
openapi_types = {
|
||||||
'integer': 'int',
|
'integer': 'int',
|
||||||
'int32': 'int',
|
'int32': 'int',
|
||||||
'int64': 'int',
|
'int64': 'int',
|
||||||
@ -65,7 +62,7 @@ class FormatTest(object):
|
|||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, integer=None, int32=None, int64=None, number=None, float=None, double=None, string=None, byte=None, binary=None, date=None, date_time=None, uuid=None, password=None): # noqa: E501
|
def __init__(self, integer=None, int32=None, int64=None, number=None, float=None, double=None, string=None, byte=None, binary=None, date=None, date_time=None, uuid=None, password=None): # noqa: E501
|
||||||
"""FormatTest - a model defined in Swagger""" # noqa: E501
|
"""FormatTest - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
|
||||||
self._integer = None
|
self._integer = None
|
||||||
self._int32 = None
|
self._int32 = None
|
||||||
@ -418,7 +415,7 @@ class FormatTest(object):
|
|||||||
"""Returns the model properties as a dict"""
|
"""Returns the model properties as a dict"""
|
||||||
result = {}
|
result = {}
|
||||||
|
|
||||||
for attr, _ in six.iteritems(self.swagger_types):
|
for attr, _ in six.iteritems(self.openapi_types):
|
||||||
value = getattr(self, attr)
|
value = getattr(self, attr)
|
||||||
if isinstance(value, list):
|
if isinstance(value, list):
|
||||||
result[attr] = list(map(
|
result[attr] = list(map(
|
||||||
|
@ -1,13 +1,12 @@
|
|||||||
# coding: utf-8
|
# coding: utf-8
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Swagger Petstore
|
OpenAPI Petstore
|
||||||
|
|
||||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||||
|
|
||||||
OpenAPI spec version: 1.0.0
|
OpenAPI spec version: 1.0.0
|
||||||
Contact: apiteam@swagger.io
|
Generated by: https://openapi-generator.tech
|
||||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
@ -18,19 +17,19 @@ import six
|
|||||||
|
|
||||||
|
|
||||||
class HasOnlyReadOnly(object):
|
class HasOnlyReadOnly(object):
|
||||||
"""NOTE: This class is auto generated by the swagger code generator program.
|
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
|
||||||
Do not edit the class manually.
|
Do not edit the class manually.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Attributes:
|
Attributes:
|
||||||
swagger_types (dict): The key is attribute name
|
openapi_types (dict): The key is attribute name
|
||||||
and the value is attribute type.
|
and the value is attribute type.
|
||||||
attribute_map (dict): The key is attribute name
|
attribute_map (dict): The key is attribute name
|
||||||
and the value is json key in definition.
|
and the value is json key in definition.
|
||||||
"""
|
"""
|
||||||
swagger_types = {
|
openapi_types = {
|
||||||
'bar': 'str',
|
'bar': 'str',
|
||||||
'foo': 'str'
|
'foo': 'str'
|
||||||
}
|
}
|
||||||
@ -41,7 +40,7 @@ class HasOnlyReadOnly(object):
|
|||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, bar=None, foo=None): # noqa: E501
|
def __init__(self, bar=None, foo=None): # noqa: E501
|
||||||
"""HasOnlyReadOnly - a model defined in Swagger""" # noqa: E501
|
"""HasOnlyReadOnly - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
|
||||||
self._bar = None
|
self._bar = None
|
||||||
self._foo = None
|
self._foo = None
|
||||||
@ -98,7 +97,7 @@ class HasOnlyReadOnly(object):
|
|||||||
"""Returns the model properties as a dict"""
|
"""Returns the model properties as a dict"""
|
||||||
result = {}
|
result = {}
|
||||||
|
|
||||||
for attr, _ in six.iteritems(self.swagger_types):
|
for attr, _ in six.iteritems(self.openapi_types):
|
||||||
value = getattr(self, attr)
|
value = getattr(self, attr)
|
||||||
if isinstance(value, list):
|
if isinstance(value, list):
|
||||||
result[attr] = list(map(
|
result[attr] = list(map(
|
||||||
|
@ -1,13 +1,12 @@
|
|||||||
# coding: utf-8
|
# coding: utf-8
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Swagger Petstore
|
OpenAPI Petstore
|
||||||
|
|
||||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||||
|
|
||||||
OpenAPI spec version: 1.0.0
|
OpenAPI spec version: 1.0.0
|
||||||
Contact: apiteam@swagger.io
|
Generated by: https://openapi-generator.tech
|
||||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
@ -18,19 +17,19 @@ import six
|
|||||||
|
|
||||||
|
|
||||||
class List(object):
|
class List(object):
|
||||||
"""NOTE: This class is auto generated by the swagger code generator program.
|
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
|
||||||
Do not edit the class manually.
|
Do not edit the class manually.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Attributes:
|
Attributes:
|
||||||
swagger_types (dict): The key is attribute name
|
openapi_types (dict): The key is attribute name
|
||||||
and the value is attribute type.
|
and the value is attribute type.
|
||||||
attribute_map (dict): The key is attribute name
|
attribute_map (dict): The key is attribute name
|
||||||
and the value is json key in definition.
|
and the value is json key in definition.
|
||||||
"""
|
"""
|
||||||
swagger_types = {
|
openapi_types = {
|
||||||
'_123_list': 'str'
|
'_123_list': 'str'
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -39,7 +38,7 @@ class List(object):
|
|||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, _123_list=None): # noqa: E501
|
def __init__(self, _123_list=None): # noqa: E501
|
||||||
"""List - a model defined in Swagger""" # noqa: E501
|
"""List - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
|
||||||
self.__123_list = None
|
self.__123_list = None
|
||||||
self.discriminator = None
|
self.discriminator = None
|
||||||
@ -72,7 +71,7 @@ class List(object):
|
|||||||
"""Returns the model properties as a dict"""
|
"""Returns the model properties as a dict"""
|
||||||
result = {}
|
result = {}
|
||||||
|
|
||||||
for attr, _ in six.iteritems(self.swagger_types):
|
for attr, _ in six.iteritems(self.openapi_types):
|
||||||
value = getattr(self, attr)
|
value = getattr(self, attr)
|
||||||
if isinstance(value, list):
|
if isinstance(value, list):
|
||||||
result[attr] = list(map(
|
result[attr] = list(map(
|
||||||
|
@ -1,13 +1,12 @@
|
|||||||
# coding: utf-8
|
# coding: utf-8
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Swagger Petstore
|
OpenAPI Petstore
|
||||||
|
|
||||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||||
|
|
||||||
OpenAPI spec version: 1.0.0
|
OpenAPI spec version: 1.0.0
|
||||||
Contact: apiteam@swagger.io
|
Generated by: https://openapi-generator.tech
|
||||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
@ -18,19 +17,19 @@ import six
|
|||||||
|
|
||||||
|
|
||||||
class MapTest(object):
|
class MapTest(object):
|
||||||
"""NOTE: This class is auto generated by the swagger code generator program.
|
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
|
||||||
Do not edit the class manually.
|
Do not edit the class manually.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Attributes:
|
Attributes:
|
||||||
swagger_types (dict): The key is attribute name
|
openapi_types (dict): The key is attribute name
|
||||||
and the value is attribute type.
|
and the value is attribute type.
|
||||||
attribute_map (dict): The key is attribute name
|
attribute_map (dict): The key is attribute name
|
||||||
and the value is json key in definition.
|
and the value is json key in definition.
|
||||||
"""
|
"""
|
||||||
swagger_types = {
|
openapi_types = {
|
||||||
'map_map_of_string': 'dict(str, dict(str, str))',
|
'map_map_of_string': 'dict(str, dict(str, str))',
|
||||||
'map_of_enum_string': 'dict(str, str)'
|
'map_of_enum_string': 'dict(str, str)'
|
||||||
}
|
}
|
||||||
@ -41,7 +40,7 @@ class MapTest(object):
|
|||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, map_map_of_string=None, map_of_enum_string=None): # noqa: E501
|
def __init__(self, map_map_of_string=None, map_of_enum_string=None): # noqa: E501
|
||||||
"""MapTest - a model defined in Swagger""" # noqa: E501
|
"""MapTest - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
|
||||||
self._map_map_of_string = None
|
self._map_map_of_string = None
|
||||||
self._map_of_enum_string = None
|
self._map_of_enum_string = None
|
||||||
@ -105,7 +104,7 @@ class MapTest(object):
|
|||||||
"""Returns the model properties as a dict"""
|
"""Returns the model properties as a dict"""
|
||||||
result = {}
|
result = {}
|
||||||
|
|
||||||
for attr, _ in six.iteritems(self.swagger_types):
|
for attr, _ in six.iteritems(self.openapi_types):
|
||||||
value = getattr(self, attr)
|
value = getattr(self, attr)
|
||||||
if isinstance(value, list):
|
if isinstance(value, list):
|
||||||
result[attr] = list(map(
|
result[attr] = list(map(
|
||||||
|
@ -1,13 +1,12 @@
|
|||||||
# coding: utf-8
|
# coding: utf-8
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Swagger Petstore
|
OpenAPI Petstore
|
||||||
|
|
||||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||||
|
|
||||||
OpenAPI spec version: 1.0.0
|
OpenAPI spec version: 1.0.0
|
||||||
Contact: apiteam@swagger.io
|
Generated by: https://openapi-generator.tech
|
||||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
@ -20,19 +19,19 @@ from petstore_api.models.animal import Animal # noqa: F401,E501
|
|||||||
|
|
||||||
|
|
||||||
class MixedPropertiesAndAdditionalPropertiesClass(object):
|
class MixedPropertiesAndAdditionalPropertiesClass(object):
|
||||||
"""NOTE: This class is auto generated by the swagger code generator program.
|
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
|
||||||
Do not edit the class manually.
|
Do not edit the class manually.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Attributes:
|
Attributes:
|
||||||
swagger_types (dict): The key is attribute name
|
openapi_types (dict): The key is attribute name
|
||||||
and the value is attribute type.
|
and the value is attribute type.
|
||||||
attribute_map (dict): The key is attribute name
|
attribute_map (dict): The key is attribute name
|
||||||
and the value is json key in definition.
|
and the value is json key in definition.
|
||||||
"""
|
"""
|
||||||
swagger_types = {
|
openapi_types = {
|
||||||
'uuid': 'str',
|
'uuid': 'str',
|
||||||
'date_time': 'datetime',
|
'date_time': 'datetime',
|
||||||
'map': 'dict(str, Animal)'
|
'map': 'dict(str, Animal)'
|
||||||
@ -45,7 +44,7 @@ class MixedPropertiesAndAdditionalPropertiesClass(object):
|
|||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, uuid=None, date_time=None, map=None): # noqa: E501
|
def __init__(self, uuid=None, date_time=None, map=None): # noqa: E501
|
||||||
"""MixedPropertiesAndAdditionalPropertiesClass - a model defined in Swagger""" # noqa: E501
|
"""MixedPropertiesAndAdditionalPropertiesClass - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
|
||||||
self._uuid = None
|
self._uuid = None
|
||||||
self._date_time = None
|
self._date_time = None
|
||||||
@ -126,7 +125,7 @@ class MixedPropertiesAndAdditionalPropertiesClass(object):
|
|||||||
"""Returns the model properties as a dict"""
|
"""Returns the model properties as a dict"""
|
||||||
result = {}
|
result = {}
|
||||||
|
|
||||||
for attr, _ in six.iteritems(self.swagger_types):
|
for attr, _ in six.iteritems(self.openapi_types):
|
||||||
value = getattr(self, attr)
|
value = getattr(self, attr)
|
||||||
if isinstance(value, list):
|
if isinstance(value, list):
|
||||||
result[attr] = list(map(
|
result[attr] = list(map(
|
||||||
|
@ -1,13 +1,12 @@
|
|||||||
# coding: utf-8
|
# coding: utf-8
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Swagger Petstore
|
OpenAPI Petstore
|
||||||
|
|
||||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||||
|
|
||||||
OpenAPI spec version: 1.0.0
|
OpenAPI spec version: 1.0.0
|
||||||
Contact: apiteam@swagger.io
|
Generated by: https://openapi-generator.tech
|
||||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
@ -18,19 +17,19 @@ import six
|
|||||||
|
|
||||||
|
|
||||||
class Model200Response(object):
|
class Model200Response(object):
|
||||||
"""NOTE: This class is auto generated by the swagger code generator program.
|
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
|
||||||
Do not edit the class manually.
|
Do not edit the class manually.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Attributes:
|
Attributes:
|
||||||
swagger_types (dict): The key is attribute name
|
openapi_types (dict): The key is attribute name
|
||||||
and the value is attribute type.
|
and the value is attribute type.
|
||||||
attribute_map (dict): The key is attribute name
|
attribute_map (dict): The key is attribute name
|
||||||
and the value is json key in definition.
|
and the value is json key in definition.
|
||||||
"""
|
"""
|
||||||
swagger_types = {
|
openapi_types = {
|
||||||
'name': 'int',
|
'name': 'int',
|
||||||
'_class': 'str'
|
'_class': 'str'
|
||||||
}
|
}
|
||||||
@ -41,7 +40,7 @@ class Model200Response(object):
|
|||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, name=None, _class=None): # noqa: E501
|
def __init__(self, name=None, _class=None): # noqa: E501
|
||||||
"""Model200Response - a model defined in Swagger""" # noqa: E501
|
"""Model200Response - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
|
||||||
self._name = None
|
self._name = None
|
||||||
self.__class = None
|
self.__class = None
|
||||||
@ -98,7 +97,7 @@ class Model200Response(object):
|
|||||||
"""Returns the model properties as a dict"""
|
"""Returns the model properties as a dict"""
|
||||||
result = {}
|
result = {}
|
||||||
|
|
||||||
for attr, _ in six.iteritems(self.swagger_types):
|
for attr, _ in six.iteritems(self.openapi_types):
|
||||||
value = getattr(self, attr)
|
value = getattr(self, attr)
|
||||||
if isinstance(value, list):
|
if isinstance(value, list):
|
||||||
result[attr] = list(map(
|
result[attr] = list(map(
|
||||||
|
@ -1,13 +1,12 @@
|
|||||||
# coding: utf-8
|
# coding: utf-8
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Swagger Petstore
|
OpenAPI Petstore
|
||||||
|
|
||||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||||
|
|
||||||
OpenAPI spec version: 1.0.0
|
OpenAPI spec version: 1.0.0
|
||||||
Contact: apiteam@swagger.io
|
Generated by: https://openapi-generator.tech
|
||||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
@ -18,19 +17,19 @@ import six
|
|||||||
|
|
||||||
|
|
||||||
class ModelReturn(object):
|
class ModelReturn(object):
|
||||||
"""NOTE: This class is auto generated by the swagger code generator program.
|
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
|
||||||
Do not edit the class manually.
|
Do not edit the class manually.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Attributes:
|
Attributes:
|
||||||
swagger_types (dict): The key is attribute name
|
openapi_types (dict): The key is attribute name
|
||||||
and the value is attribute type.
|
and the value is attribute type.
|
||||||
attribute_map (dict): The key is attribute name
|
attribute_map (dict): The key is attribute name
|
||||||
and the value is json key in definition.
|
and the value is json key in definition.
|
||||||
"""
|
"""
|
||||||
swagger_types = {
|
openapi_types = {
|
||||||
'_return': 'int'
|
'_return': 'int'
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -39,7 +38,7 @@ class ModelReturn(object):
|
|||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, _return=None): # noqa: E501
|
def __init__(self, _return=None): # noqa: E501
|
||||||
"""ModelReturn - a model defined in Swagger""" # noqa: E501
|
"""ModelReturn - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
|
||||||
self.__return = None
|
self.__return = None
|
||||||
self.discriminator = None
|
self.discriminator = None
|
||||||
@ -72,7 +71,7 @@ class ModelReturn(object):
|
|||||||
"""Returns the model properties as a dict"""
|
"""Returns the model properties as a dict"""
|
||||||
result = {}
|
result = {}
|
||||||
|
|
||||||
for attr, _ in six.iteritems(self.swagger_types):
|
for attr, _ in six.iteritems(self.openapi_types):
|
||||||
value = getattr(self, attr)
|
value = getattr(self, attr)
|
||||||
if isinstance(value, list):
|
if isinstance(value, list):
|
||||||
result[attr] = list(map(
|
result[attr] = list(map(
|
||||||
|
@ -1,13 +1,12 @@
|
|||||||
# coding: utf-8
|
# coding: utf-8
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Swagger Petstore
|
OpenAPI Petstore
|
||||||
|
|
||||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||||
|
|
||||||
OpenAPI spec version: 1.0.0
|
OpenAPI spec version: 1.0.0
|
||||||
Contact: apiteam@swagger.io
|
Generated by: https://openapi-generator.tech
|
||||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
@ -18,19 +17,19 @@ import six
|
|||||||
|
|
||||||
|
|
||||||
class Name(object):
|
class Name(object):
|
||||||
"""NOTE: This class is auto generated by the swagger code generator program.
|
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
|
||||||
Do not edit the class manually.
|
Do not edit the class manually.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Attributes:
|
Attributes:
|
||||||
swagger_types (dict): The key is attribute name
|
openapi_types (dict): The key is attribute name
|
||||||
and the value is attribute type.
|
and the value is attribute type.
|
||||||
attribute_map (dict): The key is attribute name
|
attribute_map (dict): The key is attribute name
|
||||||
and the value is json key in definition.
|
and the value is json key in definition.
|
||||||
"""
|
"""
|
||||||
swagger_types = {
|
openapi_types = {
|
||||||
'name': 'int',
|
'name': 'int',
|
||||||
'snake_case': 'int',
|
'snake_case': 'int',
|
||||||
'_property': 'str',
|
'_property': 'str',
|
||||||
@ -45,7 +44,7 @@ class Name(object):
|
|||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, name=None, snake_case=None, _property=None, _123_number=None): # noqa: E501
|
def __init__(self, name=None, snake_case=None, _property=None, _123_number=None): # noqa: E501
|
||||||
"""Name - a model defined in Swagger""" # noqa: E501
|
"""Name - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
|
||||||
self._name = None
|
self._name = None
|
||||||
self._snake_case = None
|
self._snake_case = None
|
||||||
@ -151,7 +150,7 @@ class Name(object):
|
|||||||
"""Returns the model properties as a dict"""
|
"""Returns the model properties as a dict"""
|
||||||
result = {}
|
result = {}
|
||||||
|
|
||||||
for attr, _ in six.iteritems(self.swagger_types):
|
for attr, _ in six.iteritems(self.openapi_types):
|
||||||
value = getattr(self, attr)
|
value = getattr(self, attr)
|
||||||
if isinstance(value, list):
|
if isinstance(value, list):
|
||||||
result[attr] = list(map(
|
result[attr] = list(map(
|
||||||
|
@ -1,13 +1,12 @@
|
|||||||
# coding: utf-8
|
# coding: utf-8
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Swagger Petstore
|
OpenAPI Petstore
|
||||||
|
|
||||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||||
|
|
||||||
OpenAPI spec version: 1.0.0
|
OpenAPI spec version: 1.0.0
|
||||||
Contact: apiteam@swagger.io
|
Generated by: https://openapi-generator.tech
|
||||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
@ -18,19 +17,19 @@ import six
|
|||||||
|
|
||||||
|
|
||||||
class NumberOnly(object):
|
class NumberOnly(object):
|
||||||
"""NOTE: This class is auto generated by the swagger code generator program.
|
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
|
||||||
Do not edit the class manually.
|
Do not edit the class manually.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Attributes:
|
Attributes:
|
||||||
swagger_types (dict): The key is attribute name
|
openapi_types (dict): The key is attribute name
|
||||||
and the value is attribute type.
|
and the value is attribute type.
|
||||||
attribute_map (dict): The key is attribute name
|
attribute_map (dict): The key is attribute name
|
||||||
and the value is json key in definition.
|
and the value is json key in definition.
|
||||||
"""
|
"""
|
||||||
swagger_types = {
|
openapi_types = {
|
||||||
'just_number': 'float'
|
'just_number': 'float'
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -39,7 +38,7 @@ class NumberOnly(object):
|
|||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, just_number=None): # noqa: E501
|
def __init__(self, just_number=None): # noqa: E501
|
||||||
"""NumberOnly - a model defined in Swagger""" # noqa: E501
|
"""NumberOnly - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
|
||||||
self._just_number = None
|
self._just_number = None
|
||||||
self.discriminator = None
|
self.discriminator = None
|
||||||
@ -72,7 +71,7 @@ class NumberOnly(object):
|
|||||||
"""Returns the model properties as a dict"""
|
"""Returns the model properties as a dict"""
|
||||||
result = {}
|
result = {}
|
||||||
|
|
||||||
for attr, _ in six.iteritems(self.swagger_types):
|
for attr, _ in six.iteritems(self.openapi_types):
|
||||||
value = getattr(self, attr)
|
value = getattr(self, attr)
|
||||||
if isinstance(value, list):
|
if isinstance(value, list):
|
||||||
result[attr] = list(map(
|
result[attr] = list(map(
|
||||||
|
@ -1,13 +1,12 @@
|
|||||||
# coding: utf-8
|
# coding: utf-8
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Swagger Petstore
|
OpenAPI Petstore
|
||||||
|
|
||||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||||
|
|
||||||
OpenAPI spec version: 1.0.0
|
OpenAPI spec version: 1.0.0
|
||||||
Contact: apiteam@swagger.io
|
Generated by: https://openapi-generator.tech
|
||||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
@ -18,19 +17,19 @@ import six
|
|||||||
|
|
||||||
|
|
||||||
class Order(object):
|
class Order(object):
|
||||||
"""NOTE: This class is auto generated by the swagger code generator program.
|
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
|
||||||
Do not edit the class manually.
|
Do not edit the class manually.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Attributes:
|
Attributes:
|
||||||
swagger_types (dict): The key is attribute name
|
openapi_types (dict): The key is attribute name
|
||||||
and the value is attribute type.
|
and the value is attribute type.
|
||||||
attribute_map (dict): The key is attribute name
|
attribute_map (dict): The key is attribute name
|
||||||
and the value is json key in definition.
|
and the value is json key in definition.
|
||||||
"""
|
"""
|
||||||
swagger_types = {
|
openapi_types = {
|
||||||
'id': 'int',
|
'id': 'int',
|
||||||
'pet_id': 'int',
|
'pet_id': 'int',
|
||||||
'quantity': 'int',
|
'quantity': 'int',
|
||||||
@ -49,7 +48,7 @@ class Order(object):
|
|||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, id=None, pet_id=None, quantity=None, ship_date=None, status=None, complete=False): # noqa: E501
|
def __init__(self, id=None, pet_id=None, quantity=None, ship_date=None, status=None, complete=False): # noqa: E501
|
||||||
"""Order - a model defined in Swagger""" # noqa: E501
|
"""Order - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
|
||||||
self._id = None
|
self._id = None
|
||||||
self._pet_id = None
|
self._pet_id = None
|
||||||
@ -210,7 +209,7 @@ class Order(object):
|
|||||||
"""Returns the model properties as a dict"""
|
"""Returns the model properties as a dict"""
|
||||||
result = {}
|
result = {}
|
||||||
|
|
||||||
for attr, _ in six.iteritems(self.swagger_types):
|
for attr, _ in six.iteritems(self.openapi_types):
|
||||||
value = getattr(self, attr)
|
value = getattr(self, attr)
|
||||||
if isinstance(value, list):
|
if isinstance(value, list):
|
||||||
result[attr] = list(map(
|
result[attr] = list(map(
|
||||||
|
@ -1,13 +1,12 @@
|
|||||||
# coding: utf-8
|
# coding: utf-8
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Swagger Petstore
|
OpenAPI Petstore
|
||||||
|
|
||||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||||
|
|
||||||
OpenAPI spec version: 1.0.0
|
OpenAPI spec version: 1.0.0
|
||||||
Contact: apiteam@swagger.io
|
Generated by: https://openapi-generator.tech
|
||||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
@ -16,28 +15,24 @@ import re # noqa: F401
|
|||||||
|
|
||||||
import six
|
import six
|
||||||
|
|
||||||
from petstore_api.models.outer_boolean import OuterBoolean # noqa: F401,E501
|
|
||||||
from petstore_api.models.outer_number import OuterNumber # noqa: F401,E501
|
|
||||||
from petstore_api.models.outer_string import OuterString # noqa: F401,E501
|
|
||||||
|
|
||||||
|
|
||||||
class OuterComposite(object):
|
class OuterComposite(object):
|
||||||
"""NOTE: This class is auto generated by the swagger code generator program.
|
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
|
||||||
Do not edit the class manually.
|
Do not edit the class manually.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Attributes:
|
Attributes:
|
||||||
swagger_types (dict): The key is attribute name
|
openapi_types (dict): The key is attribute name
|
||||||
and the value is attribute type.
|
and the value is attribute type.
|
||||||
attribute_map (dict): The key is attribute name
|
attribute_map (dict): The key is attribute name
|
||||||
and the value is json key in definition.
|
and the value is json key in definition.
|
||||||
"""
|
"""
|
||||||
swagger_types = {
|
openapi_types = {
|
||||||
'my_number': 'OuterNumber',
|
'my_number': 'float',
|
||||||
'my_string': 'OuterString',
|
'my_string': 'str',
|
||||||
'my_boolean': 'OuterBoolean'
|
'my_boolean': 'bool'
|
||||||
}
|
}
|
||||||
|
|
||||||
attribute_map = {
|
attribute_map = {
|
||||||
@ -47,7 +42,7 @@ class OuterComposite(object):
|
|||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, my_number=None, my_string=None, my_boolean=None): # noqa: E501
|
def __init__(self, my_number=None, my_string=None, my_boolean=None): # noqa: E501
|
||||||
"""OuterComposite - a model defined in Swagger""" # noqa: E501
|
"""OuterComposite - a model defined in OpenAPI""" # noqa: E501
|
||||||
|
|
||||||
self._my_number = None
|
self._my_number = None
|
||||||
self._my_string = None
|
self._my_string = None
|
||||||
@ -67,7 +62,7 @@ class OuterComposite(object):
|
|||||||
|
|
||||||
|
|
||||||
:return: The my_number of this OuterComposite. # noqa: E501
|
:return: The my_number of this OuterComposite. # noqa: E501
|
||||||
:rtype: OuterNumber
|
:rtype: float
|
||||||
"""
|
"""
|
||||||
return self._my_number
|
return self._my_number
|
||||||
|
|
||||||
@ -77,7 +72,7 @@ class OuterComposite(object):
|
|||||||
|
|
||||||
|
|
||||||
:param my_number: The my_number of this OuterComposite. # noqa: E501
|
:param my_number: The my_number of this OuterComposite. # noqa: E501
|
||||||
:type: OuterNumber
|
:type: float
|
||||||
"""
|
"""
|
||||||
|
|
||||||
self._my_number = my_number
|
self._my_number = my_number
|
||||||
@ -88,7 +83,7 @@ class OuterComposite(object):
|
|||||||
|
|
||||||
|
|
||||||
:return: The my_string of this OuterComposite. # noqa: E501
|
:return: The my_string of this OuterComposite. # noqa: E501
|
||||||
:rtype: OuterString
|
:rtype: str
|
||||||
"""
|
"""
|
||||||
return self._my_string
|
return self._my_string
|
||||||
|
|
||||||
@ -98,7 +93,7 @@ class OuterComposite(object):
|
|||||||
|
|
||||||
|
|
||||||
:param my_string: The my_string of this OuterComposite. # noqa: E501
|
:param my_string: The my_string of this OuterComposite. # noqa: E501
|
||||||
:type: OuterString
|
:type: str
|
||||||
"""
|
"""
|
||||||
|
|
||||||
self._my_string = my_string
|
self._my_string = my_string
|
||||||
@ -109,7 +104,7 @@ class OuterComposite(object):
|
|||||||
|
|
||||||
|
|
||||||
:return: The my_boolean of this OuterComposite. # noqa: E501
|
:return: The my_boolean of this OuterComposite. # noqa: E501
|
||||||
:rtype: OuterBoolean
|
:rtype: bool
|
||||||
"""
|
"""
|
||||||
return self._my_boolean
|
return self._my_boolean
|
||||||
|
|
||||||
@ -119,7 +114,7 @@ class OuterComposite(object):
|
|||||||
|
|
||||||
|
|
||||||
:param my_boolean: The my_boolean of this OuterComposite. # noqa: E501
|
:param my_boolean: The my_boolean of this OuterComposite. # noqa: E501
|
||||||
:type: OuterBoolean
|
:type: bool
|
||||||
"""
|
"""
|
||||||
|
|
||||||
self._my_boolean = my_boolean
|
self._my_boolean = my_boolean
|
||||||
@ -128,7 +123,7 @@ class OuterComposite(object):
|
|||||||
"""Returns the model properties as a dict"""
|
"""Returns the model properties as a dict"""
|
||||||
result = {}
|
result = {}
|
||||||
|
|
||||||
for attr, _ in six.iteritems(self.swagger_types):
|
for attr, _ in six.iteritems(self.openapi_types):
|
||||||
value = getattr(self, attr)
|
value = getattr(self, attr)
|
||||||
if isinstance(value, list):
|
if isinstance(value, list):
|
||||||
result[attr] = list(map(
|
result[attr] = list(map(
|
||||||
|
@ -1,13 +1,12 @@
|
|||||||
# coding: utf-8
|
# coding: utf-8
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Swagger Petstore
|
OpenAPI Petstore
|
||||||
|
|
||||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
|
||||||
|
|
||||||
OpenAPI spec version: 1.0.0
|
OpenAPI spec version: 1.0.0
|
||||||
Contact: apiteam@swagger.io
|
Generated by: https://openapi-generator.tech
|
||||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
@ -18,7 +17,7 @@ import six
|
|||||||
|
|
||||||
|
|
||||||
class OuterEnum(object):
|
class OuterEnum(object):
|
||||||
"""NOTE: This class is auto generated by the swagger code generator program.
|
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
|
||||||
Do not edit the class manually.
|
Do not edit the class manually.
|
||||||
"""
|
"""
|
||||||
@ -32,26 +31,26 @@ class OuterEnum(object):
|
|||||||
|
|
||||||
"""
|
"""
|
||||||
Attributes:
|
Attributes:
|
||||||
swagger_types (dict): The key is attribute name
|
openapi_types (dict): The key is attribute name
|
||||||
and the value is attribute type.
|
and the value is attribute type.
|
||||||
attribute_map (dict): The key is attribute name
|
attribute_map (dict): The key is attribute name
|
||||||
and the value is json key in definition.
|
and the value is json key in definition.
|
||||||
"""
|
"""
|
||||||
swagger_types = {
|
openapi_types = {
|
||||||
}
|
}
|
||||||
|
|
||||||
attribute_map = {
|
attribute_map = {
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self): # noqa: E501
|
def __init__(self): # noqa: E501
|
||||||
"""OuterEnum - a model defined in Swagger""" # noqa: E501
|
"""OuterEnum - a model defined in OpenAPI""" # noqa: E501
|
||||||
self.discriminator = None
|
self.discriminator = None
|
||||||
|
|
||||||
def to_dict(self):
|
def to_dict(self):
|
||||||
"""Returns the model properties as a dict"""
|
"""Returns the model properties as a dict"""
|
||||||
result = {}
|
result = {}
|
||||||
|
|
||||||
for attr, _ in six.iteritems(self.swagger_types):
|
for attr, _ in six.iteritems(self.openapi_types):
|
||||||
value = getattr(self, attr)
|
value = getattr(self, attr)
|
||||||
if isinstance(value, list):
|
if isinstance(value, list):
|
||||||
result[attr] = list(map(
|
result[attr] = list(map(
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user