forked from loafle/openapi-generator-original
python code style enhancement (#4238)
This commit is contained in:
@@ -35,9 +35,12 @@ class {{classname}}(object):
|
||||
|
||||
def {{operationId}}(self, {{#sortParamsByRequiredFlag}}{{#allParams}}{{#required}}{{paramName}}, {{/required}}{{/allParams}}{{/sortParamsByRequiredFlag}}**kwargs):
|
||||
"""
|
||||
{{#summary}}
|
||||
{{{summary}}}
|
||||
{{/summary}}
|
||||
{{#notes}}
|
||||
{{{notes}}}
|
||||
|
||||
{{/notes}}
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please define a `callback` function
|
||||
to be invoked when receiving the response.
|
||||
@@ -54,7 +57,7 @@ class {{classname}}(object):
|
||||
:param callback function: The callback function
|
||||
for asynchronous request. (optional)
|
||||
{{#allParams}}
|
||||
:param {{dataType}} {{paramName}}: {{{description}}}{{#required}} (required){{/required}}{{#optional}}(optional){{/optional}}
|
||||
:param {{dataType}} {{paramName}}:{{#description}} {{{description}}}{{/description}}{{#required}} (required){{/required}}{{#optional}}(optional){{/optional}}
|
||||
{{/allParams}}
|
||||
:return: {{#returnType}}{{returnType}}{{/returnType}}{{^returnType}}None{{/returnType}}
|
||||
If the method is called asynchronously,
|
||||
@@ -69,9 +72,12 @@ class {{classname}}(object):
|
||||
|
||||
def {{operationId}}_with_http_info(self, {{#sortParamsByRequiredFlag}}{{#allParams}}{{#required}}{{paramName}}, {{/required}}{{/allParams}}{{/sortParamsByRequiredFlag}}**kwargs):
|
||||
"""
|
||||
{{#summary}}
|
||||
{{{summary}}}
|
||||
{{/summary}}
|
||||
{{#notes}}
|
||||
{{{notes}}}
|
||||
|
||||
{{/notes}}
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please define a `callback` function
|
||||
to be invoked when receiving the response.
|
||||
@@ -88,7 +94,7 @@ class {{classname}}(object):
|
||||
:param callback function: The callback function
|
||||
for asynchronous request. (optional)
|
||||
{{#allParams}}
|
||||
:param {{dataType}} {{paramName}}: {{{description}}}{{#required}} (required){{/required}}{{#optional}}(optional{{#defaultValue}}, default to {{{.}}}{{/defaultValue}}){{/optional}}
|
||||
:param {{dataType}} {{paramName}}:{{#description}} {{{description}}}{{/description}}{{#required}} (required){{/required}}{{#optional}}(optional{{#defaultValue}}, default to {{{.}}}{{/defaultValue}}){{/optional}}
|
||||
{{/allParams}}
|
||||
:return: {{#returnType}}{{returnType}}{{/returnType}}{{^returnType}}None{{/returnType}}
|
||||
If the method is called asynchronously,
|
||||
@@ -149,8 +155,10 @@ class {{classname}}(object):
|
||||
raise ValueError("Invalid value for parameter `{{paramName}}` when calling `{{operationId}}`, number of items must be greater than or equal to `{{minItems}}`")
|
||||
{{/minItems}}
|
||||
{{/hasValidation}}
|
||||
{{/allParams}}
|
||||
{{#-last}}
|
||||
|
||||
{{/-last}}
|
||||
{{/allParams}}
|
||||
collection_formats = {}
|
||||
|
||||
resource_path = '{{path}}'.replace('{format}', 'json')
|
||||
|
||||
@@ -37,13 +37,14 @@ class {{classname}}(object):
|
||||
self._{{name}} = {{name}}
|
||||
{{/vars}}
|
||||
|
||||
{{#vars}}{{#-first}}
|
||||
{{/-first}}
|
||||
{{#vars}}
|
||||
@property
|
||||
def {{name}}(self):
|
||||
"""
|
||||
Gets the {{name}} of this {{classname}}.
|
||||
{{#description}} {{{description}}}{{/description}}
|
||||
{{#description}}
|
||||
{{{description}}}
|
||||
{{/description}}
|
||||
|
||||
:return: The {{name}} of this {{classname}}.
|
||||
:rtype: {{datatype}}
|
||||
@@ -54,7 +55,9 @@ class {{classname}}(object):
|
||||
def {{name}}(self, {{name}}):
|
||||
"""
|
||||
Sets the {{name}} of this {{classname}}.
|
||||
{{#description}} {{{description}}}{{/description}}
|
||||
{{#description}}
|
||||
{{{description}}}
|
||||
{{/description}}
|
||||
|
||||
:param {{name}}: The {{name}} of this {{classname}}.
|
||||
:type: {{datatype}}
|
||||
|
||||
@@ -7,7 +7,9 @@ from setuptools import setup, find_packages
|
||||
|
||||
NAME = "{{packageName}}"
|
||||
VERSION = "{{packageVersion}}"
|
||||
{{#apiInfo}}{{#apis}}{{^hasMore}}
|
||||
{{#apiInfo}}
|
||||
{{#apis}}
|
||||
{{^hasMore}}
|
||||
# To install the library, run the following
|
||||
#
|
||||
# python setup.py install
|
||||
@@ -31,4 +33,6 @@ setup(
|
||||
{{appDescription}}
|
||||
"""
|
||||
)
|
||||
{{/hasMore}}{{/apis}}{{/apiInfo}}
|
||||
{{/hasMore}}
|
||||
{{/apis}}
|
||||
{{/apiInfo}}
|
||||
|
||||
@@ -120,6 +120,7 @@ Class | Method | HTTP request | Description
|
||||
- [Name](docs/Name.md)
|
||||
- [NumberOnly](docs/NumberOnly.md)
|
||||
- [Order](docs/Order.md)
|
||||
- [OuterEnum](docs/OuterEnum.md)
|
||||
- [Pet](docs/Pet.md)
|
||||
- [ReadOnlyFirst](docs/ReadOnlyFirst.md)
|
||||
- [SpecialModelName](docs/SpecialModelName.md)
|
||||
|
||||
@@ -6,6 +6,7 @@ Name | Type | Description | Notes
|
||||
**enum_string** | **str** | | [optional]
|
||||
**enum_integer** | **int** | | [optional]
|
||||
**enum_number** | **float** | | [optional]
|
||||
**outer_enum** | [**OuterEnum**](OuterEnum.md) | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
9
samples/client/petstore/python/docs/OuterEnum.md
Normal file
9
samples/client/petstore/python/docs/OuterEnum.md
Normal file
@@ -0,0 +1,9 @@
|
||||
# OuterEnum
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
@@ -38,6 +38,7 @@ from .models.model_return import ModelReturn
|
||||
from .models.name import Name
|
||||
from .models.number_only import NumberOnly
|
||||
from .models.order import Order
|
||||
from .models.outer_enum import OuterEnum
|
||||
from .models.pet import Pet
|
||||
from .models.read_only_first import ReadOnlyFirst
|
||||
from .models.special_model_name import SpecialModelName
|
||||
|
||||
@@ -43,8 +43,6 @@ class FakeApi(object):
|
||||
def test_client_model(self, body, **kwargs):
|
||||
"""
|
||||
To test \"client\" model
|
||||
|
||||
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please define a `callback` function
|
||||
to be invoked when receiving the response.
|
||||
@@ -70,8 +68,6 @@ class FakeApi(object):
|
||||
def test_client_model_with_http_info(self, body, **kwargs):
|
||||
"""
|
||||
To test \"client\" model
|
||||
|
||||
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please define a `callback` function
|
||||
to be invoked when receiving the response.
|
||||
@@ -156,7 +152,6 @@ class FakeApi(object):
|
||||
"""
|
||||
Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||
Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please define a `callback` function
|
||||
to be invoked when receiving the response.
|
||||
@@ -196,7 +191,6 @@ class FakeApi(object):
|
||||
"""
|
||||
Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||
Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please define a `callback` function
|
||||
to be invoked when receiving the response.
|
||||
@@ -354,8 +348,6 @@ class FakeApi(object):
|
||||
def test_enum_parameters(self, **kwargs):
|
||||
"""
|
||||
To test enum parameters
|
||||
|
||||
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please define a `callback` function
|
||||
to be invoked when receiving the response.
|
||||
@@ -388,8 +380,6 @@ class FakeApi(object):
|
||||
def test_enum_parameters_with_http_info(self, **kwargs):
|
||||
"""
|
||||
To test enum parameters
|
||||
|
||||
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please define a `callback` function
|
||||
to be invoked when receiving the response.
|
||||
|
||||
@@ -44,7 +44,6 @@ class PetApi(object):
|
||||
"""
|
||||
Add a new pet to the store
|
||||
|
||||
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please define a `callback` function
|
||||
to be invoked when receiving the response.
|
||||
@@ -71,7 +70,6 @@ class PetApi(object):
|
||||
"""
|
||||
Add a new pet to the store
|
||||
|
||||
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please define a `callback` function
|
||||
to be invoked when receiving the response.
|
||||
@@ -156,7 +154,6 @@ class PetApi(object):
|
||||
"""
|
||||
Deletes a pet
|
||||
|
||||
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please define a `callback` function
|
||||
to be invoked when receiving the response.
|
||||
@@ -184,7 +181,6 @@ class PetApi(object):
|
||||
"""
|
||||
Deletes a pet
|
||||
|
||||
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please define a `callback` function
|
||||
to be invoked when receiving the response.
|
||||
@@ -272,7 +268,6 @@ class PetApi(object):
|
||||
"""
|
||||
Finds Pets by status
|
||||
Multiple status values can be provided with comma separated strings
|
||||
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please define a `callback` function
|
||||
to be invoked when receiving the response.
|
||||
@@ -299,7 +294,6 @@ class PetApi(object):
|
||||
"""
|
||||
Finds Pets by status
|
||||
Multiple status values can be provided with comma separated strings
|
||||
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please define a `callback` function
|
||||
to be invoked when receiving the response.
|
||||
@@ -385,7 +379,6 @@ class PetApi(object):
|
||||
"""
|
||||
Finds Pets by tags
|
||||
Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
|
||||
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please define a `callback` function
|
||||
to be invoked when receiving the response.
|
||||
@@ -412,7 +405,6 @@ class PetApi(object):
|
||||
"""
|
||||
Finds Pets by tags
|
||||
Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
|
||||
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please define a `callback` function
|
||||
to be invoked when receiving the response.
|
||||
@@ -498,7 +490,6 @@ class PetApi(object):
|
||||
"""
|
||||
Find pet by ID
|
||||
Returns a single pet
|
||||
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please define a `callback` function
|
||||
to be invoked when receiving the response.
|
||||
@@ -525,7 +516,6 @@ class PetApi(object):
|
||||
"""
|
||||
Find pet by ID
|
||||
Returns a single pet
|
||||
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please define a `callback` function
|
||||
to be invoked when receiving the response.
|
||||
@@ -610,7 +600,6 @@ class PetApi(object):
|
||||
"""
|
||||
Update an existing pet
|
||||
|
||||
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please define a `callback` function
|
||||
to be invoked when receiving the response.
|
||||
@@ -637,7 +626,6 @@ class PetApi(object):
|
||||
"""
|
||||
Update an existing pet
|
||||
|
||||
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please define a `callback` function
|
||||
to be invoked when receiving the response.
|
||||
@@ -722,7 +710,6 @@ class PetApi(object):
|
||||
"""
|
||||
Updates a pet in the store with form data
|
||||
|
||||
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please define a `callback` function
|
||||
to be invoked when receiving the response.
|
||||
@@ -751,7 +738,6 @@ class PetApi(object):
|
||||
"""
|
||||
Updates a pet in the store with form data
|
||||
|
||||
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please define a `callback` function
|
||||
to be invoked when receiving the response.
|
||||
@@ -842,7 +828,6 @@ class PetApi(object):
|
||||
"""
|
||||
uploads an image
|
||||
|
||||
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please define a `callback` function
|
||||
to be invoked when receiving the response.
|
||||
@@ -871,7 +856,6 @@ class PetApi(object):
|
||||
"""
|
||||
uploads an image
|
||||
|
||||
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please define a `callback` function
|
||||
to be invoked when receiving the response.
|
||||
|
||||
@@ -44,7 +44,6 @@ class StoreApi(object):
|
||||
"""
|
||||
Delete purchase order by ID
|
||||
For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors
|
||||
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please define a `callback` function
|
||||
to be invoked when receiving the response.
|
||||
@@ -71,7 +70,6 @@ class StoreApi(object):
|
||||
"""
|
||||
Delete purchase order by ID
|
||||
For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors
|
||||
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please define a `callback` function
|
||||
to be invoked when receiving the response.
|
||||
@@ -158,7 +156,6 @@ class StoreApi(object):
|
||||
"""
|
||||
Returns pet inventories by status
|
||||
Returns a map of status codes to quantities
|
||||
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please define a `callback` function
|
||||
to be invoked when receiving the response.
|
||||
@@ -184,7 +181,6 @@ class StoreApi(object):
|
||||
"""
|
||||
Returns pet inventories by status
|
||||
Returns a map of status codes to quantities
|
||||
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please define a `callback` function
|
||||
to be invoked when receiving the response.
|
||||
@@ -216,7 +212,6 @@ class StoreApi(object):
|
||||
params[key] = val
|
||||
del params['kwargs']
|
||||
|
||||
|
||||
collection_formats = {}
|
||||
|
||||
resource_path = '/store/inventory'.replace('{format}', 'json')
|
||||
@@ -263,7 +258,6 @@ class StoreApi(object):
|
||||
"""
|
||||
Find purchase order by ID
|
||||
For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
|
||||
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please define a `callback` function
|
||||
to be invoked when receiving the response.
|
||||
@@ -290,7 +284,6 @@ class StoreApi(object):
|
||||
"""
|
||||
Find purchase order by ID
|
||||
For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
|
||||
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please define a `callback` function
|
||||
to be invoked when receiving the response.
|
||||
@@ -379,7 +372,6 @@ class StoreApi(object):
|
||||
"""
|
||||
Place an order for a pet
|
||||
|
||||
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please define a `callback` function
|
||||
to be invoked when receiving the response.
|
||||
@@ -406,7 +398,6 @@ class StoreApi(object):
|
||||
"""
|
||||
Place an order for a pet
|
||||
|
||||
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please define a `callback` function
|
||||
to be invoked when receiving the response.
|
||||
|
||||
@@ -44,7 +44,6 @@ class UserApi(object):
|
||||
"""
|
||||
Create user
|
||||
This can only be done by the logged in user.
|
||||
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please define a `callback` function
|
||||
to be invoked when receiving the response.
|
||||
@@ -71,7 +70,6 @@ class UserApi(object):
|
||||
"""
|
||||
Create user
|
||||
This can only be done by the logged in user.
|
||||
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please define a `callback` function
|
||||
to be invoked when receiving the response.
|
||||
@@ -156,7 +154,6 @@ class UserApi(object):
|
||||
"""
|
||||
Creates list of users with given input array
|
||||
|
||||
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please define a `callback` function
|
||||
to be invoked when receiving the response.
|
||||
@@ -183,7 +180,6 @@ class UserApi(object):
|
||||
"""
|
||||
Creates list of users with given input array
|
||||
|
||||
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please define a `callback` function
|
||||
to be invoked when receiving the response.
|
||||
@@ -268,7 +264,6 @@ class UserApi(object):
|
||||
"""
|
||||
Creates list of users with given input array
|
||||
|
||||
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please define a `callback` function
|
||||
to be invoked when receiving the response.
|
||||
@@ -295,7 +290,6 @@ class UserApi(object):
|
||||
"""
|
||||
Creates list of users with given input array
|
||||
|
||||
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please define a `callback` function
|
||||
to be invoked when receiving the response.
|
||||
@@ -380,7 +374,6 @@ class UserApi(object):
|
||||
"""
|
||||
Delete user
|
||||
This can only be done by the logged in user.
|
||||
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please define a `callback` function
|
||||
to be invoked when receiving the response.
|
||||
@@ -407,7 +400,6 @@ class UserApi(object):
|
||||
"""
|
||||
Delete user
|
||||
This can only be done by the logged in user.
|
||||
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please define a `callback` function
|
||||
to be invoked when receiving the response.
|
||||
@@ -492,7 +484,6 @@ class UserApi(object):
|
||||
"""
|
||||
Get user by user name
|
||||
|
||||
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please define a `callback` function
|
||||
to be invoked when receiving the response.
|
||||
@@ -519,7 +510,6 @@ class UserApi(object):
|
||||
"""
|
||||
Get user by user name
|
||||
|
||||
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please define a `callback` function
|
||||
to be invoked when receiving the response.
|
||||
@@ -604,7 +594,6 @@ class UserApi(object):
|
||||
"""
|
||||
Logs user into the system
|
||||
|
||||
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please define a `callback` function
|
||||
to be invoked when receiving the response.
|
||||
@@ -632,7 +621,6 @@ class UserApi(object):
|
||||
"""
|
||||
Logs user into the system
|
||||
|
||||
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please define a `callback` function
|
||||
to be invoked when receiving the response.
|
||||
@@ -723,7 +711,6 @@ class UserApi(object):
|
||||
"""
|
||||
Logs out current logged in user session
|
||||
|
||||
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please define a `callback` function
|
||||
to be invoked when receiving the response.
|
||||
@@ -749,7 +736,6 @@ class UserApi(object):
|
||||
"""
|
||||
Logs out current logged in user session
|
||||
|
||||
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please define a `callback` function
|
||||
to be invoked when receiving the response.
|
||||
@@ -781,7 +767,6 @@ class UserApi(object):
|
||||
params[key] = val
|
||||
del params['kwargs']
|
||||
|
||||
|
||||
collection_formats = {}
|
||||
|
||||
resource_path = '/user/logout'.replace('{format}', 'json')
|
||||
@@ -828,7 +813,6 @@ class UserApi(object):
|
||||
"""
|
||||
Updated user
|
||||
This can only be done by the logged in user.
|
||||
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please define a `callback` function
|
||||
to be invoked when receiving the response.
|
||||
@@ -856,7 +840,6 @@ class UserApi(object):
|
||||
"""
|
||||
Updated user
|
||||
This can only be done by the logged in user.
|
||||
|
||||
This method makes a synchronous HTTP request by default. To make an
|
||||
asynchronous HTTP request, please define a `callback` function
|
||||
to be invoked when receiving the response.
|
||||
|
||||
@@ -38,6 +38,7 @@ from .model_return import ModelReturn
|
||||
from .name import Name
|
||||
from .number_only import NumberOnly
|
||||
from .order import Order
|
||||
from .outer_enum import OuterEnum
|
||||
from .pet import Pet
|
||||
from .read_only_first import ReadOnlyFirst
|
||||
from .special_model_name import SpecialModelName
|
||||
|
||||
@@ -43,13 +43,11 @@ class AdditionalPropertiesClass(object):
|
||||
self._map_property = map_property
|
||||
self._map_of_map_property = map_of_map_property
|
||||
|
||||
|
||||
@property
|
||||
def map_property(self):
|
||||
"""
|
||||
Gets the map_property of this AdditionalPropertiesClass.
|
||||
|
||||
|
||||
:return: The map_property of this AdditionalPropertiesClass.
|
||||
:rtype: dict(str, str)
|
||||
"""
|
||||
@@ -60,7 +58,6 @@ class AdditionalPropertiesClass(object):
|
||||
"""
|
||||
Sets the map_property of this AdditionalPropertiesClass.
|
||||
|
||||
|
||||
:param map_property: The map_property of this AdditionalPropertiesClass.
|
||||
:type: dict(str, str)
|
||||
"""
|
||||
@@ -72,7 +69,6 @@ class AdditionalPropertiesClass(object):
|
||||
"""
|
||||
Gets the map_of_map_property of this AdditionalPropertiesClass.
|
||||
|
||||
|
||||
:return: The map_of_map_property of this AdditionalPropertiesClass.
|
||||
:rtype: dict(str, dict(str, str))
|
||||
"""
|
||||
@@ -83,7 +79,6 @@ class AdditionalPropertiesClass(object):
|
||||
"""
|
||||
Sets the map_of_map_property of this AdditionalPropertiesClass.
|
||||
|
||||
|
||||
:param map_of_map_property: The map_of_map_property of this AdditionalPropertiesClass.
|
||||
:type: dict(str, dict(str, str))
|
||||
"""
|
||||
|
||||
@@ -43,13 +43,11 @@ class Animal(object):
|
||||
self._class_name = class_name
|
||||
self._color = color
|
||||
|
||||
|
||||
@property
|
||||
def class_name(self):
|
||||
"""
|
||||
Gets the class_name of this Animal.
|
||||
|
||||
|
||||
:return: The class_name of this Animal.
|
||||
:rtype: str
|
||||
"""
|
||||
@@ -60,7 +58,6 @@ class Animal(object):
|
||||
"""
|
||||
Sets the class_name of this Animal.
|
||||
|
||||
|
||||
:param class_name: The class_name of this Animal.
|
||||
:type: str
|
||||
"""
|
||||
@@ -74,7 +71,6 @@ class Animal(object):
|
||||
"""
|
||||
Gets the color of this Animal.
|
||||
|
||||
|
||||
:return: The color of this Animal.
|
||||
:rtype: str
|
||||
"""
|
||||
@@ -85,7 +81,6 @@ class Animal(object):
|
||||
"""
|
||||
Sets the color of this Animal.
|
||||
|
||||
|
||||
:param color: The color of this Animal.
|
||||
:type: str
|
||||
"""
|
||||
|
||||
@@ -46,13 +46,11 @@ class ApiResponse(object):
|
||||
self._type = type
|
||||
self._message = message
|
||||
|
||||
|
||||
@property
|
||||
def code(self):
|
||||
"""
|
||||
Gets the code of this ApiResponse.
|
||||
|
||||
|
||||
:return: The code of this ApiResponse.
|
||||
:rtype: int
|
||||
"""
|
||||
@@ -63,7 +61,6 @@ class ApiResponse(object):
|
||||
"""
|
||||
Sets the code of this ApiResponse.
|
||||
|
||||
|
||||
:param code: The code of this ApiResponse.
|
||||
:type: int
|
||||
"""
|
||||
@@ -75,7 +72,6 @@ class ApiResponse(object):
|
||||
"""
|
||||
Gets the type of this ApiResponse.
|
||||
|
||||
|
||||
:return: The type of this ApiResponse.
|
||||
:rtype: str
|
||||
"""
|
||||
@@ -86,7 +82,6 @@ class ApiResponse(object):
|
||||
"""
|
||||
Sets the type of this ApiResponse.
|
||||
|
||||
|
||||
:param type: The type of this ApiResponse.
|
||||
:type: str
|
||||
"""
|
||||
@@ -98,7 +93,6 @@ class ApiResponse(object):
|
||||
"""
|
||||
Gets the message of this ApiResponse.
|
||||
|
||||
|
||||
:return: The message of this ApiResponse.
|
||||
:rtype: str
|
||||
"""
|
||||
@@ -109,7 +103,6 @@ class ApiResponse(object):
|
||||
"""
|
||||
Sets the message of this ApiResponse.
|
||||
|
||||
|
||||
:param message: The message of this ApiResponse.
|
||||
:type: str
|
||||
"""
|
||||
|
||||
@@ -40,13 +40,11 @@ class ArrayOfArrayOfNumberOnly(object):
|
||||
|
||||
self._array_array_number = array_array_number
|
||||
|
||||
|
||||
@property
|
||||
def array_array_number(self):
|
||||
"""
|
||||
Gets the array_array_number of this ArrayOfArrayOfNumberOnly.
|
||||
|
||||
|
||||
:return: The array_array_number of this ArrayOfArrayOfNumberOnly.
|
||||
:rtype: list[list[float]]
|
||||
"""
|
||||
@@ -57,7 +55,6 @@ class ArrayOfArrayOfNumberOnly(object):
|
||||
"""
|
||||
Sets the array_array_number of this ArrayOfArrayOfNumberOnly.
|
||||
|
||||
|
||||
:param array_array_number: The array_array_number of this ArrayOfArrayOfNumberOnly.
|
||||
:type: list[list[float]]
|
||||
"""
|
||||
|
||||
@@ -40,13 +40,11 @@ class ArrayOfNumberOnly(object):
|
||||
|
||||
self._array_number = array_number
|
||||
|
||||
|
||||
@property
|
||||
def array_number(self):
|
||||
"""
|
||||
Gets the array_number of this ArrayOfNumberOnly.
|
||||
|
||||
|
||||
:return: The array_number of this ArrayOfNumberOnly.
|
||||
:rtype: list[float]
|
||||
"""
|
||||
@@ -57,7 +55,6 @@ class ArrayOfNumberOnly(object):
|
||||
"""
|
||||
Sets the array_number of this ArrayOfNumberOnly.
|
||||
|
||||
|
||||
:param array_number: The array_number of this ArrayOfNumberOnly.
|
||||
:type: list[float]
|
||||
"""
|
||||
|
||||
@@ -46,13 +46,11 @@ class ArrayTest(object):
|
||||
self._array_array_of_integer = array_array_of_integer
|
||||
self._array_array_of_model = array_array_of_model
|
||||
|
||||
|
||||
@property
|
||||
def array_of_string(self):
|
||||
"""
|
||||
Gets the array_of_string of this ArrayTest.
|
||||
|
||||
|
||||
:return: The array_of_string of this ArrayTest.
|
||||
:rtype: list[str]
|
||||
"""
|
||||
@@ -63,7 +61,6 @@ class ArrayTest(object):
|
||||
"""
|
||||
Sets the array_of_string of this ArrayTest.
|
||||
|
||||
|
||||
:param array_of_string: The array_of_string of this ArrayTest.
|
||||
:type: list[str]
|
||||
"""
|
||||
@@ -75,7 +72,6 @@ class ArrayTest(object):
|
||||
"""
|
||||
Gets the array_array_of_integer of this ArrayTest.
|
||||
|
||||
|
||||
:return: The array_array_of_integer of this ArrayTest.
|
||||
:rtype: list[list[int]]
|
||||
"""
|
||||
@@ -86,7 +82,6 @@ class ArrayTest(object):
|
||||
"""
|
||||
Sets the array_array_of_integer of this ArrayTest.
|
||||
|
||||
|
||||
:param array_array_of_integer: The array_array_of_integer of this ArrayTest.
|
||||
:type: list[list[int]]
|
||||
"""
|
||||
@@ -98,7 +93,6 @@ class ArrayTest(object):
|
||||
"""
|
||||
Gets the array_array_of_model of this ArrayTest.
|
||||
|
||||
|
||||
:return: The array_array_of_model of this ArrayTest.
|
||||
:rtype: list[list[ReadOnlyFirst]]
|
||||
"""
|
||||
@@ -109,7 +103,6 @@ class ArrayTest(object):
|
||||
"""
|
||||
Sets the array_array_of_model of this ArrayTest.
|
||||
|
||||
|
||||
:param array_array_of_model: The array_array_of_model of this ArrayTest.
|
||||
:type: list[list[ReadOnlyFirst]]
|
||||
"""
|
||||
|
||||
@@ -46,13 +46,11 @@ class Cat(object):
|
||||
self._color = color
|
||||
self._declawed = declawed
|
||||
|
||||
|
||||
@property
|
||||
def class_name(self):
|
||||
"""
|
||||
Gets the class_name of this Cat.
|
||||
|
||||
|
||||
:return: The class_name of this Cat.
|
||||
:rtype: str
|
||||
"""
|
||||
@@ -63,7 +61,6 @@ class Cat(object):
|
||||
"""
|
||||
Sets the class_name of this Cat.
|
||||
|
||||
|
||||
:param class_name: The class_name of this Cat.
|
||||
:type: str
|
||||
"""
|
||||
@@ -77,7 +74,6 @@ class Cat(object):
|
||||
"""
|
||||
Gets the color of this Cat.
|
||||
|
||||
|
||||
:return: The color of this Cat.
|
||||
:rtype: str
|
||||
"""
|
||||
@@ -88,7 +84,6 @@ class Cat(object):
|
||||
"""
|
||||
Sets the color of this Cat.
|
||||
|
||||
|
||||
:param color: The color of this Cat.
|
||||
:type: str
|
||||
"""
|
||||
@@ -100,7 +95,6 @@ class Cat(object):
|
||||
"""
|
||||
Gets the declawed of this Cat.
|
||||
|
||||
|
||||
:return: The declawed of this Cat.
|
||||
:rtype: bool
|
||||
"""
|
||||
@@ -111,7 +105,6 @@ class Cat(object):
|
||||
"""
|
||||
Sets the declawed of this Cat.
|
||||
|
||||
|
||||
:param declawed: The declawed of this Cat.
|
||||
:type: bool
|
||||
"""
|
||||
|
||||
@@ -43,13 +43,11 @@ class Category(object):
|
||||
self._id = id
|
||||
self._name = name
|
||||
|
||||
|
||||
@property
|
||||
def id(self):
|
||||
"""
|
||||
Gets the id of this Category.
|
||||
|
||||
|
||||
:return: The id of this Category.
|
||||
:rtype: int
|
||||
"""
|
||||
@@ -60,7 +58,6 @@ class Category(object):
|
||||
"""
|
||||
Sets the id of this Category.
|
||||
|
||||
|
||||
:param id: The id of this Category.
|
||||
:type: int
|
||||
"""
|
||||
@@ -72,7 +69,6 @@ class Category(object):
|
||||
"""
|
||||
Gets the name of this Category.
|
||||
|
||||
|
||||
:return: The name of this Category.
|
||||
:rtype: str
|
||||
"""
|
||||
@@ -83,7 +79,6 @@ class Category(object):
|
||||
"""
|
||||
Sets the name of this Category.
|
||||
|
||||
|
||||
:param name: The name of this Category.
|
||||
:type: str
|
||||
"""
|
||||
|
||||
@@ -40,13 +40,11 @@ class Client(object):
|
||||
|
||||
self._client = client
|
||||
|
||||
|
||||
@property
|
||||
def client(self):
|
||||
"""
|
||||
Gets the client of this Client.
|
||||
|
||||
|
||||
:return: The client of this Client.
|
||||
:rtype: str
|
||||
"""
|
||||
@@ -57,7 +55,6 @@ class Client(object):
|
||||
"""
|
||||
Sets the client of this Client.
|
||||
|
||||
|
||||
:param client: The client of this Client.
|
||||
:type: str
|
||||
"""
|
||||
|
||||
@@ -46,13 +46,11 @@ class Dog(object):
|
||||
self._color = color
|
||||
self._breed = breed
|
||||
|
||||
|
||||
@property
|
||||
def class_name(self):
|
||||
"""
|
||||
Gets the class_name of this Dog.
|
||||
|
||||
|
||||
:return: The class_name of this Dog.
|
||||
:rtype: str
|
||||
"""
|
||||
@@ -63,7 +61,6 @@ class Dog(object):
|
||||
"""
|
||||
Sets the class_name of this Dog.
|
||||
|
||||
|
||||
:param class_name: The class_name of this Dog.
|
||||
:type: str
|
||||
"""
|
||||
@@ -77,7 +74,6 @@ class Dog(object):
|
||||
"""
|
||||
Gets the color of this Dog.
|
||||
|
||||
|
||||
:return: The color of this Dog.
|
||||
:rtype: str
|
||||
"""
|
||||
@@ -88,7 +84,6 @@ class Dog(object):
|
||||
"""
|
||||
Sets the color of this Dog.
|
||||
|
||||
|
||||
:param color: The color of this Dog.
|
||||
:type: str
|
||||
"""
|
||||
@@ -100,7 +95,6 @@ class Dog(object):
|
||||
"""
|
||||
Gets the breed of this Dog.
|
||||
|
||||
|
||||
:return: The breed of this Dog.
|
||||
:rtype: str
|
||||
"""
|
||||
@@ -111,7 +105,6 @@ class Dog(object):
|
||||
"""
|
||||
Sets the breed of this Dog.
|
||||
|
||||
|
||||
:param breed: The breed of this Dog.
|
||||
:type: str
|
||||
"""
|
||||
|
||||
@@ -43,13 +43,11 @@ class EnumArrays(object):
|
||||
self._just_symbol = just_symbol
|
||||
self._array_enum = array_enum
|
||||
|
||||
|
||||
@property
|
||||
def just_symbol(self):
|
||||
"""
|
||||
Gets the just_symbol of this EnumArrays.
|
||||
|
||||
|
||||
:return: The just_symbol of this EnumArrays.
|
||||
:rtype: str
|
||||
"""
|
||||
@@ -60,7 +58,6 @@ class EnumArrays(object):
|
||||
"""
|
||||
Sets the just_symbol of this EnumArrays.
|
||||
|
||||
|
||||
:param just_symbol: The just_symbol of this EnumArrays.
|
||||
:type: str
|
||||
"""
|
||||
@@ -78,7 +75,6 @@ class EnumArrays(object):
|
||||
"""
|
||||
Gets the array_enum of this EnumArrays.
|
||||
|
||||
|
||||
:return: The array_enum of this EnumArrays.
|
||||
:rtype: list[str]
|
||||
"""
|
||||
@@ -89,7 +85,6 @@ class EnumArrays(object):
|
||||
"""
|
||||
Sets the array_enum of this EnumArrays.
|
||||
|
||||
|
||||
:param array_enum: The array_enum of this EnumArrays.
|
||||
:type: list[str]
|
||||
"""
|
||||
|
||||
@@ -21,7 +21,7 @@ class EnumTest(object):
|
||||
NOTE: This class is auto generated by the swagger code generator program.
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
def __init__(self, enum_string=None, enum_integer=None, enum_number=None):
|
||||
def __init__(self, enum_string=None, enum_integer=None, enum_number=None, outer_enum=None):
|
||||
"""
|
||||
EnumTest - a model defined in Swagger
|
||||
|
||||
@@ -33,26 +33,27 @@ class EnumTest(object):
|
||||
self.swagger_types = {
|
||||
'enum_string': 'str',
|
||||
'enum_integer': 'int',
|
||||
'enum_number': 'float'
|
||||
'enum_number': 'float',
|
||||
'outer_enum': 'OuterEnum'
|
||||
}
|
||||
|
||||
self.attribute_map = {
|
||||
'enum_string': 'enum_string',
|
||||
'enum_integer': 'enum_integer',
|
||||
'enum_number': 'enum_number'
|
||||
'enum_number': 'enum_number',
|
||||
'outer_enum': 'outerEnum'
|
||||
}
|
||||
|
||||
self._enum_string = enum_string
|
||||
self._enum_integer = enum_integer
|
||||
self._enum_number = enum_number
|
||||
|
||||
self._outer_enum = outer_enum
|
||||
|
||||
@property
|
||||
def enum_string(self):
|
||||
"""
|
||||
Gets the enum_string of this EnumTest.
|
||||
|
||||
|
||||
:return: The enum_string of this EnumTest.
|
||||
:rtype: str
|
||||
"""
|
||||
@@ -63,7 +64,6 @@ class EnumTest(object):
|
||||
"""
|
||||
Sets the enum_string of this EnumTest.
|
||||
|
||||
|
||||
:param enum_string: The enum_string of this EnumTest.
|
||||
:type: str
|
||||
"""
|
||||
@@ -81,7 +81,6 @@ class EnumTest(object):
|
||||
"""
|
||||
Gets the enum_integer of this EnumTest.
|
||||
|
||||
|
||||
:return: The enum_integer of this EnumTest.
|
||||
:rtype: int
|
||||
"""
|
||||
@@ -92,7 +91,6 @@ class EnumTest(object):
|
||||
"""
|
||||
Sets the enum_integer of this EnumTest.
|
||||
|
||||
|
||||
:param enum_integer: The enum_integer of this EnumTest.
|
||||
:type: int
|
||||
"""
|
||||
@@ -110,7 +108,6 @@ class EnumTest(object):
|
||||
"""
|
||||
Gets the enum_number of this EnumTest.
|
||||
|
||||
|
||||
:return: The enum_number of this EnumTest.
|
||||
:rtype: float
|
||||
"""
|
||||
@@ -121,7 +118,6 @@ class EnumTest(object):
|
||||
"""
|
||||
Sets the enum_number of this EnumTest.
|
||||
|
||||
|
||||
:param enum_number: The enum_number of this EnumTest.
|
||||
:type: float
|
||||
"""
|
||||
@@ -134,6 +130,27 @@ class EnumTest(object):
|
||||
|
||||
self._enum_number = enum_number
|
||||
|
||||
@property
|
||||
def outer_enum(self):
|
||||
"""
|
||||
Gets the outer_enum of this EnumTest.
|
||||
|
||||
:return: The outer_enum of this EnumTest.
|
||||
:rtype: OuterEnum
|
||||
"""
|
||||
return self._outer_enum
|
||||
|
||||
@outer_enum.setter
|
||||
def outer_enum(self, outer_enum):
|
||||
"""
|
||||
Sets the outer_enum of this EnumTest.
|
||||
|
||||
:param outer_enum: The outer_enum of this EnumTest.
|
||||
:type: OuterEnum
|
||||
"""
|
||||
|
||||
self._outer_enum = outer_enum
|
||||
|
||||
def to_dict(self):
|
||||
"""
|
||||
Returns the model properties as a dict
|
||||
|
||||
@@ -76,13 +76,11 @@ class FormatTest(object):
|
||||
self._uuid = uuid
|
||||
self._password = password
|
||||
|
||||
|
||||
@property
|
||||
def integer(self):
|
||||
"""
|
||||
Gets the integer of this FormatTest.
|
||||
|
||||
|
||||
:return: The integer of this FormatTest.
|
||||
:rtype: int
|
||||
"""
|
||||
@@ -93,7 +91,6 @@ class FormatTest(object):
|
||||
"""
|
||||
Sets the integer of this FormatTest.
|
||||
|
||||
|
||||
:param integer: The integer of this FormatTest.
|
||||
:type: int
|
||||
"""
|
||||
@@ -109,7 +106,6 @@ class FormatTest(object):
|
||||
"""
|
||||
Gets the int32 of this FormatTest.
|
||||
|
||||
|
||||
:return: The int32 of this FormatTest.
|
||||
:rtype: int
|
||||
"""
|
||||
@@ -120,7 +116,6 @@ class FormatTest(object):
|
||||
"""
|
||||
Sets the int32 of this FormatTest.
|
||||
|
||||
|
||||
:param int32: The int32 of this FormatTest.
|
||||
:type: int
|
||||
"""
|
||||
@@ -136,7 +131,6 @@ class FormatTest(object):
|
||||
"""
|
||||
Gets the int64 of this FormatTest.
|
||||
|
||||
|
||||
:return: The int64 of this FormatTest.
|
||||
:rtype: int
|
||||
"""
|
||||
@@ -147,7 +141,6 @@ class FormatTest(object):
|
||||
"""
|
||||
Sets the int64 of this FormatTest.
|
||||
|
||||
|
||||
:param int64: The int64 of this FormatTest.
|
||||
:type: int
|
||||
"""
|
||||
@@ -159,7 +152,6 @@ class FormatTest(object):
|
||||
"""
|
||||
Gets the number of this FormatTest.
|
||||
|
||||
|
||||
:return: The number of this FormatTest.
|
||||
:rtype: float
|
||||
"""
|
||||
@@ -170,7 +162,6 @@ class FormatTest(object):
|
||||
"""
|
||||
Sets the number of this FormatTest.
|
||||
|
||||
|
||||
:param number: The number of this FormatTest.
|
||||
:type: float
|
||||
"""
|
||||
@@ -188,7 +179,6 @@ class FormatTest(object):
|
||||
"""
|
||||
Gets the float of this FormatTest.
|
||||
|
||||
|
||||
:return: The float of this FormatTest.
|
||||
:rtype: float
|
||||
"""
|
||||
@@ -199,7 +189,6 @@ class FormatTest(object):
|
||||
"""
|
||||
Sets the float of this FormatTest.
|
||||
|
||||
|
||||
:param float: The float of this FormatTest.
|
||||
:type: float
|
||||
"""
|
||||
@@ -215,7 +204,6 @@ class FormatTest(object):
|
||||
"""
|
||||
Gets the double of this FormatTest.
|
||||
|
||||
|
||||
:return: The double of this FormatTest.
|
||||
:rtype: float
|
||||
"""
|
||||
@@ -226,7 +214,6 @@ class FormatTest(object):
|
||||
"""
|
||||
Sets the double of this FormatTest.
|
||||
|
||||
|
||||
:param double: The double of this FormatTest.
|
||||
:type: float
|
||||
"""
|
||||
@@ -242,7 +229,6 @@ class FormatTest(object):
|
||||
"""
|
||||
Gets the string of this FormatTest.
|
||||
|
||||
|
||||
:return: The string of this FormatTest.
|
||||
:rtype: str
|
||||
"""
|
||||
@@ -253,7 +239,6 @@ class FormatTest(object):
|
||||
"""
|
||||
Sets the string of this FormatTest.
|
||||
|
||||
|
||||
:param string: The string of this FormatTest.
|
||||
:type: str
|
||||
"""
|
||||
@@ -267,7 +252,6 @@ class FormatTest(object):
|
||||
"""
|
||||
Gets the byte of this FormatTest.
|
||||
|
||||
|
||||
:return: The byte of this FormatTest.
|
||||
:rtype: str
|
||||
"""
|
||||
@@ -278,7 +262,6 @@ class FormatTest(object):
|
||||
"""
|
||||
Sets the byte of this FormatTest.
|
||||
|
||||
|
||||
:param byte: The byte of this FormatTest.
|
||||
:type: str
|
||||
"""
|
||||
@@ -292,7 +275,6 @@ class FormatTest(object):
|
||||
"""
|
||||
Gets the binary of this FormatTest.
|
||||
|
||||
|
||||
:return: The binary of this FormatTest.
|
||||
:rtype: str
|
||||
"""
|
||||
@@ -303,7 +285,6 @@ class FormatTest(object):
|
||||
"""
|
||||
Sets the binary of this FormatTest.
|
||||
|
||||
|
||||
:param binary: The binary of this FormatTest.
|
||||
:type: str
|
||||
"""
|
||||
@@ -315,7 +296,6 @@ class FormatTest(object):
|
||||
"""
|
||||
Gets the date of this FormatTest.
|
||||
|
||||
|
||||
:return: The date of this FormatTest.
|
||||
:rtype: date
|
||||
"""
|
||||
@@ -326,7 +306,6 @@ class FormatTest(object):
|
||||
"""
|
||||
Sets the date of this FormatTest.
|
||||
|
||||
|
||||
:param date: The date of this FormatTest.
|
||||
:type: date
|
||||
"""
|
||||
@@ -340,7 +319,6 @@ class FormatTest(object):
|
||||
"""
|
||||
Gets the date_time of this FormatTest.
|
||||
|
||||
|
||||
:return: The date_time of this FormatTest.
|
||||
:rtype: datetime
|
||||
"""
|
||||
@@ -351,7 +329,6 @@ class FormatTest(object):
|
||||
"""
|
||||
Sets the date_time of this FormatTest.
|
||||
|
||||
|
||||
:param date_time: The date_time of this FormatTest.
|
||||
:type: datetime
|
||||
"""
|
||||
@@ -363,7 +340,6 @@ class FormatTest(object):
|
||||
"""
|
||||
Gets the uuid of this FormatTest.
|
||||
|
||||
|
||||
:return: The uuid of this FormatTest.
|
||||
:rtype: str
|
||||
"""
|
||||
@@ -374,7 +350,6 @@ class FormatTest(object):
|
||||
"""
|
||||
Sets the uuid of this FormatTest.
|
||||
|
||||
|
||||
:param uuid: The uuid of this FormatTest.
|
||||
:type: str
|
||||
"""
|
||||
@@ -386,7 +361,6 @@ class FormatTest(object):
|
||||
"""
|
||||
Gets the password of this FormatTest.
|
||||
|
||||
|
||||
:return: The password of this FormatTest.
|
||||
:rtype: str
|
||||
"""
|
||||
@@ -397,7 +371,6 @@ class FormatTest(object):
|
||||
"""
|
||||
Sets the password of this FormatTest.
|
||||
|
||||
|
||||
:param password: The password of this FormatTest.
|
||||
:type: str
|
||||
"""
|
||||
|
||||
@@ -43,13 +43,11 @@ class HasOnlyReadOnly(object):
|
||||
self._bar = bar
|
||||
self._foo = foo
|
||||
|
||||
|
||||
@property
|
||||
def bar(self):
|
||||
"""
|
||||
Gets the bar of this HasOnlyReadOnly.
|
||||
|
||||
|
||||
:return: The bar of this HasOnlyReadOnly.
|
||||
:rtype: str
|
||||
"""
|
||||
@@ -60,7 +58,6 @@ class HasOnlyReadOnly(object):
|
||||
"""
|
||||
Sets the bar of this HasOnlyReadOnly.
|
||||
|
||||
|
||||
:param bar: The bar of this HasOnlyReadOnly.
|
||||
:type: str
|
||||
"""
|
||||
@@ -72,7 +69,6 @@ class HasOnlyReadOnly(object):
|
||||
"""
|
||||
Gets the foo of this HasOnlyReadOnly.
|
||||
|
||||
|
||||
:return: The foo of this HasOnlyReadOnly.
|
||||
:rtype: str
|
||||
"""
|
||||
@@ -83,7 +79,6 @@ class HasOnlyReadOnly(object):
|
||||
"""
|
||||
Sets the foo of this HasOnlyReadOnly.
|
||||
|
||||
|
||||
:param foo: The foo of this HasOnlyReadOnly.
|
||||
:type: str
|
||||
"""
|
||||
|
||||
@@ -40,13 +40,11 @@ class List(object):
|
||||
|
||||
self.__123_list = _123_list
|
||||
|
||||
|
||||
@property
|
||||
def _123_list(self):
|
||||
"""
|
||||
Gets the _123_list of this List.
|
||||
|
||||
|
||||
:return: The _123_list of this List.
|
||||
:rtype: str
|
||||
"""
|
||||
@@ -57,7 +55,6 @@ class List(object):
|
||||
"""
|
||||
Sets the _123_list of this List.
|
||||
|
||||
|
||||
:param _123_list: The _123_list of this List.
|
||||
:type: str
|
||||
"""
|
||||
|
||||
@@ -43,13 +43,11 @@ class MapTest(object):
|
||||
self._map_map_of_string = map_map_of_string
|
||||
self._map_of_enum_string = map_of_enum_string
|
||||
|
||||
|
||||
@property
|
||||
def map_map_of_string(self):
|
||||
"""
|
||||
Gets the map_map_of_string of this MapTest.
|
||||
|
||||
|
||||
:return: The map_map_of_string of this MapTest.
|
||||
:rtype: dict(str, dict(str, str))
|
||||
"""
|
||||
@@ -60,7 +58,6 @@ class MapTest(object):
|
||||
"""
|
||||
Sets the map_map_of_string of this MapTest.
|
||||
|
||||
|
||||
:param map_map_of_string: The map_map_of_string of this MapTest.
|
||||
:type: dict(str, dict(str, str))
|
||||
"""
|
||||
@@ -72,7 +69,6 @@ class MapTest(object):
|
||||
"""
|
||||
Gets the map_of_enum_string of this MapTest.
|
||||
|
||||
|
||||
:return: The map_of_enum_string of this MapTest.
|
||||
:rtype: dict(str, str)
|
||||
"""
|
||||
@@ -83,7 +79,6 @@ class MapTest(object):
|
||||
"""
|
||||
Sets the map_of_enum_string of this MapTest.
|
||||
|
||||
|
||||
:param map_of_enum_string: The map_of_enum_string of this MapTest.
|
||||
:type: dict(str, str)
|
||||
"""
|
||||
|
||||
@@ -46,13 +46,11 @@ class MixedPropertiesAndAdditionalPropertiesClass(object):
|
||||
self._date_time = date_time
|
||||
self._map = map
|
||||
|
||||
|
||||
@property
|
||||
def uuid(self):
|
||||
"""
|
||||
Gets the uuid of this MixedPropertiesAndAdditionalPropertiesClass.
|
||||
|
||||
|
||||
:return: The uuid of this MixedPropertiesAndAdditionalPropertiesClass.
|
||||
:rtype: str
|
||||
"""
|
||||
@@ -63,7 +61,6 @@ class MixedPropertiesAndAdditionalPropertiesClass(object):
|
||||
"""
|
||||
Sets the uuid of this MixedPropertiesAndAdditionalPropertiesClass.
|
||||
|
||||
|
||||
:param uuid: The uuid of this MixedPropertiesAndAdditionalPropertiesClass.
|
||||
:type: str
|
||||
"""
|
||||
@@ -75,7 +72,6 @@ class MixedPropertiesAndAdditionalPropertiesClass(object):
|
||||
"""
|
||||
Gets the date_time of this MixedPropertiesAndAdditionalPropertiesClass.
|
||||
|
||||
|
||||
:return: The date_time of this MixedPropertiesAndAdditionalPropertiesClass.
|
||||
:rtype: datetime
|
||||
"""
|
||||
@@ -86,7 +82,6 @@ class MixedPropertiesAndAdditionalPropertiesClass(object):
|
||||
"""
|
||||
Sets the date_time of this MixedPropertiesAndAdditionalPropertiesClass.
|
||||
|
||||
|
||||
:param date_time: The date_time of this MixedPropertiesAndAdditionalPropertiesClass.
|
||||
:type: datetime
|
||||
"""
|
||||
@@ -98,7 +93,6 @@ class MixedPropertiesAndAdditionalPropertiesClass(object):
|
||||
"""
|
||||
Gets the map of this MixedPropertiesAndAdditionalPropertiesClass.
|
||||
|
||||
|
||||
:return: The map of this MixedPropertiesAndAdditionalPropertiesClass.
|
||||
:rtype: dict(str, Animal)
|
||||
"""
|
||||
@@ -109,7 +103,6 @@ class MixedPropertiesAndAdditionalPropertiesClass(object):
|
||||
"""
|
||||
Sets the map of this MixedPropertiesAndAdditionalPropertiesClass.
|
||||
|
||||
|
||||
:param map: The map of this MixedPropertiesAndAdditionalPropertiesClass.
|
||||
:type: dict(str, Animal)
|
||||
"""
|
||||
|
||||
@@ -43,13 +43,11 @@ class Model200Response(object):
|
||||
self._name = name
|
||||
self.__class = _class
|
||||
|
||||
|
||||
@property
|
||||
def name(self):
|
||||
"""
|
||||
Gets the name of this Model200Response.
|
||||
|
||||
|
||||
:return: The name of this Model200Response.
|
||||
:rtype: int
|
||||
"""
|
||||
@@ -60,7 +58,6 @@ class Model200Response(object):
|
||||
"""
|
||||
Sets the name of this Model200Response.
|
||||
|
||||
|
||||
:param name: The name of this Model200Response.
|
||||
:type: int
|
||||
"""
|
||||
@@ -72,7 +69,6 @@ class Model200Response(object):
|
||||
"""
|
||||
Gets the _class of this Model200Response.
|
||||
|
||||
|
||||
:return: The _class of this Model200Response.
|
||||
:rtype: str
|
||||
"""
|
||||
@@ -83,7 +79,6 @@ class Model200Response(object):
|
||||
"""
|
||||
Sets the _class of this Model200Response.
|
||||
|
||||
|
||||
:param _class: The _class of this Model200Response.
|
||||
:type: str
|
||||
"""
|
||||
|
||||
@@ -40,13 +40,11 @@ class ModelReturn(object):
|
||||
|
||||
self.__return = _return
|
||||
|
||||
|
||||
@property
|
||||
def _return(self):
|
||||
"""
|
||||
Gets the _return of this ModelReturn.
|
||||
|
||||
|
||||
:return: The _return of this ModelReturn.
|
||||
:rtype: int
|
||||
"""
|
||||
@@ -57,7 +55,6 @@ class ModelReturn(object):
|
||||
"""
|
||||
Sets the _return of this ModelReturn.
|
||||
|
||||
|
||||
:param _return: The _return of this ModelReturn.
|
||||
:type: int
|
||||
"""
|
||||
|
||||
@@ -49,13 +49,11 @@ class Name(object):
|
||||
self.__property = _property
|
||||
self.__123_number = _123_number
|
||||
|
||||
|
||||
@property
|
||||
def name(self):
|
||||
"""
|
||||
Gets the name of this Name.
|
||||
|
||||
|
||||
:return: The name of this Name.
|
||||
:rtype: int
|
||||
"""
|
||||
@@ -66,7 +64,6 @@ class Name(object):
|
||||
"""
|
||||
Sets the name of this Name.
|
||||
|
||||
|
||||
:param name: The name of this Name.
|
||||
:type: int
|
||||
"""
|
||||
@@ -80,7 +77,6 @@ class Name(object):
|
||||
"""
|
||||
Gets the snake_case of this Name.
|
||||
|
||||
|
||||
:return: The snake_case of this Name.
|
||||
:rtype: int
|
||||
"""
|
||||
@@ -91,7 +87,6 @@ class Name(object):
|
||||
"""
|
||||
Sets the snake_case of this Name.
|
||||
|
||||
|
||||
:param snake_case: The snake_case of this Name.
|
||||
:type: int
|
||||
"""
|
||||
@@ -103,7 +98,6 @@ class Name(object):
|
||||
"""
|
||||
Gets the _property of this Name.
|
||||
|
||||
|
||||
:return: The _property of this Name.
|
||||
:rtype: str
|
||||
"""
|
||||
@@ -114,7 +108,6 @@ class Name(object):
|
||||
"""
|
||||
Sets the _property of this Name.
|
||||
|
||||
|
||||
:param _property: The _property of this Name.
|
||||
:type: str
|
||||
"""
|
||||
@@ -126,7 +119,6 @@ class Name(object):
|
||||
"""
|
||||
Gets the _123_number of this Name.
|
||||
|
||||
|
||||
:return: The _123_number of this Name.
|
||||
:rtype: int
|
||||
"""
|
||||
@@ -137,7 +129,6 @@ class Name(object):
|
||||
"""
|
||||
Sets the _123_number of this Name.
|
||||
|
||||
|
||||
:param _123_number: The _123_number of this Name.
|
||||
:type: int
|
||||
"""
|
||||
|
||||
@@ -40,13 +40,11 @@ class NumberOnly(object):
|
||||
|
||||
self._just_number = just_number
|
||||
|
||||
|
||||
@property
|
||||
def just_number(self):
|
||||
"""
|
||||
Gets the just_number of this NumberOnly.
|
||||
|
||||
|
||||
:return: The just_number of this NumberOnly.
|
||||
:rtype: float
|
||||
"""
|
||||
@@ -57,7 +55,6 @@ class NumberOnly(object):
|
||||
"""
|
||||
Sets the just_number of this NumberOnly.
|
||||
|
||||
|
||||
:param just_number: The just_number of this NumberOnly.
|
||||
:type: float
|
||||
"""
|
||||
|
||||
@@ -55,13 +55,11 @@ class Order(object):
|
||||
self._status = status
|
||||
self._complete = complete
|
||||
|
||||
|
||||
@property
|
||||
def id(self):
|
||||
"""
|
||||
Gets the id of this Order.
|
||||
|
||||
|
||||
:return: The id of this Order.
|
||||
:rtype: int
|
||||
"""
|
||||
@@ -72,7 +70,6 @@ class Order(object):
|
||||
"""
|
||||
Sets the id of this Order.
|
||||
|
||||
|
||||
:param id: The id of this Order.
|
||||
:type: int
|
||||
"""
|
||||
@@ -84,7 +81,6 @@ class Order(object):
|
||||
"""
|
||||
Gets the pet_id of this Order.
|
||||
|
||||
|
||||
:return: The pet_id of this Order.
|
||||
:rtype: int
|
||||
"""
|
||||
@@ -95,7 +91,6 @@ class Order(object):
|
||||
"""
|
||||
Sets the pet_id of this Order.
|
||||
|
||||
|
||||
:param pet_id: The pet_id of this Order.
|
||||
:type: int
|
||||
"""
|
||||
@@ -107,7 +102,6 @@ class Order(object):
|
||||
"""
|
||||
Gets the quantity of this Order.
|
||||
|
||||
|
||||
:return: The quantity of this Order.
|
||||
:rtype: int
|
||||
"""
|
||||
@@ -118,7 +112,6 @@ class Order(object):
|
||||
"""
|
||||
Sets the quantity of this Order.
|
||||
|
||||
|
||||
:param quantity: The quantity of this Order.
|
||||
:type: int
|
||||
"""
|
||||
@@ -130,7 +123,6 @@ class Order(object):
|
||||
"""
|
||||
Gets the ship_date of this Order.
|
||||
|
||||
|
||||
:return: The ship_date of this Order.
|
||||
:rtype: datetime
|
||||
"""
|
||||
@@ -141,7 +133,6 @@ class Order(object):
|
||||
"""
|
||||
Sets the ship_date of this Order.
|
||||
|
||||
|
||||
:param ship_date: The ship_date of this Order.
|
||||
:type: datetime
|
||||
"""
|
||||
@@ -182,7 +173,6 @@ class Order(object):
|
||||
"""
|
||||
Gets the complete of this Order.
|
||||
|
||||
|
||||
:return: The complete of this Order.
|
||||
:rtype: bool
|
||||
"""
|
||||
@@ -193,7 +183,6 @@ class Order(object):
|
||||
"""
|
||||
Sets the complete of this Order.
|
||||
|
||||
|
||||
:param complete: The complete of this Order.
|
||||
:type: bool
|
||||
"""
|
||||
|
||||
@@ -0,0 +1,90 @@
|
||||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Swagger 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: \" \\
|
||||
|
||||
OpenAPI spec version: 1.0.0
|
||||
Contact: apiteam@swagger.io
|
||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
"""
|
||||
|
||||
|
||||
from pprint import pformat
|
||||
from six import iteritems
|
||||
import re
|
||||
|
||||
|
||||
class OuterEnum(object):
|
||||
"""
|
||||
NOTE: This class is auto generated by the swagger code generator program.
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
def __init__(self):
|
||||
"""
|
||||
OuterEnum - a model defined in Swagger
|
||||
|
||||
:param dict swaggerTypes: The key is attribute name
|
||||
and the value is attribute type.
|
||||
:param dict attributeMap: The key is attribute name
|
||||
and the value is json key in definition.
|
||||
"""
|
||||
self.swagger_types = {
|
||||
|
||||
}
|
||||
|
||||
self.attribute_map = {
|
||||
|
||||
}
|
||||
|
||||
|
||||
def to_dict(self):
|
||||
"""
|
||||
Returns the model properties as a dict
|
||||
"""
|
||||
result = {}
|
||||
|
||||
for attr, _ in iteritems(self.swagger_types):
|
||||
value = getattr(self, attr)
|
||||
if isinstance(value, list):
|
||||
result[attr] = list(map(
|
||||
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
||||
value
|
||||
))
|
||||
elif hasattr(value, "to_dict"):
|
||||
result[attr] = value.to_dict()
|
||||
elif isinstance(value, dict):
|
||||
result[attr] = dict(map(
|
||||
lambda item: (item[0], item[1].to_dict())
|
||||
if hasattr(item[1], "to_dict") else item,
|
||||
value.items()
|
||||
))
|
||||
else:
|
||||
result[attr] = value
|
||||
|
||||
return result
|
||||
|
||||
def to_str(self):
|
||||
"""
|
||||
Returns the string representation of the model
|
||||
"""
|
||||
return pformat(self.to_dict())
|
||||
|
||||
def __repr__(self):
|
||||
"""
|
||||
For `print` and `pprint`
|
||||
"""
|
||||
return self.to_str()
|
||||
|
||||
def __eq__(self, other):
|
||||
"""
|
||||
Returns true if both objects are equal
|
||||
"""
|
||||
return self.__dict__ == other.__dict__
|
||||
|
||||
def __ne__(self, other):
|
||||
"""
|
||||
Returns true if both objects are not equal
|
||||
"""
|
||||
return not self == other
|
||||
@@ -55,13 +55,11 @@ class Pet(object):
|
||||
self._tags = tags
|
||||
self._status = status
|
||||
|
||||
|
||||
@property
|
||||
def id(self):
|
||||
"""
|
||||
Gets the id of this Pet.
|
||||
|
||||
|
||||
:return: The id of this Pet.
|
||||
:rtype: int
|
||||
"""
|
||||
@@ -72,7 +70,6 @@ class Pet(object):
|
||||
"""
|
||||
Sets the id of this Pet.
|
||||
|
||||
|
||||
:param id: The id of this Pet.
|
||||
:type: int
|
||||
"""
|
||||
@@ -84,7 +81,6 @@ class Pet(object):
|
||||
"""
|
||||
Gets the category of this Pet.
|
||||
|
||||
|
||||
:return: The category of this Pet.
|
||||
:rtype: Category
|
||||
"""
|
||||
@@ -95,7 +91,6 @@ class Pet(object):
|
||||
"""
|
||||
Sets the category of this Pet.
|
||||
|
||||
|
||||
:param category: The category of this Pet.
|
||||
:type: Category
|
||||
"""
|
||||
@@ -107,7 +102,6 @@ class Pet(object):
|
||||
"""
|
||||
Gets the name of this Pet.
|
||||
|
||||
|
||||
:return: The name of this Pet.
|
||||
:rtype: str
|
||||
"""
|
||||
@@ -118,7 +112,6 @@ class Pet(object):
|
||||
"""
|
||||
Sets the name of this Pet.
|
||||
|
||||
|
||||
:param name: The name of this Pet.
|
||||
:type: str
|
||||
"""
|
||||
@@ -132,7 +125,6 @@ class Pet(object):
|
||||
"""
|
||||
Gets the photo_urls of this Pet.
|
||||
|
||||
|
||||
:return: The photo_urls of this Pet.
|
||||
:rtype: list[str]
|
||||
"""
|
||||
@@ -143,7 +135,6 @@ class Pet(object):
|
||||
"""
|
||||
Sets the photo_urls of this Pet.
|
||||
|
||||
|
||||
:param photo_urls: The photo_urls of this Pet.
|
||||
:type: list[str]
|
||||
"""
|
||||
@@ -157,7 +148,6 @@ class Pet(object):
|
||||
"""
|
||||
Gets the tags of this Pet.
|
||||
|
||||
|
||||
:return: The tags of this Pet.
|
||||
:rtype: list[Tag]
|
||||
"""
|
||||
@@ -168,7 +158,6 @@ class Pet(object):
|
||||
"""
|
||||
Sets the tags of this Pet.
|
||||
|
||||
|
||||
:param tags: The tags of this Pet.
|
||||
:type: list[Tag]
|
||||
"""
|
||||
|
||||
@@ -43,13 +43,11 @@ class ReadOnlyFirst(object):
|
||||
self._bar = bar
|
||||
self._baz = baz
|
||||
|
||||
|
||||
@property
|
||||
def bar(self):
|
||||
"""
|
||||
Gets the bar of this ReadOnlyFirst.
|
||||
|
||||
|
||||
:return: The bar of this ReadOnlyFirst.
|
||||
:rtype: str
|
||||
"""
|
||||
@@ -60,7 +58,6 @@ class ReadOnlyFirst(object):
|
||||
"""
|
||||
Sets the bar of this ReadOnlyFirst.
|
||||
|
||||
|
||||
:param bar: The bar of this ReadOnlyFirst.
|
||||
:type: str
|
||||
"""
|
||||
@@ -72,7 +69,6 @@ class ReadOnlyFirst(object):
|
||||
"""
|
||||
Gets the baz of this ReadOnlyFirst.
|
||||
|
||||
|
||||
:return: The baz of this ReadOnlyFirst.
|
||||
:rtype: str
|
||||
"""
|
||||
@@ -83,7 +79,6 @@ class ReadOnlyFirst(object):
|
||||
"""
|
||||
Sets the baz of this ReadOnlyFirst.
|
||||
|
||||
|
||||
:param baz: The baz of this ReadOnlyFirst.
|
||||
:type: str
|
||||
"""
|
||||
|
||||
@@ -40,13 +40,11 @@ class SpecialModelName(object):
|
||||
|
||||
self._special_property_name = special_property_name
|
||||
|
||||
|
||||
@property
|
||||
def special_property_name(self):
|
||||
"""
|
||||
Gets the special_property_name of this SpecialModelName.
|
||||
|
||||
|
||||
:return: The special_property_name of this SpecialModelName.
|
||||
:rtype: int
|
||||
"""
|
||||
@@ -57,7 +55,6 @@ class SpecialModelName(object):
|
||||
"""
|
||||
Sets the special_property_name of this SpecialModelName.
|
||||
|
||||
|
||||
:param special_property_name: The special_property_name of this SpecialModelName.
|
||||
:type: int
|
||||
"""
|
||||
|
||||
@@ -43,13 +43,11 @@ class Tag(object):
|
||||
self._id = id
|
||||
self._name = name
|
||||
|
||||
|
||||
@property
|
||||
def id(self):
|
||||
"""
|
||||
Gets the id of this Tag.
|
||||
|
||||
|
||||
:return: The id of this Tag.
|
||||
:rtype: int
|
||||
"""
|
||||
@@ -60,7 +58,6 @@ class Tag(object):
|
||||
"""
|
||||
Sets the id of this Tag.
|
||||
|
||||
|
||||
:param id: The id of this Tag.
|
||||
:type: int
|
||||
"""
|
||||
@@ -72,7 +69,6 @@ class Tag(object):
|
||||
"""
|
||||
Gets the name of this Tag.
|
||||
|
||||
|
||||
:return: The name of this Tag.
|
||||
:rtype: str
|
||||
"""
|
||||
@@ -83,7 +79,6 @@ class Tag(object):
|
||||
"""
|
||||
Sets the name of this Tag.
|
||||
|
||||
|
||||
:param name: The name of this Tag.
|
||||
:type: str
|
||||
"""
|
||||
|
||||
@@ -61,13 +61,11 @@ class User(object):
|
||||
self._phone = phone
|
||||
self._user_status = user_status
|
||||
|
||||
|
||||
@property
|
||||
def id(self):
|
||||
"""
|
||||
Gets the id of this User.
|
||||
|
||||
|
||||
:return: The id of this User.
|
||||
:rtype: int
|
||||
"""
|
||||
@@ -78,7 +76,6 @@ class User(object):
|
||||
"""
|
||||
Sets the id of this User.
|
||||
|
||||
|
||||
:param id: The id of this User.
|
||||
:type: int
|
||||
"""
|
||||
@@ -90,7 +87,6 @@ class User(object):
|
||||
"""
|
||||
Gets the username of this User.
|
||||
|
||||
|
||||
:return: The username of this User.
|
||||
:rtype: str
|
||||
"""
|
||||
@@ -101,7 +97,6 @@ class User(object):
|
||||
"""
|
||||
Sets the username of this User.
|
||||
|
||||
|
||||
:param username: The username of this User.
|
||||
:type: str
|
||||
"""
|
||||
@@ -113,7 +108,6 @@ class User(object):
|
||||
"""
|
||||
Gets the first_name of this User.
|
||||
|
||||
|
||||
:return: The first_name of this User.
|
||||
:rtype: str
|
||||
"""
|
||||
@@ -124,7 +118,6 @@ class User(object):
|
||||
"""
|
||||
Sets the first_name of this User.
|
||||
|
||||
|
||||
:param first_name: The first_name of this User.
|
||||
:type: str
|
||||
"""
|
||||
@@ -136,7 +129,6 @@ class User(object):
|
||||
"""
|
||||
Gets the last_name of this User.
|
||||
|
||||
|
||||
:return: The last_name of this User.
|
||||
:rtype: str
|
||||
"""
|
||||
@@ -147,7 +139,6 @@ class User(object):
|
||||
"""
|
||||
Sets the last_name of this User.
|
||||
|
||||
|
||||
:param last_name: The last_name of this User.
|
||||
:type: str
|
||||
"""
|
||||
@@ -159,7 +150,6 @@ class User(object):
|
||||
"""
|
||||
Gets the email of this User.
|
||||
|
||||
|
||||
:return: The email of this User.
|
||||
:rtype: str
|
||||
"""
|
||||
@@ -170,7 +160,6 @@ class User(object):
|
||||
"""
|
||||
Sets the email of this User.
|
||||
|
||||
|
||||
:param email: The email of this User.
|
||||
:type: str
|
||||
"""
|
||||
@@ -182,7 +171,6 @@ class User(object):
|
||||
"""
|
||||
Gets the password of this User.
|
||||
|
||||
|
||||
:return: The password of this User.
|
||||
:rtype: str
|
||||
"""
|
||||
@@ -193,7 +181,6 @@ class User(object):
|
||||
"""
|
||||
Sets the password of this User.
|
||||
|
||||
|
||||
:param password: The password of this User.
|
||||
:type: str
|
||||
"""
|
||||
@@ -205,7 +192,6 @@ class User(object):
|
||||
"""
|
||||
Gets the phone of this User.
|
||||
|
||||
|
||||
:return: The phone of this User.
|
||||
:rtype: str
|
||||
"""
|
||||
@@ -216,7 +202,6 @@ class User(object):
|
||||
"""
|
||||
Sets the phone of this User.
|
||||
|
||||
|
||||
:param phone: The phone of this User.
|
||||
:type: str
|
||||
"""
|
||||
|
||||
@@ -16,7 +16,6 @@ from setuptools import setup, find_packages
|
||||
|
||||
NAME = "petstore_api"
|
||||
VERSION = "1.0.0"
|
||||
|
||||
# To install the library, run the following
|
||||
#
|
||||
# python setup.py install
|
||||
@@ -40,4 +39,3 @@ setup(
|
||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||
"""
|
||||
)
|
||||
|
||||
|
||||
42
samples/client/petstore/python/test/test_outer_enum.py
Normal file
42
samples/client/petstore/python/test/test_outer_enum.py
Normal file
@@ -0,0 +1,42 @@
|
||||
# coding: utf-8
|
||||
|
||||
"""
|
||||
Swagger 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: \" \\
|
||||
|
||||
OpenAPI spec version: 1.0.0
|
||||
Contact: apiteam@swagger.io
|
||||
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
"""
|
||||
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import os
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.rest import ApiException
|
||||
from petstore_api.models.outer_enum import OuterEnum
|
||||
|
||||
|
||||
class TestOuterEnum(unittest.TestCase):
|
||||
""" OuterEnum unit test stubs """
|
||||
|
||||
def setUp(self):
|
||||
pass
|
||||
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def testOuterEnum(self):
|
||||
"""
|
||||
Test OuterEnum
|
||||
"""
|
||||
model = petstore_api.models.outer_enum.OuterEnum()
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
@@ -16,7 +16,6 @@ import petstore_api
|
||||
|
||||
class MapTestTests(unittest.TestCase):
|
||||
|
||||
|
||||
def test_maptest_init(self):
|
||||
#
|
||||
# Test MapTest construction with valid values
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import random
|
||||
|
||||
|
||||
def id_gen(bits=32):
|
||||
""" Returns a n-bit randomly generated int """
|
||||
return int(random.getrandbits(bits))
|
||||
|
||||
Reference in New Issue
Block a user