Merge remote-tracking branch 'origin' into sync_master_230

This commit is contained in:
wing328
2017-02-10 23:31:36 +08:00
1480 changed files with 60531 additions and 12438 deletions

View File

@@ -8,20 +8,9 @@
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.
See the License for the specific language governing permissions and
limitations under the License.
"""
from __future__ import absolute_import
import sys
@@ -54,8 +43,6 @@ class FakeClassnameTags123Api(object):
def test_classname(self, body, **kwargs):
"""
To test class name in snake case
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.
@@ -81,8 +68,6 @@ class FakeClassnameTags123Api(object):
def test_classname_with_http_info(self, body, **kwargs):
"""
To test class name in snake case
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.
@@ -102,6 +87,8 @@ class FakeClassnameTags123Api(object):
all_params = ['body']
all_params.append('callback')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in iteritems(params['kwargs']):
@@ -132,12 +119,9 @@ class FakeClassnameTags123Api(object):
body_params = None
if 'body' in params:
body_params = params['body']
# HTTP header `Accept`
header_params['Accept'] = self.api_client.\
select_header_accept(['application/json'])
if not header_params['Accept']:
del header_params['Accept']
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.\
@@ -147,14 +131,16 @@ class FakeClassnameTags123Api(object):
auth_settings = []
return self.api_client.call_api(resource_path, 'PATCH',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='Client',
auth_settings=auth_settings,
callback=params.get('callback'),
_return_http_data_only=params.get('_return_http_data_only'),
collection_formats=collection_formats)
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='Client',
auth_settings=auth_settings,
callback=params.get('callback'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)

View File

@@ -127,6 +127,9 @@ class AdditionalPropertiesClass(object):
"""
Returns true if both objects are equal
"""
if not isinstance(other, AdditionalPropertiesClass):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):

View File

@@ -129,6 +129,9 @@ class Animal(object):
"""
Returns true if both objects are equal
"""
if not isinstance(other, Animal):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):

View File

@@ -81,6 +81,9 @@ class AnimalFarm(object):
"""
Returns true if both objects are equal
"""
if not isinstance(other, AnimalFarm):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):

View File

@@ -151,6 +151,9 @@ class ApiResponse(object):
"""
Returns true if both objects are equal
"""
if not isinstance(other, ApiResponse):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):

View File

@@ -103,6 +103,9 @@ class ArrayOfArrayOfNumberOnly(object):
"""
Returns true if both objects are equal
"""
if not isinstance(other, ArrayOfArrayOfNumberOnly):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):

View File

@@ -103,6 +103,9 @@ class ArrayOfNumberOnly(object):
"""
Returns true if both objects are equal
"""
if not isinstance(other, ArrayOfNumberOnly):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):

View File

@@ -151,6 +151,9 @@ class ArrayTest(object):
"""
Returns true if both objects are equal
"""
if not isinstance(other, ArrayTest):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):

View File

@@ -225,6 +225,9 @@ class Capitalization(object):
"""
Returns true if both objects are equal
"""
if not isinstance(other, Capitalization):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):

View File

@@ -153,6 +153,9 @@ class Cat(object):
"""
Returns true if both objects are equal
"""
if not isinstance(other, Cat):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):

View File

@@ -127,6 +127,9 @@ class Category(object):
"""
Returns true if both objects are equal
"""
if not isinstance(other, Category):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):

View File

@@ -103,6 +103,9 @@ class ClassModel(object):
"""
Returns true if both objects are equal
"""
if not isinstance(other, ClassModel):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):

View File

@@ -103,6 +103,9 @@ class Client(object):
"""
Returns true if both objects are equal
"""
if not isinstance(other, Client):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):

View File

@@ -153,6 +153,9 @@ class Dog(object):
"""
Returns true if both objects are equal
"""
if not isinstance(other, Dog):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):

View File

@@ -140,6 +140,9 @@ class EnumArrays(object):
"""
Returns true if both objects are equal
"""
if not isinstance(other, EnumArrays):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):

View File

@@ -81,6 +81,9 @@ class EnumClass(object):
"""
Returns true if both objects are equal
"""
if not isinstance(other, EnumClass):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):

View File

@@ -67,7 +67,7 @@ class EnumTest(object):
:param enum_string: The enum_string of this EnumTest.
:type: str
"""
allowed_values = ["UPPER", "lower"]
allowed_values = ["UPPER", "lower", ""]
if enum_string not in allowed_values:
raise ValueError(
"Invalid value for `enum_string` ({0}), must be one of {1}"
@@ -193,6 +193,9 @@ class EnumTest(object):
"""
Returns true if both objects are equal
"""
if not isinstance(other, EnumTest):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):

View File

@@ -425,6 +425,9 @@ class FormatTest(object):
"""
Returns true if both objects are equal
"""
if not isinstance(other, FormatTest):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):

View File

@@ -127,6 +127,9 @@ class HasOnlyReadOnly(object):
"""
Returns true if both objects are equal
"""
if not isinstance(other, HasOnlyReadOnly):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):

View File

@@ -103,6 +103,9 @@ class List(object):
"""
Returns true if both objects are equal
"""
if not isinstance(other, List):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):

View File

@@ -134,6 +134,9 @@ class MapTest(object):
"""
Returns true if both objects are equal
"""
if not isinstance(other, MapTest):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):

View File

@@ -151,6 +151,9 @@ class MixedPropertiesAndAdditionalPropertiesClass(object):
"""
Returns true if both objects are equal
"""
if not isinstance(other, MixedPropertiesAndAdditionalPropertiesClass):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):

View File

@@ -127,6 +127,9 @@ class Model200Response(object):
"""
Returns true if both objects are equal
"""
if not isinstance(other, Model200Response):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):

View File

@@ -103,6 +103,9 @@ class ModelReturn(object):
"""
Returns true if both objects are equal
"""
if not isinstance(other, ModelReturn):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):

View File

@@ -177,6 +177,9 @@ class Name(object):
"""
Returns true if both objects are equal
"""
if not isinstance(other, Name):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):

View File

@@ -103,6 +103,9 @@ class NumberOnly(object):
"""
Returns true if both objects are equal
"""
if not isinstance(other, NumberOnly):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):

View File

@@ -231,6 +231,9 @@ class Order(object):
"""
Returns true if both objects are equal
"""
if not isinstance(other, Order):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):

View File

@@ -81,6 +81,9 @@ class OuterEnum(object):
"""
Returns true if both objects are equal
"""
if not isinstance(other, OuterEnum):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):

View File

@@ -235,6 +235,9 @@ class Pet(object):
"""
Returns true if both objects are equal
"""
if not isinstance(other, Pet):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):

View File

@@ -127,6 +127,9 @@ class ReadOnlyFirst(object):
"""
Returns true if both objects are equal
"""
if not isinstance(other, ReadOnlyFirst):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):

View File

@@ -103,6 +103,9 @@ class SpecialModelName(object):
"""
Returns true if both objects are equal
"""
if not isinstance(other, SpecialModelName):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):

View File

@@ -127,6 +127,9 @@ class Tag(object):
"""
Returns true if both objects are equal
"""
if not isinstance(other, Tag):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):

View File

@@ -273,6 +273,9 @@ class User(object):
"""
Returns true if both objects are equal
"""
if not isinstance(other, User):
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):