forked from loafle/openapi-generator-original
parent
b024288df2
commit
ef53f08b09
@ -19,7 +19,7 @@ Method | HTTP request | Description
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```python
|
```python
|
||||||
from __future__ import print_statement
|
from __future__ import print_function
|
||||||
import time
|
import time
|
||||||
import {{{packageName}}}
|
import {{{packageName}}}
|
||||||
from {{{packageName}}}.rest import ApiException
|
from {{{packageName}}}.rest import ApiException
|
||||||
|
@ -14,7 +14,7 @@ To test code injection */ ' \" =end -- \\r\\n \\n \\r
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```python
|
```python
|
||||||
from __future__ import print_statement
|
from __future__ import print_function
|
||||||
import time
|
import time
|
||||||
import petstore_api
|
import petstore_api
|
||||||
from petstore_api.rest import ApiException
|
from petstore_api.rest import ApiException
|
||||||
|
@ -617,16 +617,17 @@ class ApiClient(object):
|
|||||||
:param klass: class literal.
|
:param klass: class literal.
|
||||||
:return: model object.
|
:return: model object.
|
||||||
"""
|
"""
|
||||||
instance = klass()
|
if not klass.swagger_types:
|
||||||
|
|
||||||
if not instance.swagger_types:
|
|
||||||
return data
|
return data
|
||||||
|
|
||||||
for attr, attr_type in iteritems(instance.swagger_types):
|
kwargs = {}
|
||||||
|
for attr, attr_type in iteritems(klass.swagger_types):
|
||||||
if data is not None \
|
if data is not None \
|
||||||
and instance.attribute_map[attr] in data \
|
and klass.attribute_map[attr] in data \
|
||||||
and isinstance(data, (list, dict)):
|
and isinstance(data, (list, dict)):
|
||||||
value = data[instance.attribute_map[attr]]
|
value = data[klass.attribute_map[attr]]
|
||||||
setattr(instance, attr, self.__deserialize(value, attr_type))
|
kwargs[attr] = self.__deserialize(value, attr_type)
|
||||||
|
|
||||||
|
instance = klass(**kwargs)
|
||||||
|
|
||||||
return instance
|
return instance
|
||||||
|
@ -21,28 +21,30 @@ class ModelReturn(object):
|
|||||||
NOTE: This class is auto generated by the swagger code generator program.
|
NOTE: This class is auto generated by the swagger code generator program.
|
||||||
Do not edit the class manually.
|
Do not edit the class manually.
|
||||||
"""
|
"""
|
||||||
def __init__(self, _return=None):
|
|
||||||
"""
|
|
||||||
ModelReturn - a model defined in Swagger
|
|
||||||
|
|
||||||
:param dict swaggerTypes: The key is attribute name
|
|
||||||
|
"""
|
||||||
|
Attributes:
|
||||||
|
swagger_types (dict): The key is attribute name
|
||||||
and the value is attribute type.
|
and the value is attribute type.
|
||||||
:param dict attributeMap: 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.
|
||||||
"""
|
"""
|
||||||
self.swagger_types = {
|
swagger_types = {
|
||||||
'_return': 'int'
|
'_return': 'int'
|
||||||
}
|
}
|
||||||
|
|
||||||
self.attribute_map = {
|
attribute_map = {
|
||||||
'_return': 'return'
|
'_return': 'return'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
def __init__(self, _return=None):
|
||||||
|
"""
|
||||||
|
ModelReturn - a model defined in Swagger
|
||||||
|
"""
|
||||||
|
|
||||||
self.__return = None
|
self.__return = None
|
||||||
|
|
||||||
# TODO: let required properties as mandatory parameter in the constructor.
|
|
||||||
# - to check if required property is not None (e.g. by calling setter)
|
|
||||||
# - ApiClient.__deserialize_model has to be adapted as well
|
|
||||||
if _return is not None:
|
if _return is not None:
|
||||||
self._return = _return
|
self._return = _return
|
||||||
|
|
||||||
|
@ -107,11 +107,9 @@ Class | Method | HTTP request | Description
|
|||||||
- [ArrayOfNumberOnly](docs/ArrayOfNumberOnly.md)
|
- [ArrayOfNumberOnly](docs/ArrayOfNumberOnly.md)
|
||||||
- [ArrayTest](docs/ArrayTest.md)
|
- [ArrayTest](docs/ArrayTest.md)
|
||||||
- [Capitalization](docs/Capitalization.md)
|
- [Capitalization](docs/Capitalization.md)
|
||||||
- [Cat](docs/Cat.md)
|
|
||||||
- [Category](docs/Category.md)
|
- [Category](docs/Category.md)
|
||||||
- [ClassModel](docs/ClassModel.md)
|
- [ClassModel](docs/ClassModel.md)
|
||||||
- [Client](docs/Client.md)
|
- [Client](docs/Client.md)
|
||||||
- [Dog](docs/Dog.md)
|
|
||||||
- [EnumArrays](docs/EnumArrays.md)
|
- [EnumArrays](docs/EnumArrays.md)
|
||||||
- [EnumClass](docs/EnumClass.md)
|
- [EnumClass](docs/EnumClass.md)
|
||||||
- [EnumTest](docs/EnumTest.md)
|
- [EnumTest](docs/EnumTest.md)
|
||||||
@ -135,6 +133,8 @@ Class | Method | HTTP request | Description
|
|||||||
- [SpecialModelName](docs/SpecialModelName.md)
|
- [SpecialModelName](docs/SpecialModelName.md)
|
||||||
- [Tag](docs/Tag.md)
|
- [Tag](docs/Tag.md)
|
||||||
- [User](docs/User.md)
|
- [User](docs/User.md)
|
||||||
|
- [Cat](docs/Cat.md)
|
||||||
|
- [Dog](docs/Dog.md)
|
||||||
|
|
||||||
|
|
||||||
## Documentation For Authorization
|
## Documentation For Authorization
|
||||||
|
@ -22,7 +22,7 @@ Test serialization of outer boolean types
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```python
|
```python
|
||||||
from __future__ import print_statement
|
from __future__ import print_function
|
||||||
import time
|
import time
|
||||||
import petstore_api
|
import petstore_api
|
||||||
from petstore_api.rest import ApiException
|
from petstore_api.rest import ApiException
|
||||||
@ -69,7 +69,7 @@ Test serialization of object with outer number type
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```python
|
```python
|
||||||
from __future__ import print_statement
|
from __future__ import print_function
|
||||||
import time
|
import time
|
||||||
import petstore_api
|
import petstore_api
|
||||||
from petstore_api.rest import ApiException
|
from petstore_api.rest import ApiException
|
||||||
@ -116,7 +116,7 @@ Test serialization of outer number types
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```python
|
```python
|
||||||
from __future__ import print_statement
|
from __future__ import print_function
|
||||||
import time
|
import time
|
||||||
import petstore_api
|
import petstore_api
|
||||||
from petstore_api.rest import ApiException
|
from petstore_api.rest import ApiException
|
||||||
@ -163,7 +163,7 @@ Test serialization of outer string types
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```python
|
```python
|
||||||
from __future__ import print_statement
|
from __future__ import print_function
|
||||||
import time
|
import time
|
||||||
import petstore_api
|
import petstore_api
|
||||||
from petstore_api.rest import ApiException
|
from petstore_api.rest import ApiException
|
||||||
@ -210,7 +210,7 @@ To test \"client\" model
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```python
|
```python
|
||||||
from __future__ import print_statement
|
from __future__ import print_function
|
||||||
import time
|
import time
|
||||||
import petstore_api
|
import petstore_api
|
||||||
from petstore_api.rest import ApiException
|
from petstore_api.rest import ApiException
|
||||||
@ -258,7 +258,7 @@ Fake endpoint for testing various parameters 假端點 偽のエンドポイン
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```python
|
```python
|
||||||
from __future__ import print_statement
|
from __future__ import print_function
|
||||||
import time
|
import time
|
||||||
import petstore_api
|
import petstore_api
|
||||||
from petstore_api.rest import ApiException
|
from petstore_api.rest import ApiException
|
||||||
@ -335,7 +335,7 @@ To test enum parameters
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```python
|
```python
|
||||||
from __future__ import print_statement
|
from __future__ import print_function
|
||||||
import time
|
import time
|
||||||
import petstore_api
|
import petstore_api
|
||||||
from petstore_api.rest import ApiException
|
from petstore_api.rest import ApiException
|
||||||
|
@ -23,7 +23,7 @@ Add a new pet to the store
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```python
|
```python
|
||||||
from __future__ import print_statement
|
from __future__ import print_function
|
||||||
import time
|
import time
|
||||||
import petstore_api
|
import petstore_api
|
||||||
from petstore_api.rest import ApiException
|
from petstore_api.rest import ApiException
|
||||||
@ -73,7 +73,7 @@ Deletes a pet
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```python
|
```python
|
||||||
from __future__ import print_statement
|
from __future__ import print_function
|
||||||
import time
|
import time
|
||||||
import petstore_api
|
import petstore_api
|
||||||
from petstore_api.rest import ApiException
|
from petstore_api.rest import ApiException
|
||||||
@ -125,7 +125,7 @@ Multiple status values can be provided with comma separated strings
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```python
|
```python
|
||||||
from __future__ import print_statement
|
from __future__ import print_function
|
||||||
import time
|
import time
|
||||||
import petstore_api
|
import petstore_api
|
||||||
from petstore_api.rest import ApiException
|
from petstore_api.rest import ApiException
|
||||||
@ -176,7 +176,7 @@ Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```python
|
```python
|
||||||
from __future__ import print_statement
|
from __future__ import print_function
|
||||||
import time
|
import time
|
||||||
import petstore_api
|
import petstore_api
|
||||||
from petstore_api.rest import ApiException
|
from petstore_api.rest import ApiException
|
||||||
@ -227,7 +227,7 @@ Returns a single pet
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```python
|
```python
|
||||||
from __future__ import print_statement
|
from __future__ import print_function
|
||||||
import time
|
import time
|
||||||
import petstore_api
|
import petstore_api
|
||||||
from petstore_api.rest import ApiException
|
from petstore_api.rest import ApiException
|
||||||
@ -280,7 +280,7 @@ Update an existing pet
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```python
|
```python
|
||||||
from __future__ import print_statement
|
from __future__ import print_function
|
||||||
import time
|
import time
|
||||||
import petstore_api
|
import petstore_api
|
||||||
from petstore_api.rest import ApiException
|
from petstore_api.rest import ApiException
|
||||||
@ -330,7 +330,7 @@ Updates a pet in the store with form data
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```python
|
```python
|
||||||
from __future__ import print_statement
|
from __future__ import print_function
|
||||||
import time
|
import time
|
||||||
import petstore_api
|
import petstore_api
|
||||||
from petstore_api.rest import ApiException
|
from petstore_api.rest import ApiException
|
||||||
@ -384,7 +384,7 @@ uploads an image
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```python
|
```python
|
||||||
from __future__ import print_statement
|
from __future__ import print_function
|
||||||
import time
|
import time
|
||||||
import petstore_api
|
import petstore_api
|
||||||
from petstore_api.rest import ApiException
|
from petstore_api.rest import ApiException
|
||||||
|
@ -19,7 +19,7 @@ For valid response try integer IDs with value < 1000. Anything above 1000 or non
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```python
|
```python
|
||||||
from __future__ import print_statement
|
from __future__ import print_function
|
||||||
import time
|
import time
|
||||||
import petstore_api
|
import petstore_api
|
||||||
from petstore_api.rest import ApiException
|
from petstore_api.rest import ApiException
|
||||||
@ -66,7 +66,7 @@ Returns a map of status codes to quantities
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```python
|
```python
|
||||||
from __future__ import print_statement
|
from __future__ import print_function
|
||||||
import time
|
import time
|
||||||
import petstore_api
|
import petstore_api
|
||||||
from petstore_api.rest import ApiException
|
from petstore_api.rest import ApiException
|
||||||
@ -115,7 +115,7 @@ For valid response try integer IDs with value <= 5 or > 10. Other values will ge
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```python
|
```python
|
||||||
from __future__ import print_statement
|
from __future__ import print_function
|
||||||
import time
|
import time
|
||||||
import petstore_api
|
import petstore_api
|
||||||
from petstore_api.rest import ApiException
|
from petstore_api.rest import ApiException
|
||||||
@ -163,7 +163,7 @@ Place an order for a pet
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```python
|
```python
|
||||||
from __future__ import print_statement
|
from __future__ import print_function
|
||||||
import time
|
import time
|
||||||
import petstore_api
|
import petstore_api
|
||||||
from petstore_api.rest import ApiException
|
from petstore_api.rest import ApiException
|
||||||
|
@ -23,7 +23,7 @@ This can only be done by the logged in user.
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```python
|
```python
|
||||||
from __future__ import print_statement
|
from __future__ import print_function
|
||||||
import time
|
import time
|
||||||
import petstore_api
|
import petstore_api
|
||||||
from petstore_api.rest import ApiException
|
from petstore_api.rest import ApiException
|
||||||
@ -70,7 +70,7 @@ Creates list of users with given input array
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```python
|
```python
|
||||||
from __future__ import print_statement
|
from __future__ import print_function
|
||||||
import time
|
import time
|
||||||
import petstore_api
|
import petstore_api
|
||||||
from petstore_api.rest import ApiException
|
from petstore_api.rest import ApiException
|
||||||
@ -117,7 +117,7 @@ Creates list of users with given input array
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```python
|
```python
|
||||||
from __future__ import print_statement
|
from __future__ import print_function
|
||||||
import time
|
import time
|
||||||
import petstore_api
|
import petstore_api
|
||||||
from petstore_api.rest import ApiException
|
from petstore_api.rest import ApiException
|
||||||
@ -164,7 +164,7 @@ This can only be done by the logged in user.
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```python
|
```python
|
||||||
from __future__ import print_statement
|
from __future__ import print_function
|
||||||
import time
|
import time
|
||||||
import petstore_api
|
import petstore_api
|
||||||
from petstore_api.rest import ApiException
|
from petstore_api.rest import ApiException
|
||||||
@ -211,7 +211,7 @@ Get user by user name
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```python
|
```python
|
||||||
from __future__ import print_statement
|
from __future__ import print_function
|
||||||
import time
|
import time
|
||||||
import petstore_api
|
import petstore_api
|
||||||
from petstore_api.rest import ApiException
|
from petstore_api.rest import ApiException
|
||||||
@ -259,7 +259,7 @@ Logs user into the system
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```python
|
```python
|
||||||
from __future__ import print_statement
|
from __future__ import print_function
|
||||||
import time
|
import time
|
||||||
import petstore_api
|
import petstore_api
|
||||||
from petstore_api.rest import ApiException
|
from petstore_api.rest import ApiException
|
||||||
@ -309,7 +309,7 @@ Logs out current logged in user session
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```python
|
```python
|
||||||
from __future__ import print_statement
|
from __future__ import print_function
|
||||||
import time
|
import time
|
||||||
import petstore_api
|
import petstore_api
|
||||||
from petstore_api.rest import ApiException
|
from petstore_api.rest import ApiException
|
||||||
@ -352,7 +352,7 @@ This can only be done by the logged in user.
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```python
|
```python
|
||||||
from __future__ import print_statement
|
from __future__ import print_function
|
||||||
import time
|
import time
|
||||||
import petstore_api
|
import petstore_api
|
||||||
from petstore_api.rest import ApiException
|
from petstore_api.rest import ApiException
|
||||||
|
@ -22,11 +22,9 @@ from .models.array_of_array_of_number_only import ArrayOfArrayOfNumberOnly
|
|||||||
from .models.array_of_number_only import ArrayOfNumberOnly
|
from .models.array_of_number_only import ArrayOfNumberOnly
|
||||||
from .models.array_test import ArrayTest
|
from .models.array_test import ArrayTest
|
||||||
from .models.capitalization import Capitalization
|
from .models.capitalization import Capitalization
|
||||||
from .models.cat import Cat
|
|
||||||
from .models.category import Category
|
from .models.category import Category
|
||||||
from .models.class_model import ClassModel
|
from .models.class_model import ClassModel
|
||||||
from .models.client import Client
|
from .models.client import Client
|
||||||
from .models.dog import Dog
|
|
||||||
from .models.enum_arrays import EnumArrays
|
from .models.enum_arrays import EnumArrays
|
||||||
from .models.enum_class import EnumClass
|
from .models.enum_class import EnumClass
|
||||||
from .models.enum_test import EnumTest
|
from .models.enum_test import EnumTest
|
||||||
@ -50,6 +48,8 @@ from .models.read_only_first import ReadOnlyFirst
|
|||||||
from .models.special_model_name import SpecialModelName
|
from .models.special_model_name import SpecialModelName
|
||||||
from .models.tag import Tag
|
from .models.tag import Tag
|
||||||
from .models.user import User
|
from .models.user import User
|
||||||
|
from .models.cat import Cat
|
||||||
|
from .models.dog import Dog
|
||||||
|
|
||||||
# import apis into sdk package
|
# import apis into sdk package
|
||||||
from .apis.fake_api import FakeApi
|
from .apis.fake_api import FakeApi
|
||||||
|
@ -105,7 +105,7 @@ class FakeApi(object):
|
|||||||
|
|
||||||
path_params = {}
|
path_params = {}
|
||||||
|
|
||||||
query_params = {}
|
query_params = []
|
||||||
|
|
||||||
header_params = {}
|
header_params = {}
|
||||||
|
|
||||||
@ -198,7 +198,7 @@ class FakeApi(object):
|
|||||||
|
|
||||||
path_params = {}
|
path_params = {}
|
||||||
|
|
||||||
query_params = {}
|
query_params = []
|
||||||
|
|
||||||
header_params = {}
|
header_params = {}
|
||||||
|
|
||||||
@ -291,7 +291,7 @@ class FakeApi(object):
|
|||||||
|
|
||||||
path_params = {}
|
path_params = {}
|
||||||
|
|
||||||
query_params = {}
|
query_params = []
|
||||||
|
|
||||||
header_params = {}
|
header_params = {}
|
||||||
|
|
||||||
@ -384,7 +384,7 @@ class FakeApi(object):
|
|||||||
|
|
||||||
path_params = {}
|
path_params = {}
|
||||||
|
|
||||||
query_params = {}
|
query_params = []
|
||||||
|
|
||||||
header_params = {}
|
header_params = {}
|
||||||
|
|
||||||
|
@ -22,11 +22,9 @@ from .array_of_array_of_number_only import ArrayOfArrayOfNumberOnly
|
|||||||
from .array_of_number_only import ArrayOfNumberOnly
|
from .array_of_number_only import ArrayOfNumberOnly
|
||||||
from .array_test import ArrayTest
|
from .array_test import ArrayTest
|
||||||
from .capitalization import Capitalization
|
from .capitalization import Capitalization
|
||||||
from .cat import Cat
|
|
||||||
from .category import Category
|
from .category import Category
|
||||||
from .class_model import ClassModel
|
from .class_model import ClassModel
|
||||||
from .client import Client
|
from .client import Client
|
||||||
from .dog import Dog
|
|
||||||
from .enum_arrays import EnumArrays
|
from .enum_arrays import EnumArrays
|
||||||
from .enum_class import EnumClass
|
from .enum_class import EnumClass
|
||||||
from .enum_test import EnumTest
|
from .enum_test import EnumTest
|
||||||
@ -50,3 +48,5 @@ from .read_only_first import ReadOnlyFirst
|
|||||||
from .special_model_name import SpecialModelName
|
from .special_model_name import SpecialModelName
|
||||||
from .tag import Tag
|
from .tag import Tag
|
||||||
from .user import User
|
from .user import User
|
||||||
|
from .cat import Cat
|
||||||
|
from .dog import Dog
|
||||||
|
@ -21,22 +21,28 @@ class OuterBoolean(object):
|
|||||||
NOTE: This class is auto generated by the swagger code generator program.
|
NOTE: This class is auto generated by the swagger code generator program.
|
||||||
Do not edit the class manually.
|
Do not edit the class manually.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
|
"""
|
||||||
|
Attributes:
|
||||||
|
swagger_types (dict): The key is attribute name
|
||||||
|
and the value is attribute type.
|
||||||
|
attribute_map (dict): The key is attribute name
|
||||||
|
and the value is json key in definition.
|
||||||
|
"""
|
||||||
|
swagger_types = {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
attribute_map = {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
"""
|
"""
|
||||||
OuterBoolean - a model defined in Swagger
|
OuterBoolean - 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):
|
def to_dict(self):
|
||||||
|
@ -21,30 +21,42 @@ class OuterComposite(object):
|
|||||||
NOTE: This class is auto generated by the swagger code generator program.
|
NOTE: This class is auto generated by the swagger code generator program.
|
||||||
Do not edit the class manually.
|
Do not edit the class manually.
|
||||||
"""
|
"""
|
||||||
def __init__(self, my_number=None, my_string=None, my_boolean=None):
|
|
||||||
"""
|
|
||||||
OuterComposite - a model defined in Swagger
|
|
||||||
|
|
||||||
:param dict swaggerTypes: The key is attribute name
|
|
||||||
|
"""
|
||||||
|
Attributes:
|
||||||
|
swagger_types (dict): The key is attribute name
|
||||||
and the value is attribute type.
|
and the value is attribute type.
|
||||||
:param dict attributeMap: 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.
|
||||||
"""
|
"""
|
||||||
self.swagger_types = {
|
swagger_types = {
|
||||||
'my_number': 'OuterNumber',
|
'my_number': 'OuterNumber',
|
||||||
'my_string': 'OuterString',
|
'my_string': 'OuterString',
|
||||||
'my_boolean': 'OuterBoolean'
|
'my_boolean': 'OuterBoolean'
|
||||||
}
|
}
|
||||||
|
|
||||||
self.attribute_map = {
|
attribute_map = {
|
||||||
'my_number': 'my_number',
|
'my_number': 'my_number',
|
||||||
'my_string': 'my_string',
|
'my_string': 'my_string',
|
||||||
'my_boolean': 'my_boolean'
|
'my_boolean': 'my_boolean'
|
||||||
}
|
}
|
||||||
|
|
||||||
self._my_number = my_number
|
def __init__(self, my_number=None, my_string=None, my_boolean=None):
|
||||||
self._my_string = my_string
|
"""
|
||||||
self._my_boolean = my_boolean
|
OuterComposite - a model defined in Swagger
|
||||||
|
"""
|
||||||
|
|
||||||
|
self._my_number = None
|
||||||
|
self._my_string = None
|
||||||
|
self._my_boolean = None
|
||||||
|
|
||||||
|
if my_number is not None:
|
||||||
|
self.my_number = my_number
|
||||||
|
if my_string is not None:
|
||||||
|
self.my_string = my_string
|
||||||
|
if my_boolean is not None:
|
||||||
|
self.my_boolean = my_boolean
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def my_number(self):
|
def my_number(self):
|
||||||
|
@ -21,22 +21,28 @@ class OuterNumber(object):
|
|||||||
NOTE: This class is auto generated by the swagger code generator program.
|
NOTE: This class is auto generated by the swagger code generator program.
|
||||||
Do not edit the class manually.
|
Do not edit the class manually.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
|
"""
|
||||||
|
Attributes:
|
||||||
|
swagger_types (dict): The key is attribute name
|
||||||
|
and the value is attribute type.
|
||||||
|
attribute_map (dict): The key is attribute name
|
||||||
|
and the value is json key in definition.
|
||||||
|
"""
|
||||||
|
swagger_types = {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
attribute_map = {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
"""
|
"""
|
||||||
OuterNumber - a model defined in Swagger
|
OuterNumber - 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):
|
def to_dict(self):
|
||||||
|
@ -21,22 +21,28 @@ class OuterString(object):
|
|||||||
NOTE: This class is auto generated by the swagger code generator program.
|
NOTE: This class is auto generated by the swagger code generator program.
|
||||||
Do not edit the class manually.
|
Do not edit the class manually.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
|
"""
|
||||||
|
Attributes:
|
||||||
|
swagger_types (dict): The key is attribute name
|
||||||
|
and the value is attribute type.
|
||||||
|
attribute_map (dict): The key is attribute name
|
||||||
|
and the value is json key in definition.
|
||||||
|
"""
|
||||||
|
swagger_types = {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
attribute_map = {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
"""
|
"""
|
||||||
OuterString - a model defined in Swagger
|
OuterString - 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):
|
def to_dict(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user