[Python] Follow PEP8 rules ( Issue #3041 )

This commit is contained in:
Takuro Wada
2016-06-05 23:15:36 +09:00
parent 34fed26e79
commit 955d39f709
68 changed files with 654 additions and 879 deletions

View File

@@ -8,13 +8,13 @@
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io
Generated by: https://github.com/swagger-api/swagger-codegen.git
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

View File

@@ -8,13 +8,13 @@
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io
Generated by: https://github.com/swagger-api/swagger-codegen.git
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -74,7 +74,7 @@ class AdditionalPropertiesClass(object):
:param map_property: The map_property of this AdditionalPropertiesClass.
:type: dict(str, str)
"""
self._map_property = map_property
@property
@@ -97,7 +97,7 @@ class AdditionalPropertiesClass(object):
:param map_of_map_property: The map_of_map_property of this AdditionalPropertiesClass.
:type: dict(str, dict(str, str))
"""
self._map_of_map_property = map_of_map_property
def to_dict(self):
@@ -149,4 +149,3 @@ class AdditionalPropertiesClass(object):
Returns true if both objects are not equal
"""
return not self == other

View File

@@ -8,13 +8,13 @@
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io
Generated by: https://github.com/swagger-api/swagger-codegen.git
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -74,7 +74,7 @@ class Animal(object):
:param class_name: The class_name of this Animal.
:type: str
"""
self._class_name = class_name
@property
@@ -97,7 +97,7 @@ class Animal(object):
:param color: The color of this Animal.
:type: str
"""
self._color = color
def to_dict(self):
@@ -149,4 +149,3 @@ class Animal(object):
Returns true if both objects are not equal
"""
return not self == other

View File

@@ -8,13 +8,13 @@
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io
Generated by: https://github.com/swagger-api/swagger-codegen.git
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -49,7 +49,6 @@ class AnimalFarm(object):
}
def to_dict(self):
"""
Returns the model properties as a dict
@@ -99,4 +98,3 @@ class AnimalFarm(object):
Returns true if both objects are not equal
"""
return not self == other

View File

@@ -8,13 +8,13 @@
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io
Generated by: https://github.com/swagger-api/swagger-codegen.git
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -77,7 +77,7 @@ class ApiResponse(object):
:param code: The code of this ApiResponse.
:type: int
"""
self._code = code
@property
@@ -100,7 +100,7 @@ class ApiResponse(object):
:param type: The type of this ApiResponse.
:type: str
"""
self._type = type
@property
@@ -123,7 +123,7 @@ class ApiResponse(object):
:param message: The message of this ApiResponse.
:type: str
"""
self._message = message
def to_dict(self):
@@ -175,4 +175,3 @@ class ApiResponse(object):
Returns true if both objects are not equal
"""
return not self == other

View File

@@ -8,13 +8,13 @@
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io
Generated by: https://github.com/swagger-api/swagger-codegen.git
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -77,7 +77,7 @@ class ArrayTest(object):
:param array_of_string: The array_of_string of this ArrayTest.
:type: list[str]
"""
self._array_of_string = array_of_string
@property
@@ -100,7 +100,7 @@ class ArrayTest(object):
:param array_array_of_integer: The array_array_of_integer of this ArrayTest.
:type: list[list[int]]
"""
self._array_array_of_integer = array_array_of_integer
@property
@@ -123,7 +123,7 @@ class ArrayTest(object):
:param array_array_of_model: The array_array_of_model of this ArrayTest.
:type: list[list[ReadOnlyFirst]]
"""
self._array_array_of_model = array_array_of_model
def to_dict(self):
@@ -175,4 +175,3 @@ class ArrayTest(object):
Returns true if both objects are not equal
"""
return not self == other

View File

@@ -8,13 +8,13 @@
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io
Generated by: https://github.com/swagger-api/swagger-codegen.git
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -77,7 +77,7 @@ class Cat(object):
:param class_name: The class_name of this Cat.
:type: str
"""
self._class_name = class_name
@property
@@ -100,7 +100,7 @@ class Cat(object):
:param color: The color of this Cat.
:type: str
"""
self._color = color
@property
@@ -123,7 +123,7 @@ class Cat(object):
:param declawed: The declawed of this Cat.
:type: bool
"""
self._declawed = declawed
def to_dict(self):
@@ -175,4 +175,3 @@ class Cat(object):
Returns true if both objects are not equal
"""
return not self == other

View File

@@ -8,13 +8,13 @@
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io
Generated by: https://github.com/swagger-api/swagger-codegen.git
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -74,7 +74,7 @@ class Category(object):
:param id: The id of this Category.
:type: int
"""
self._id = id
@property
@@ -97,7 +97,7 @@ class Category(object):
:param name: The name of this Category.
:type: str
"""
self._name = name
def to_dict(self):
@@ -149,4 +149,3 @@ class Category(object):
Returns true if both objects are not equal
"""
return not self == other

View File

@@ -8,13 +8,13 @@
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io
Generated by: https://github.com/swagger-api/swagger-codegen.git
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -77,7 +77,7 @@ class Dog(object):
:param class_name: The class_name of this Dog.
:type: str
"""
self._class_name = class_name
@property
@@ -100,7 +100,7 @@ class Dog(object):
:param color: The color of this Dog.
:type: str
"""
self._color = color
@property
@@ -123,7 +123,7 @@ class Dog(object):
:param breed: The breed of this Dog.
:type: str
"""
self._breed = breed
def to_dict(self):
@@ -175,4 +175,3 @@ class Dog(object):
Returns true if both objects are not equal
"""
return not self == other

View File

@@ -8,13 +8,13 @@
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io
Generated by: https://github.com/swagger-api/swagger-codegen.git
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -49,7 +49,6 @@ class EnumClass(object):
}
def to_dict(self):
"""
Returns the model properties as a dict
@@ -99,4 +98,3 @@ class EnumClass(object):
Returns true if both objects are not equal
"""
return not self == other

View File

@@ -8,13 +8,13 @@
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io
Generated by: https://github.com/swagger-api/swagger-codegen.git
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -193,4 +193,3 @@ class EnumTest(object):
Returns true if both objects are not equal
"""
return not self == other

View File

@@ -8,13 +8,13 @@
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io
Generated by: https://github.com/swagger-api/swagger-codegen.git
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -107,12 +107,12 @@ class FormatTest(object):
:param integer: The integer of this FormatTest.
:type: int
"""
if not integer:
raise ValueError("Invalid value for `integer`, must not be `None`")
if integer > 100.0:
if integer > 100.0:
raise ValueError("Invalid value for `integer`, must be a value less than or equal to `100.0`")
if integer < 10.0:
if integer < 10.0:
raise ValueError("Invalid value for `integer`, must be a value greater than or equal to `10.0`")
self._integer = integer
@@ -137,12 +137,12 @@ class FormatTest(object):
:param int32: The int32 of this FormatTest.
:type: int
"""
if not int32:
raise ValueError("Invalid value for `int32`, must not be `None`")
if int32 > 200.0:
if int32 > 200.0:
raise ValueError("Invalid value for `int32`, must be a value less than or equal to `200.0`")
if int32 < 20.0:
if int32 < 20.0:
raise ValueError("Invalid value for `int32`, must be a value greater than or equal to `20.0`")
self._int32 = int32
@@ -167,7 +167,7 @@ class FormatTest(object):
:param int64: The int64 of this FormatTest.
:type: int
"""
self._int64 = int64
@property
@@ -190,12 +190,12 @@ class FormatTest(object):
:param number: The number of this FormatTest.
:type: float
"""
if not number:
raise ValueError("Invalid value for `number`, must not be `None`")
if number > 543.2:
if number > 543.2:
raise ValueError("Invalid value for `number`, must be a value less than or equal to `543.2`")
if number < 32.1:
if number < 32.1:
raise ValueError("Invalid value for `number`, must be a value greater than or equal to `32.1`")
self._number = number
@@ -220,12 +220,12 @@ class FormatTest(object):
:param float: The float of this FormatTest.
:type: float
"""
if not float:
raise ValueError("Invalid value for `float`, must not be `None`")
if float > 987.6:
if float > 987.6:
raise ValueError("Invalid value for `float`, must be a value less than or equal to `987.6`")
if float < 54.3:
if float < 54.3:
raise ValueError("Invalid value for `float`, must be a value greater than or equal to `54.3`")
self._float = float
@@ -250,12 +250,12 @@ class FormatTest(object):
:param double: The double of this FormatTest.
:type: float
"""
if not double:
raise ValueError("Invalid value for `double`, must not be `None`")
if double > 123.4:
if double > 123.4:
raise ValueError("Invalid value for `double`, must be a value less than or equal to `123.4`")
if double < 67.8:
if double < 67.8:
raise ValueError("Invalid value for `double`, must be a value greater than or equal to `67.8`")
self._double = double
@@ -280,10 +280,10 @@ class FormatTest(object):
:param string: The string of this FormatTest.
:type: str
"""
if not string:
raise ValueError("Invalid value for `string`, must not be `None`")
if not re.search('[a-z]', string, flags=re.IGNORECASE):
if not re.search('[a-z]', string, flags=re.IGNORECASE):
raise ValueError("Invalid value for `string`, must be a follow pattern or equal to `/[a-z]/i`")
self._string = string
@@ -308,7 +308,7 @@ class FormatTest(object):
:param byte: The byte of this FormatTest.
:type: str
"""
self._byte = byte
@property
@@ -331,7 +331,7 @@ class FormatTest(object):
:param binary: The binary of this FormatTest.
:type: str
"""
self._binary = binary
@property
@@ -354,7 +354,7 @@ class FormatTest(object):
:param date: The date of this FormatTest.
:type: date
"""
self._date = date
@property
@@ -377,7 +377,7 @@ class FormatTest(object):
:param date_time: The date_time of this FormatTest.
:type: datetime
"""
self._date_time = date_time
@property
@@ -400,7 +400,7 @@ class FormatTest(object):
:param uuid: The uuid of this FormatTest.
:type: str
"""
self._uuid = uuid
@property
@@ -423,12 +423,12 @@ class FormatTest(object):
:param password: The password of this FormatTest.
:type: str
"""
if not password:
raise ValueError("Invalid value for `password`, must not be `None`")
if len(password) > 64:
if len(password) > 64:
raise ValueError("Invalid value for `password`, length must be less than `64`")
if len(password) < 10:
if len(password) < 10:
raise ValueError("Invalid value for `password`, length must be greater than or equal to `10`")
self._password = password
@@ -482,4 +482,3 @@ class FormatTest(object):
Returns true if both objects are not equal
"""
return not self == other

View File

@@ -1,251 +0,0 @@
# coding: utf-8
"""
Copyright 2016 SmartBear Software
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Ref: https://github.com/swagger-api/swagger-codegen
"""
from pprint import pformat
from six import iteritems
class InlineResponse200(object):
"""
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
"""
def __init__(self):
"""
InlineResponse200 - 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 = {
'tags': 'list[Tag]',
'id': 'int',
'category': 'object',
'status': 'str',
'name': 'str',
'photo_urls': 'list[str]'
}
self.attribute_map = {
'tags': 'tags',
'id': 'id',
'category': 'category',
'status': 'status',
'name': 'name',
'photo_urls': 'photoUrls'
}
self._tags = None
self._id = None
self._category = None
self._status = None
self._name = None
self._photo_urls = None
@property
def tags(self):
"""
Gets the tags of this InlineResponse200.
:return: The tags of this InlineResponse200.
:rtype: list[Tag]
"""
return self._tags
@tags.setter
def tags(self, tags):
"""
Sets the tags of this InlineResponse200.
:param tags: The tags of this InlineResponse200.
:type: list[Tag]
"""
self._tags = tags
@property
def id(self):
"""
Gets the id of this InlineResponse200.
:return: The id of this InlineResponse200.
:rtype: int
"""
return self._id
@id.setter
def id(self, id):
"""
Sets the id of this InlineResponse200.
:param id: The id of this InlineResponse200.
:type: int
"""
self._id = id
@property
def category(self):
"""
Gets the category of this InlineResponse200.
:return: The category of this InlineResponse200.
:rtype: object
"""
return self._category
@category.setter
def category(self, category):
"""
Sets the category of this InlineResponse200.
:param category: The category of this InlineResponse200.
:type: object
"""
self._category = category
@property
def status(self):
"""
Gets the status of this InlineResponse200.
pet status in the store
:return: The status of this InlineResponse200.
:rtype: str
"""
return self._status
@status.setter
def status(self, status):
"""
Sets the status of this InlineResponse200.
pet status in the store
:param status: The status of this InlineResponse200.
:type: str
"""
allowed_values = ["available", "pending", "sold"]
if status not in allowed_values:
raise ValueError(
"Invalid value for `status`, must be one of {0}"
.format(allowed_values)
)
self._status = status
@property
def name(self):
"""
Gets the name of this InlineResponse200.
:return: The name of this InlineResponse200.
:rtype: str
"""
return self._name
@name.setter
def name(self, name):
"""
Sets the name of this InlineResponse200.
:param name: The name of this InlineResponse200.
:type: str
"""
self._name = name
@property
def photo_urls(self):
"""
Gets the photo_urls of this InlineResponse200.
:return: The photo_urls of this InlineResponse200.
:rtype: list[str]
"""
return self._photo_urls
@photo_urls.setter
def photo_urls(self, photo_urls):
"""
Sets the photo_urls of this InlineResponse200.
:param photo_urls: The photo_urls of this InlineResponse200.
:type: list[str]
"""
self._photo_urls = photo_urls
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

View File

@@ -8,13 +8,13 @@
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io
Generated by: https://github.com/swagger-api/swagger-codegen.git
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -77,7 +77,7 @@ class MixedPropertiesAndAdditionalPropertiesClass(object):
:param uuid: The uuid of this MixedPropertiesAndAdditionalPropertiesClass.
:type: str
"""
self._uuid = uuid
@property
@@ -100,7 +100,7 @@ class MixedPropertiesAndAdditionalPropertiesClass(object):
:param date_time: The date_time of this MixedPropertiesAndAdditionalPropertiesClass.
:type: datetime
"""
self._date_time = date_time
@property
@@ -123,7 +123,7 @@ class MixedPropertiesAndAdditionalPropertiesClass(object):
:param map: The map of this MixedPropertiesAndAdditionalPropertiesClass.
:type: dict(str, Animal)
"""
self._map = map
def to_dict(self):
@@ -175,4 +175,3 @@ class MixedPropertiesAndAdditionalPropertiesClass(object):
Returns true if both objects are not equal
"""
return not self == other

View File

@@ -8,13 +8,13 @@
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io
Generated by: https://github.com/swagger-api/swagger-codegen.git
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -71,7 +71,7 @@ class Model200Response(object):
:param name: The name of this Model200Response.
:type: int
"""
self._name = name
def to_dict(self):
@@ -123,4 +123,3 @@ class Model200Response(object):
Returns true if both objects are not equal
"""
return not self == other

View File

@@ -8,13 +8,13 @@
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io
Generated by: https://github.com/swagger-api/swagger-codegen.git
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -71,7 +71,7 @@ class ModelReturn(object):
:param _return: The _return of this ModelReturn.
:type: int
"""
self.__return = _return
def to_dict(self):
@@ -123,4 +123,3 @@ class ModelReturn(object):
Returns true if both objects are not equal
"""
return not self == other

View File

@@ -8,13 +8,13 @@
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io
Generated by: https://github.com/swagger-api/swagger-codegen.git
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -80,7 +80,7 @@ class Name(object):
:param name: The name of this Name.
:type: int
"""
self._name = name
@property
@@ -103,7 +103,7 @@ class Name(object):
:param snake_case: The snake_case of this Name.
:type: int
"""
self._snake_case = snake_case
@property
@@ -126,7 +126,7 @@ class Name(object):
:param _property: The _property of this Name.
:type: str
"""
self.__property = _property
@property
@@ -149,7 +149,7 @@ class Name(object):
:param _123_number: The _123_number of this Name.
:type: int
"""
self.__123_number = _123_number
def to_dict(self):
@@ -201,4 +201,3 @@ class Name(object):
Returns true if both objects are not equal
"""
return not self == other

View File

@@ -8,13 +8,13 @@
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io
Generated by: https://github.com/swagger-api/swagger-codegen.git
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -86,7 +86,7 @@ class Order(object):
:param id: The id of this Order.
:type: int
"""
self._id = id
@property
@@ -109,7 +109,7 @@ class Order(object):
:param pet_id: The pet_id of this Order.
:type: int
"""
self._pet_id = pet_id
@property
@@ -132,7 +132,7 @@ class Order(object):
:param quantity: The quantity of this Order.
:type: int
"""
self._quantity = quantity
@property
@@ -155,7 +155,7 @@ class Order(object):
:param ship_date: The ship_date of this Order.
:type: datetime
"""
self._ship_date = ship_date
@property
@@ -207,7 +207,7 @@ class Order(object):
:param complete: The complete of this Order.
:type: bool
"""
self._complete = complete
def to_dict(self):
@@ -259,4 +259,3 @@ class Order(object):
Returns true if both objects are not equal
"""
return not self == other

View File

@@ -8,13 +8,13 @@
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io
Generated by: https://github.com/swagger-api/swagger-codegen.git
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -86,7 +86,7 @@ class Pet(object):
:param id: The id of this Pet.
:type: int
"""
self._id = id
@property
@@ -109,7 +109,7 @@ class Pet(object):
:param category: The category of this Pet.
:type: Category
"""
self._category = category
@property
@@ -132,7 +132,7 @@ class Pet(object):
:param name: The name of this Pet.
:type: str
"""
self._name = name
@property
@@ -155,7 +155,7 @@ class Pet(object):
:param photo_urls: The photo_urls of this Pet.
:type: list[str]
"""
self._photo_urls = photo_urls
@property
@@ -178,7 +178,7 @@ class Pet(object):
:param tags: The tags of this Pet.
:type: list[Tag]
"""
self._tags = tags
@property
@@ -259,4 +259,3 @@ class Pet(object):
Returns true if both objects are not equal
"""
return not self == other

View File

@@ -8,13 +8,13 @@
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io
Generated by: https://github.com/swagger-api/swagger-codegen.git
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -74,7 +74,7 @@ class ReadOnlyFirst(object):
:param bar: The bar of this ReadOnlyFirst.
:type: str
"""
self._bar = bar
@property
@@ -97,7 +97,7 @@ class ReadOnlyFirst(object):
:param baz: The baz of this ReadOnlyFirst.
:type: str
"""
self._baz = baz
def to_dict(self):
@@ -149,4 +149,3 @@ class ReadOnlyFirst(object):
Returns true if both objects are not equal
"""
return not self == other

View File

@@ -8,13 +8,13 @@
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io
Generated by: https://github.com/swagger-api/swagger-codegen.git
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -71,7 +71,7 @@ class SpecialModelName(object):
:param special_property_name: The special_property_name of this SpecialModelName.
:type: int
"""
self._special_property_name = special_property_name
def to_dict(self):
@@ -123,4 +123,3 @@ class SpecialModelName(object):
Returns true if both objects are not equal
"""
return not self == other

View File

@@ -8,13 +8,13 @@
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io
Generated by: https://github.com/swagger-api/swagger-codegen.git
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -74,7 +74,7 @@ class Tag(object):
:param id: The id of this Tag.
:type: int
"""
self._id = id
@property
@@ -97,7 +97,7 @@ class Tag(object):
:param name: The name of this Tag.
:type: str
"""
self._name = name
def to_dict(self):
@@ -149,4 +149,3 @@ class Tag(object):
Returns true if both objects are not equal
"""
return not self == other

View File

@@ -8,13 +8,13 @@
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io
Generated by: https://github.com/swagger-api/swagger-codegen.git
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -92,7 +92,7 @@ class User(object):
:param id: The id of this User.
:type: int
"""
self._id = id
@property
@@ -115,7 +115,7 @@ class User(object):
:param username: The username of this User.
:type: str
"""
self._username = username
@property
@@ -138,7 +138,7 @@ class User(object):
:param first_name: The first_name of this User.
:type: str
"""
self._first_name = first_name
@property
@@ -161,7 +161,7 @@ class User(object):
:param last_name: The last_name of this User.
:type: str
"""
self._last_name = last_name
@property
@@ -184,7 +184,7 @@ class User(object):
:param email: The email of this User.
:type: str
"""
self._email = email
@property
@@ -207,7 +207,7 @@ class User(object):
:param password: The password of this User.
:type: str
"""
self._password = password
@property
@@ -230,7 +230,7 @@ class User(object):
:param phone: The phone of this User.
:type: str
"""
self._phone = phone
@property
@@ -253,7 +253,7 @@ class User(object):
:param user_status: The user_status of this User.
:type: int
"""
self._user_status = user_status
def to_dict(self):
@@ -305,4 +305,3 @@ class User(object):
Returns true if both objects are not equal
"""
return not self == other