update python sample after rebase

This commit is contained in:
wing328
2016-04-08 23:54:47 +08:00
parent f44e5faf1b
commit 10de0b5c5b
8 changed files with 1069 additions and 574 deletions

View File

@@ -1,7 +1,10 @@
from __future__ import absolute_import
# import models into model package
from .animal import Animal
from .cat import Cat
from .category import Category
from .dog import Dog
from .inline_response_200 import InlineResponse200
from .model_200_response import Model200Response
from .model_return import ModelReturn

View File

@@ -37,14 +37,17 @@ class Name(object):
and the value is json key in definition.
"""
self.swagger_types = {
'name': 'int'
'name': 'int',
'snake_case': 'int'
}
self.attribute_map = {
'name': 'name'
'name': 'name',
'snake_case': 'snake_case'
}
self._name = None
self._snake_case = None
@property
def name(self):
@@ -68,6 +71,28 @@ class Name(object):
"""
self._name = name
@property
def snake_case(self):
"""
Gets the snake_case of this Name.
:return: The snake_case of this Name.
:rtype: int
"""
return self._snake_case
@snake_case.setter
def snake_case(self, snake_case):
"""
Sets the snake_case of this Name.
:param snake_case: The snake_case of this Name.
:type: int
"""
self._snake_case = snake_case
def to_dict(self):
"""
Returns the model properties as a dict